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