toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (activeTime != null) 'activeTime': activeTime!,
if (date != null)
'date':
"${date!.year.toString().padLeft(4, '0')}-${date!.month.toString().padLeft(2, '0')}-${date!.day.toString().padLeft(2, '0')}",
};