// MarshalJSON is json.Marshaler interface implementation
MarshalJSON is json.Marshaler interface implementation
// MarshalJSON is json . Marshaler interface implementation
func (d DurationMinutes) MarshalJSON() (text []byte, err error) {
	if !d.IsPresent() {
		return json.Marshal(nil)
	}
	return json.Marshal(int(d.value / time.Minute))
}
func ( d DurationMinutes ) MarshalJSON ( ) ( text [ ] byte , err error ) { if ! d . IsPresent ( ) { return json . Marshal ( nil ) } return json . Marshal ( int ( d . value / time . Minute ) ) }
MarshalJSON is json.Marshaler interface implementation
MarshalJSON is json . Marshaler interface implementation