Converts this TimeSlot instance to a JSON object.
Map<String, dynamic> toJson() { return { 'start': start?.toJson(), 'end': end?.toJson(), }; }