encode static method

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

Implementation

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