encode static method

Implementation

static Map<String, dynamic> encode(ShareAllPatientDataOptionsSharePatientDataError value) {
	switch (value) {
		case ShareAllPatientDataOptionsBulkShareFailure entity:
			Map<String, dynamic> entityJson = ShareAllPatientDataOptionsBulkShareFailure.encode(entity);
			entityJson["kotlinType"] = "com.icure.cardinal.sdk.crypto.entities.ShareAllPatientDataOptions.BulkShareFailure";
			return entityJson;
		case ShareAllPatientDataOptionsFailedRequest entity:
			Map<String, dynamic> entityJson = ShareAllPatientDataOptionsFailedRequest.encode(entity);
			entityJson["kotlinType"] = "com.icure.cardinal.sdk.crypto.entities.ShareAllPatientDataOptions.FailedRequest";
			return entityJson;
	}
}