func (r *Review) UnmarshalJSON(data []byte) error {
	doc := &reviewAlias{}
	if err := json.Unmarshal(data, &doc); err != nil {
		return err
	}
	*r = Review(*doc)
	return r.Validate()
}
// UnmarshalJSON satisfies the json.Unmarshaler interface.
UnmarshalJSON satisfies the json.Unmarshaler interface.
// UnmarshalJSON satisfies the json . Unmarshaler interface .
func (r *Review) UnmarshalJSON(data []byte) error {
	doc := &reviewAlias{}
	if err := json.Unmarshal(data, &doc); err != nil {
		return err
	}
	*r = Review(*doc)
	return r.Validate()
}
func ( r * Review ) UnmarshalJSON ( data [ ] byte ) error { doc := & reviewAlias { } if err := json . Unmarshal ( data , & doc ) ; err != nil { return err } * r = Review ( * doc ) return r . Validate ( ) }
UnmarshalJSON satisfies the json.Unmarshaler interface.
UnmarshalJSON satisfies the json . Unmarshaler interface .