encode static method

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

Implementation

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