encode static method

Map<String, dynamic> encode(
  1. FinancialInstitutionInformation value
)

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;
	}
}