toJson method
Implementation
Map<String,dynamic> toJson() {
return{
'MAILTO':mailto.mailto,
'CN': cn,
'ROLE': role?.name != null ? Heplers.camelToSnake(role!.name).toUpperCase() : null,
'RSVP': rsvp?.toString(),
'PARTSTAT': partstat?.name != null ? Heplers.camelToSnake(partstat!.name).toUpperCase() : null,
'CUTYPE': cutype?.name != null ? Heplers.camelToSnake(cutype!.name).toUpperCase() : null,
'DELEGATED-TO': delegatedTo,
'DELEGATED-FROM': delegatedFrom,
};
}