You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: responsecontenttype.go
    path of file: ./repos/go-elasticsearch/typedapi/types/enums/responsecontenttype
    
    the code of the file until where you have to start completion: // Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache Li
    
func (r *ResponseContentType) UnmarshalText(text []byte) error {
	switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") {

	case "json":
		*r = Json
	case "yaml":
		*r = Yaml
	case "text":
		*r = Text
	default:
		*r = ResponseContentType{string(text)}
	}

	return nil
}