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