func (r *CertifiedByEnvironment) UnmarshalJSON(data []byte) error {
	var environment string
	err := json.Unmarshal(data, &environment)
	if err != nil {
		return err
	}
	// Note that if the string cannot be found then it will be set to the zero value, 'Created' in this case.
	value, ok := certifiedByEnvironmentToID()[environment]
	if !ok {
		return fmt.Errorf("%q is an invalid enum for CertifiedByEnvironment", environment)
	}
	*r = value
	return nil
}
// UnmarshalJSON unmashals a quoted json string to the enum value
UnmarshalJSON unmashals a quoted json string to the enum value
// UnmarshalJSON unmashals a quoted json string to the enum value
func (r *CertifiedByEnvironment) UnmarshalJSON(data []byte) error {
	var environment string
	err := json.Unmarshal(data, &environment)
	if err != nil {
		return err
	}
	value, ok := certifiedByEnvironmentToID()[environment]
	if !ok {
		return fmt.Errorf("%q is an invalid enum for CertifiedByEnvironment", environment)
	}
	*r = value
	return nil
}
func ( r * CertifiedByEnvironment ) UnmarshalJSON ( data [ ] byte ) error { var environment string err := json . Unmarshal ( data , & environment ) if err != nil { return err } value , ok := certifiedByEnvironmentToID ( ) [ environment ] if ! ok { return fmt . Errorf ( " " , environment ) } * r = value return nil }
UnmarshalJSON unmashals a quoted json string to the enum value
UnmarshalJSON unmashals a quoted json string to the enum value
// Note that if the string cannot be found then it will be set to the zero value, 'Created' in this case.