toJson method

Map<String, dynamic> toJson()

Implementation

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