code: func (t EnumType) ConvertFromModel(value interface{}) (interface{}, error) {
  	if value == nil {
  		return nil, nil
  	}
  	converted, err := t.BaseType.ConvertFromModel(value)
  	if err != nil {
  		return nil, errs.Errorf("error converting enum value: %s", err.Error())
  	}
  	if !contains(t.Values, converted) {
  		return nil, errs.Errorf("value: %+v (%[1]T) is not part of allowed enum values: %+v", value, t.Values)
  	}
  	return converted, nil
  }
docs: // ConvertFromModel implements the FieldType interface