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