toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'uid': uid,
'summary': summary,
'description': description,
'attachments': attachments?.map((x) => x.toMap()).toList(),
'attendees': attendees?.map((x) => x.toMap()).toList(),
'organizer': organizer?.toMap(),
'stamp': stamp?.millisecondsSinceEpoch,
'created': created?.millisecondsSinceEpoch,
'last_modified': lastModified?.millisecondsSinceEpoch,
'start_date': startDate?.millisecondsSinceEpoch,
'end_date': endDate?.millisecondsSinceEpoch,
'sequence': sequence,
'transparency': transparency,
'status': status?.toMap(),
'time_zone': timeZone?.toMap(),
'recurrenceRule': recurrenceRule?.toMap(),
'x_dates': xDates?.map((x) => x.toMap()).toList(),
'location': location?.toMap(),
'recurrence_id': recurrenceId,
'event_class': eventClass,
'custom_properties': customProperties,
'attach_files': attachFiles?.map((x) => x.toMap()).toList(),
'availability': availability?.index,
};
}