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