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