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