toMap method

Map<String, dynamic> toMap()

Converts the event to a map for platform channel communication

Implementation

Map<String, dynamic> toMap() {
  return {
    'title': title,
    'description': description,
    'startDate': startDate.millisecondsSinceEpoch,
    'endDate': endDate?.millisecondsSinceEpoch,
    'location': location,
    'isAllDay': isAllDay,
    'timeZone': timeZone,
    'url': url,
    'androidSettings': androidSettings?.toMap(),
    'iosSettings': iosSettings?.toMap(),
  };
}