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