toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (hours != null) 'hours': hours!,
      if (minutes != null) 'minutes': minutes!,
      if (nanos != null) 'nanos': nanos!,
      if (seconds != null) 'seconds': seconds!,
    };