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