func (r *Review) MarshalJSON() ([]byte, error) {
	if err := r.Validate(); err != nil {
		return nil, err
	}
	return json.Marshal(reviewAlias(*r))
}
// MarshalJSON satisfies the json.Marshaler interface.
MarshalJSON satisfies the json.Marshaler interface.
// MarshalJSON satisfies the json . Marshaler interface .
func (r *Review) MarshalJSON() ([]byte, error) {
	if err := r.Validate(); err != nil {
		return nil, err
	}
	return json.Marshal(reviewAlias(*r))
}
func ( r * Review ) MarshalJSON ( ) ( [ ] byte , error ) { if err := r . Validate ( ) ; err != nil { return nil , err } return json . Marshal ( reviewAlias ( * r ) ) }
MarshalJSON satisfies the json.Marshaler interface.
MarshalJSON satisfies the json . Marshaler interface .