// UnmarshalJSON is json.Unmarshaler interface implementation
UnmarshalJSON is json.Unmarshaler interface implementation
// UnmarshalJSON is json . Unmarshaler interface implementation
func (d *DurationSeconds) UnmarshalJSON(text []byte) error {
	if bytes.Equal(jsonNull, text) {
		*d = DurationSeconds{}
		return nil
	}
	var sec int
	if err := json.Unmarshal(text, &sec); err != nil {
		return err
	}
	tc := OfSeconds(sec)
	*d = tc
	return nil
}
func ( d * DurationSeconds ) UnmarshalJSON ( text [ ] byte ) error { if bytes . Equal ( jsonNull , text ) { * d = DurationSeconds { } return nil } var sec int if err := json . Unmarshal ( text , & sec ) ; err != nil { return err } tc := OfSeconds ( sec ) * d = tc return nil }
UnmarshalJSON is json.Unmarshaler interface implementation
UnmarshalJSON is json . Unmarshaler interface implementation