toJson method

Map<String, dynamic> toJson()

Converts this MeetingTimeSuggestion object to a JSON object.

Each parameter of MeetingTimeSuggestion corresponds to a key in the resulting JSON object.

Implementation

Map<String, dynamic> toJson() {
  return {
    'confidence': confidence,
    'organizerAvailability': organizerAvailability,
    'attendeeAvailability':
        attendeeAvailability?.map((e) => e?.toJson()).toList(),
    'locations': locations?.map((e) => e?.toJson()).toList(),
    'meetingTimeSlot': meetingTimeSlot?.toJson(),
  };
}