// UnmarshalJSON is generated so MatchType satisfies json.Unmarshaler.
UnmarshalJSON is generated so MatchType satisfies json.Unmarshaler.
// UnmarshalJSON is generated so MatchType satisfies json . Unmarshaler .
func (r *MatchType) UnmarshalJSON(data []byte) error {
	var s string
	if err := json.Unmarshal(data, &s); err != nil {
		return fmt.Errorf("MatchType should be a string, got %s", data)
	}
	v, ok := _MatchTypeNameToValue[s]
	if !ok {
		return fmt.Errorf("invalid MatchType %q", s)
	}
	*r = v
	return nil
}
func ( r * MatchType ) UnmarshalJSON ( data [ ] byte ) error { var s string if err := json . Unmarshal ( data , & s ) ; err != nil { return fmt . Errorf ( " " , data ) } v , ok := _MatchTypeNameToValue [ s ] if ! ok { return fmt . Errorf ( " " , s ) } * r = v return nil }
UnmarshalJSON is generated so MatchType satisfies json.Unmarshaler.
UnmarshalJSON is generated so MatchType satisfies json . Unmarshaler .