toJson method

Map<String, dynamic> toJson()

Converts this TimeSlot instance to a JSON object.

Implementation

Map<String, dynamic> toJson() {
  return {
    'start': start?.toJson(),
    'end': end?.toJson(),
  };
}