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