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