toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (endMinutes != null) 'endMinutes': endMinutes!,
if (freezePeriods != null) 'freezePeriods': freezePeriods!,
if (startMinutes != null) 'startMinutes': startMinutes!,
if (type != null) 'type': type!,
};