core.Map<core.String, core.dynamic> toJson() => { if (endTime != null) 'endTime': endTime!, if (recurrence != null) 'recurrence': recurrence!, if (startTime != null) 'startTime': startTime!, };