// MarshalJSON is generated so Operator satisfies json.Marshaler.
MarshalJSON is generated so Operator satisfies json.Marshaler.
// MarshalJSON is generated so Operator satisfies json . Marshaler .
func (r Operator) MarshalJSON() ([]byte, error) {
	if s, ok := interface{}(r).(fmt.Stringer); ok {
		return json.Marshal(s.String())
	}
	s, ok := _OperatorValueToName[r]
	if !ok {
		return nil, fmt.Errorf("invalid Operator: %d", r)
	}
	return json.Marshal(s)
}
func ( r Operator ) MarshalJSON ( ) ( [ ] byte , error ) { if s , ok := interface { } ( r ) . ( fmt . Stringer ) ; ok { return json . Marshal ( s . String ( ) ) } s , ok := _OperatorValueToName [ r ] if ! ok { return nil , fmt . Errorf ( " " , r ) } return json . Marshal ( s ) }
MarshalJSON is generated so Operator satisfies json.Marshaler.
MarshalJSON is generated so Operator satisfies json . Marshaler .