encode static method
Implementation
static Map<String, dynamic> encode(CalendarItem value) {
switch (value) {
case DecryptedCalendarItem entity:
Map<String, dynamic> entityJson = DecryptedCalendarItem.encode(entity);
entityJson["kotlinType"] = "com.icure.cardinal.sdk.model.DecryptedCalendarItem";
return entityJson;
case EncryptedCalendarItem entity:
Map<String, dynamic> entityJson = EncryptedCalendarItem.encode(entity);
entityJson["kotlinType"] = "com.icure.cardinal.sdk.model.EncryptedCalendarItem";
return entityJson;
}
}