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