func (v *ValidationType) UnmarshalJSON(b []byte) error {
	var s string

	err := json.Unmarshal(b, &s)
	if err != nil {
		return err
	}

	v1, err := NewValidationTypeFromString(s)
	if err != nil {
		return err
	}

	// This seems wrong, but copy() doesn't work?
	v.Type = v1.Type
	v.Value = v1.Value

	return err
}
// UnmarshalJSON unmarshals bytes into a key
UnmarshalJSON unmarshals bytes into a key
// UnmarshalJSON unmarshals bytes into a key
func (v *ValidationType) UnmarshalJSON(b []byte) error {
	var s string
	err := json.Unmarshal(b, &s)
	if err != nil {
		return err
	}
	v1, err := NewValidationTypeFromString(s)
	if err != nil {
		return err
	}
	v.Type = v1.Type
	v.Value = v1.Value
	return err
}
func ( v * ValidationType ) UnmarshalJSON ( b [ ] byte ) error { var s string err := json . Unmarshal ( b , & s ) if err != nil { return err } v1 , err := NewValidationTypeFromString ( s ) if err != nil { return err } v . Type = v1 . Type v . Value = v1 . Value return err }
UnmarshalJSON unmarshals bytes into a key
UnmarshalJSON unmarshals bytes into a key
// This seems wrong, but copy() doesn't work?