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