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