toJson method
Implementation
@override
Map<String, dynamic> toJson() {
return {
'UID': uid,
'DTSTAMP': formatDateTime(dtstamp),
'SUMMARY': summary,
'DESCRIPTION': description,
'STATUS': status?.name != null ? Heplers.camelToSnake(status!.name.replaceAll('_', '')).toUpperCase() : null ,
'ATTENDEE': attendees?.map((e)=>e.toJson()).toList(),
'ORGANIZER': organizer.toString(),
'CONTACT': contact,
};
}