toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() {
final date = this.date;
final dateTime = this.dateTime;
final timeZone = this.timeZone;
return {
'date': ?date == null
? null
: "${date.year.toString().padLeft(4, '0')}-${date.month.toString().padLeft(2, '0')}-${date.day.toString().padLeft(2, '0')}",
'dateTime': ?dateTime?.toUtc().toIso8601String(),
'timeZone': ?timeZone,
};
}