Browse Source

更新接口

gavin.chen 1 year ago
parent
commit
c3c961d45d

+ 70 - 70
lib/services/aIDiagnosis.m.dart

@@ -107,7 +107,7 @@ class AIDiagnosisDescription {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['Type'] = type.index;
-		if(value != null) {
+		if (value != null) {
 			map['Value'] = value;
 		}
 		return map;
@@ -143,13 +143,13 @@ class AIDetectedObject {
 		final map = Map<String, dynamic>();
 		map['Label'] = label;
 		map['Confidence'] = confidence;
-		if(boundingBox != null) {
+		if (boundingBox != null) {
 			map['BoundingBox'] = boundingBox;
 		}
-		if(contours != null) {
+		if (contours != null) {
 			map['Contours'] = contours;
 		}
-		if(descriptions != null) {
+		if (descriptions != null) {
 			map['Descriptions'] = descriptions;
 		}
 		return map;
@@ -184,16 +184,16 @@ class AIDiagnosisResultPerOrgan {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['Organ'] = organ.index;
-		if(organBoundBox != null) {
+		if (organBoundBox != null) {
 			map['OrganBoundBox'] = organBoundBox;
 		}
-		if(organContours != null) {
+		if (organContours != null) {
 			map['OrganContours'] = organContours;
 		}
-		if(organDescriptions != null) {
+		if (organDescriptions != null) {
 			map['OrganDescriptions'] = organDescriptions;
 		}
-		if(detectedObjects != null) {
+		if (detectedObjects != null) {
 			map['DetectedObjects'] = detectedObjects;
 		}
 		return map;
@@ -223,7 +223,7 @@ class AIDiagnosisPerImageDTO {
 		final map = Map<String, dynamic>();
 		map['Index'] = index;
 		map['PriorityScore'] = priorityScore;
-		if(diagResultsForEachOrgan != null) {
+		if (diagResultsForEachOrgan != null) {
 			map['DiagResultsForEachOrgan'] = diagResultsForEachOrgan;
 		}
 		return map;
@@ -255,13 +255,13 @@ class DiagnosisImageResult {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['DiagnosisConclusion'] = diagnosisConclusion.index;
-		if(diagnosisResult != null) {
+		if (diagnosisResult != null) {
 			map['DiagnosisResult'] = diagnosisResult;
 		}
-		if(diagnosisOrgans != null) {
+		if (diagnosisOrgans != null) {
 			map['DiagnosisOrgans'] = diagnosisOrgans;
 		}
-		if(carotidResult != null) {
+		if (carotidResult != null) {
 			map['CarotidResult'] = carotidResult;
 		}
 		return map;
@@ -293,11 +293,11 @@ class DiagnosisImageRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(fileToken != null)
+		if (fileToken != null)
 			map['FileToken'] = fileToken;
-		if(diskPath != null)
+		if (diskPath != null)
 			map['DiskPath'] = diskPath;
-		if(relationCode != null)
+		if (relationCode != null)
 			map['RelationCode'] = relationCode;
 		return map;
 	}
@@ -330,19 +330,19 @@ class GetDiagnosisImageResultByAIResultRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(fileUrl != null) {
+		if (fileUrl != null) {
 			map['FileUrl'] = fileUrl;
 		}
-		if(relationCode != null) {
+		if (relationCode != null) {
 			map['RelationCode'] = relationCode;
 		}
-		if(createTime != null) {
+		if (createTime != null) {
 			map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
 		}
-		if(updateTime != null) {
+		if (updateTime != null) {
 			map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
 		}
-		if(aiResult != null) {
+		if (aiResult != null) {
 			map['AiResult'] = aiResult;
 		}
 		return map;
@@ -382,21 +382,21 @@ class GetCarotidResultRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(remedicalCode != null) {
+		if (remedicalCode != null) {
 			map['RemedicalCode'] = remedicalCode;
 		}
-		if(surfaceToken != null) {
+		if (surfaceToken != null) {
 			map['SurfaceToken'] = surfaceToken;
 		}
-		if(mdlToken != null) {
+		if (mdlToken != null) {
 			map['MdlToken'] = mdlToken;
 		}
 		map['CarotidScanType'] = carotidScanType.index;
 		map['CarotidScanDirection'] = carotidScanDirection.index;
-		if(measureImageFiles != null) {
+		if (measureImageFiles != null) {
 			map['MeasureImageFiles'] = measureImageFiles;
 		}
-		if(measureResult != null) {
+		if (measureResult != null) {
 			map['MeasureResult'] = measureResult;
 		}
 		return map;
@@ -418,7 +418,7 @@ class CreateCarotidSurfaceImagesResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(surfaceImages != null) {
+		if (surfaceImages != null) {
 			map['SurfaceImages'] = surfaceImages;
 		}
 		return map;
@@ -440,7 +440,7 @@ class CreateCarotidSurfaceImagesRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(surfaceFileUrl != null) {
+		if (surfaceFileUrl != null) {
 			map['SurfaceFileUrl'] = surfaceFileUrl;
 		}
 		return map;
@@ -496,20 +496,20 @@ class DiagnosisPerImageDTO extends AIDiagnosisPerImageDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(remedicalCode != null)
+		if (remedicalCode != null)
 			map['RemedicalCode'] = remedicalCode;
 		map['DataType'] = dataType.index;
 		map['Pixel'] = pixel;
-		if(remedicalFileToken != null)
+		if (remedicalFileToken != null)
 			map['RemedicalFileToken'] = remedicalFileToken;
-		if(aIFileToken != null)
+		if (aIFileToken != null)
 			map['AIFileToken'] = aIFileToken;
-		if(aIPreviewFileToken != null)
+		if (aIPreviewFileToken != null)
 			map['AIPreviewFileToken'] = aIPreviewFileToken;
-		if(perImageJson != null)
+		if (perImageJson != null)
 			map['PerImageJson'] = perImageJson;
 		map['DiagnosisConclusion'] = diagnosisConclusion.index;
-		if(diagnosisOrgans != null)
+		if (diagnosisOrgans != null)
 			map['DiagnosisOrgans'] = diagnosisOrgans;
 		return map;
 	}
@@ -542,17 +542,17 @@ class DiagnosisRemicalDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(remedicalCode != null) {
+		if (remedicalCode != null) {
 			map['RemedicalCode'] = remedicalCode;
 		}
 		map['DataType'] = dataType.index;
-		if(fileToken != null) {
+		if (fileToken != null) {
 			map['FileToken'] = fileToken;
 		}
-		if(diagnosisResult != null) {
+		if (diagnosisResult != null) {
 			map['DiagnosisResult'] = diagnosisResult;
 		}
-		if(carotidResult != null) {
+		if (carotidResult != null) {
 			map['CarotidResult'] = carotidResult;
 		}
 		return map;
@@ -584,13 +584,13 @@ class DiagnosisReportResult {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['DiagnosisConclusion'] = diagnosisConclusion.index;
-		if(diagnosisResult != null) {
+		if (diagnosisResult != null) {
 			map['DiagnosisResult'] = diagnosisResult;
 		}
-		if(carotidResult != null) {
+		if (carotidResult != null) {
 			map['CarotidResult'] = carotidResult;
 		}
-		if(carotidItems != null) {
+		if (carotidItems != null) {
 			map['CarotidItems'] = carotidItems;
 		}
 		return map;
@@ -620,7 +620,7 @@ class DiagnosisReportRequest extends TokenRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['Organ'] = organ.index;
-		if(remedicalList != null)
+		if (remedicalList != null)
 			map['RemedicalList'] = remedicalList;
 		return map;
 	}
@@ -645,7 +645,7 @@ class GetDiagnosisConclusionResult {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['DiagnosisConclusion'] = diagnosisConclusion.index;
-		if(diagnosisOrgans != null) {
+		if (diagnosisOrgans != null) {
 			map['DiagnosisOrgans'] = diagnosisOrgans;
 		}
 		return map;
@@ -671,7 +671,7 @@ class GetDiagnosisConclusionRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(perImageJson != null)
+		if (perImageJson != null)
 			map['PerImageJson'] = perImageJson;
 		return map;
 	}
@@ -696,7 +696,7 @@ class EnumFieldDTO {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['Id'] = id;
-		if(value != null) {
+		if (value != null) {
 			map['Value'] = value;
 		}
 		return map;
@@ -721,10 +721,10 @@ class EnumItemDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(code != null) {
+		if (code != null) {
 			map['Code'] = code;
 		}
-		if(children != null) {
+		if (children != null) {
 			map['Children'] = children;
 		}
 		return map;
@@ -746,7 +746,7 @@ class GetDiagnosisEnumItemsResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(source != null) {
+		if (source != null) {
 			map['Source'] = source;
 		}
 		return map;
@@ -804,7 +804,7 @@ class DiagnosisKeyPointDTO {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['Type'] = type.index;
-		if(point != null) {
+		if (point != null) {
 			map['Point'] = point;
 		}
 		map['IndexInContour'] = indexInContour;
@@ -842,16 +842,16 @@ class AIDiagnosisLesionSize {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(horizontalPoint1 != null) {
+		if (horizontalPoint1 != null) {
 			map['HorizontalPoint1'] = horizontalPoint1;
 		}
-		if(horizontalPoint2 != null) {
+		if (horizontalPoint2 != null) {
 			map['HorizontalPoint2'] = horizontalPoint2;
 		}
-		if(verticalPoint1 != null) {
+		if (verticalPoint1 != null) {
 			map['VerticalPoint1'] = verticalPoint1;
 		}
-		if(verticalPoint2 != null) {
+		if (verticalPoint2 != null) {
 			map['VerticalPoint2'] = verticalPoint2;
 		}
 		map['HorizontalLengthInPixel'] = horizontalLengthInPixel;
@@ -882,9 +882,9 @@ class GetKeyPointsOfContourRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(contours != null)
+		if (contours != null)
 			map['Contours'] = contours;
-		if(lesionSize != null)
+		if (lesionSize != null)
 			map['LesionSize'] = lesionSize;
 		return map;
 	}
@@ -912,9 +912,9 @@ class AffectedKeyPointsByDragActionRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(keyPoints != null)
+		if (keyPoints != null)
 			map['KeyPoints'] = keyPoints;
-		if(mousePoint != null)
+		if (mousePoint != null)
 			map['MousePoint'] = mousePoint;
 		return map;
 	}
@@ -941,13 +941,13 @@ class ContourAndKeyPointsAfterDragResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(dstContours != null) {
+		if (dstContours != null) {
 			map['DstContours'] = dstContours;
 		}
-		if(dstKeyPoints != null) {
+		if (dstKeyPoints != null) {
 			map['DstKeyPoints'] = dstKeyPoints;
 		}
-		if(affectedKeyPointIndexes != null) {
+		if (affectedKeyPointIndexes != null) {
 			map['AffectedKeyPointIndexes'] = affectedKeyPointIndexes;
 		}
 		return map;
@@ -982,13 +982,13 @@ class ContourAndKeyPointsAfterDragRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(contours != null)
+		if (contours != null)
 			map['Contours'] = contours;
-		if(keyPoints != null)
+		if (keyPoints != null)
 			map['KeyPoints'] = keyPoints;
-		if(startPoint != null)
+		if (startPoint != null)
 			map['StartPoint'] = startPoint;
-		if(endPoint != null)
+		if (endPoint != null)
 			map['EndPoint'] = endPoint;
 		return map;
 	}
@@ -1040,9 +1040,9 @@ class MinimumDistanceToContourPointsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(contourPoints != null)
+		if (contourPoints != null)
 			map['ContourPoints'] = contourPoints;
-		if(mousePoint != null)
+		if (mousePoint != null)
 			map['MousePoint'] = mousePoint;
 		return map;
 	}
@@ -1066,10 +1066,10 @@ class ContourMergeResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(dstContours != null) {
+		if (dstContours != null) {
 			map['DstContours'] = dstContours;
 		}
-		if(dstLesionSize != null) {
+		if (dstLesionSize != null) {
 			map['DstLesionSize'] = dstLesionSize;
 		}
 		return map;
@@ -1101,11 +1101,11 @@ class ContourMergeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(contourPoints != null)
+		if (contourPoints != null)
 			map['ContourPoints'] = contourPoints;
-		if(lesionSize != null)
+		if (lesionSize != null)
 			map['LesionSize'] = lesionSize;
-		if(drawingNewContourPoints != null)
+		if (drawingNewContourPoints != null)
 			map['DrawingNewContourPoints'] = drawingNewContourPoints;
 		return map;
 	}

+ 3 - 3
lib/services/aSR.m.dart

@@ -19,7 +19,7 @@ class ASRResultDTO {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['IsComplete'] = isComplete;
-		if(content != null) {
+		if (content != null) {
 			map['Content'] = content;
 		}
 		return map;
@@ -48,9 +48,9 @@ class CommitASRInfoRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(url != null)
+		if (url != null)
 			map['Url'] = url;
-		if(fileType != null)
+		if (fileType != null)
 			map['FileType'] = fileType;
 		return map;
 	}

+ 166 - 166
lib/services/appletAPI.m.dart

@@ -24,13 +24,13 @@ class GetUserInfoByOpenIdResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(nickName != null) {
+		if (nickName != null) {
 			map['NickName'] = nickName;
 		}
-		if(hospital != null) {
+		if (hospital != null) {
 			map['Hospital'] = hospital;
 		}
-		if(userId != null) {
+		if (userId != null) {
 			map['UserId'] = userId;
 		}
 		return map;
@@ -52,7 +52,7 @@ class AppletAPIBaseRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(openId != null) {
+		if (openId != null) {
 			map['OpenId'] = openId;
 		}
 		return map;
@@ -100,13 +100,13 @@ class BindVcloudAccountAndOpenIdRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(account != null) {
+		if (account != null) {
 			map['Account'] = account;
 		}
-		if(password != null) {
+		if (password != null) {
 			map['Password'] = password;
 		}
-		if(openId != null) {
+		if (openId != null) {
 			map['OpenId'] = openId;
 		}
 		return map;
@@ -175,32 +175,32 @@ class RemedicalRecordInfo {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(remedicalRecordId != null) {
+		if (remedicalRecordId != null) {
 			map['RemedicalRecordId'] = remedicalRecordId;
 		}
-		if(terminalDesc != null) {
+		if (terminalDesc != null) {
 			map['TerminalDesc'] = terminalDesc;
 		}
-		if(organizationDesc != null) {
+		if (organizationDesc != null) {
 			map['OrganizationDesc'] = organizationDesc;
 		}
-		if(createTime != null) {
+		if (createTime != null) {
 			map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
 		}
-		if(patientId != null) {
+		if (patientId != null) {
 			map['PatientId'] = patientId;
 		}
-		if(patientName != null) {
+		if (patientName != null) {
 			map['PatientName'] = patientName;
 		}
 		map['PatientGender'] = patientGender.index;
-		if(patientAge != null) {
+		if (patientAge != null) {
 			map['PatientAge'] = patientAge;
 		}
-		if(examDoctor != null) {
+		if (examDoctor != null) {
 			map['ExamDoctor'] = examDoctor;
 		}
-		if(customDoctor != null) {
+		if (customDoctor != null) {
 			map['CustomDoctor'] = customDoctor;
 		}
 		map['ReportUploadStatus'] = reportUploadStatus;
@@ -268,11 +268,11 @@ class GetRemedicalRecordListRequest extends AppletAPIPageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(keyWord != null)
+		if (keyWord != null)
 			map['KeyWord'] = keyWord;
-		if(startTime != null)
+		if (startTime != null)
 			map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
-		if(endTime != null)
+		if (endTime != null)
 			map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
 		return map;
 	}
@@ -299,13 +299,13 @@ class ImageFile {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
-		if(fileUrl != null) {
+		if (fileUrl != null) {
 			map['FileUrl'] = fileUrl;
 		}
-		if(createTime != null) {
+		if (createTime != null) {
 			map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
 		}
 		return map;
@@ -342,20 +342,20 @@ class ImageData {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
 		map['DataType'] = dataType.index;
-		if(application != null) {
+		if (application != null) {
 			map['Application'] = application;
 		}
-		if(previewFileToken != null) {
+		if (previewFileToken != null) {
 			map['PreviewFileToken'] = previewFileToken;
 		}
-		if(createTime != null) {
+		if (createTime != null) {
 			map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
 		}
-		if(file != null) {
+		if (file != null) {
 			map['File'] = file;
 		}
 		return map;
@@ -381,7 +381,7 @@ class GetRemedicalDataListRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(remedicalRecordId != null)
+		if (remedicalRecordId != null)
 			map['RemedicalRecordId'] = remedicalRecordId;
 		return map;
 	}
@@ -418,10 +418,10 @@ class ReportImageInfo {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(examDataId != null) {
+		if (examDataId != null) {
 			map['ExamDataId'] = examDataId;
 		}
-		if(fileUrl != null) {
+		if (fileUrl != null) {
 			map['FileUrl'] = fileUrl;
 		}
 		map['Type'] = type.index;
@@ -450,13 +450,13 @@ class ReportInfo {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
-		if(previewImages != null) {
+		if (previewImages != null) {
 			map['PreviewImages'] = previewImages;
 		}
-		if(reportPreviewJpg != null) {
+		if (reportPreviewJpg != null) {
 			map['ReportPreviewJpg'] = reportPreviewJpg;
 		}
 		return map;
@@ -482,7 +482,7 @@ class GetRemedicalReportListRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(remedicalRecordId != null)
+		if (remedicalRecordId != null)
 			map['RemedicalRecordId'] = remedicalRecordId;
 		return map;
 	}
@@ -520,10 +520,10 @@ class ImageTokenInfo {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(imageToken != null) {
+		if (imageToken != null) {
 			map['ImageToken'] = imageToken;
 		}
-		if(previewToken != null) {
+		if (previewToken != null) {
 			map['PreviewToken'] = previewToken;
 		}
 		return map;
@@ -548,10 +548,10 @@ class VideoTokenInfo {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(videoToken != null) {
+		if (videoToken != null) {
 			map['VideoToken'] = videoToken;
 		}
-		if(previewToken != null) {
+		if (previewToken != null) {
 			map['PreviewToken'] = previewToken;
 		}
 		return map;
@@ -579,13 +579,13 @@ class ReportPreviewPdf {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(reportId != null) {
+		if (reportId != null) {
 			map['ReportId'] = reportId;
 		}
-		if(updateTime != null) {
+		if (updateTime != null) {
 			map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
 		}
-		if(previewPdfUrl != null) {
+		if (previewPdfUrl != null) {
 			map['PreviewPdfUrl'] = previewPdfUrl;
 		}
 		return map;
@@ -676,72 +676,72 @@ class ConsultationInfo {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(consultationId != null) {
+		if (consultationId != null) {
 			map['ConsultationId'] = consultationId;
 		}
 		map['State'] = state.index;
-		if(patientName != null) {
+		if (patientName != null) {
 			map['PatientName'] = patientName;
 		}
 		map['PatientSex'] = patientSex.index;
-		if(patientAge != null) {
+		if (patientAge != null) {
 			map['PatientAge'] = patientAge;
 		}
-		if(birthday != null) {
+		if (birthday != null) {
 			map['Birthday'] = JsonRpcUtils.dateFormat(birthday!);
 		}
-		if(contactInfo != null) {
+		if (contactInfo != null) {
 			map['ContactInfo'] = contactInfo;
 		}
-		if(patientID != null) {
+		if (patientID != null) {
 			map['PatientID'] = patientID;
 		}
-		if(history != null) {
+		if (history != null) {
 			map['History'] = history;
 		}
-		if(primaryDiagnosis != null) {
+		if (primaryDiagnosis != null) {
 			map['PrimaryDiagnosis'] = primaryDiagnosis;
 		}
-		if(hospitalId != null) {
+		if (hospitalId != null) {
 			map['HospitalId'] = hospitalId;
 		}
-		if(hospitalName != null) {
+		if (hospitalName != null) {
 			map['HospitalName'] = hospitalName;
 		}
-		if(applyHospitalId != null) {
+		if (applyHospitalId != null) {
 			map['ApplyHospitalId'] = applyHospitalId;
 		}
-		if(applyHospitalName != null) {
+		if (applyHospitalName != null) {
 			map['ApplyHospitalName'] = applyHospitalName;
 		}
-		if(expertId != null) {
+		if (expertId != null) {
 			map['ExpertId'] = expertId;
 		}
-		if(expertName != null) {
+		if (expertName != null) {
 			map['ExpertName'] = expertName;
 		}
-		if(consultationDate != null) {
+		if (consultationDate != null) {
 			map['ConsultationDate'] = JsonRpcUtils.dateFormat(consultationDate!);
 		}
-		if(inspectionItems != null) {
+		if (inspectionItems != null) {
 			map['InspectionItems'] = inspectionItems;
 		}
-		if(scanDoctorName != null) {
+		if (scanDoctorName != null) {
 			map['ScanDoctorName'] = scanDoctorName;
 		}
-		if(deviceModel != null) {
+		if (deviceModel != null) {
 			map['DeviceModel'] = deviceModel;
 		}
-		if(terminalId != null) {
+		if (terminalId != null) {
 			map['TerminalId'] = terminalId;
 		}
-		if(imageTokens != null) {
+		if (imageTokens != null) {
 			map['ImageTokens'] = imageTokens;
 		}
-		if(videoInfos != null) {
+		if (videoInfos != null) {
 			map['VideoInfos'] = videoInfos;
 		}
-		if(reportPreviewPdfs != null) {
+		if (reportPreviewPdfs != null) {
 			map['ReportPreviewPdfs'] = reportPreviewPdfs;
 		}
 		return map;
@@ -779,11 +779,11 @@ class GetConsultationListRequest extends AppletAPIPageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(keyWord != null)
+		if (keyWord != null)
 			map['KeyWord'] = keyWord;
-		if(startTime != null)
+		if (startTime != null)
 			map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
-		if(endTime != null)
+		if (endTime != null)
 			map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
 		return map;
 	}
@@ -808,7 +808,7 @@ class GetConsultationReportListRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(consultationId != null)
+		if (consultationId != null)
 			map['ConsultationId'] = consultationId;
 		return map;
 	}
@@ -875,34 +875,34 @@ class CreateConsultationRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(patientName != null)
+		if (patientName != null)
 			map['PatientName'] = patientName;
 		map['PatientSex'] = patientSex.index;
-		if(patientAge != null)
+		if (patientAge != null)
 			map['PatientAge'] = patientAge;
-		if(birthday != null)
+		if (birthday != null)
 			map['Birthday'] = JsonRpcUtils.dateFormat(birthday!);
-		if(contactInfo != null)
+		if (contactInfo != null)
 			map['ContactInfo'] = contactInfo;
-		if(patientID != null)
+		if (patientID != null)
 			map['PatientID'] = patientID;
-		if(history != null)
+		if (history != null)
 			map['History'] = history;
-		if(primaryDiagnosis != null)
+		if (primaryDiagnosis != null)
 			map['PrimaryDiagnosis'] = primaryDiagnosis;
-		if(hospitalId != null)
+		if (hospitalId != null)
 			map['HospitalId'] = hospitalId;
-		if(expertId != null)
+		if (expertId != null)
 			map['ExpertId'] = expertId;
-		if(consultationDate != null)
+		if (consultationDate != null)
 			map['ConsultationDate'] = JsonRpcUtils.dateFormat(consultationDate!);
-		if(inspectionItems != null)
+		if (inspectionItems != null)
 			map['InspectionItems'] = inspectionItems;
-		if(scanDoctorName != null)
+		if (scanDoctorName != null)
 			map['ScanDoctorName'] = scanDoctorName;
-		if(deviceModel != null)
+		if (deviceModel != null)
 			map['DeviceModel'] = deviceModel;
-		if(terminalId != null)
+		if (terminalId != null)
 			map['TerminalId'] = terminalId;
 		return map;
 	}
@@ -933,11 +933,11 @@ class ArrangeConsultationRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(consultationId != null)
+		if (consultationId != null)
 			map['ConsultationId'] = consultationId;
-		if(appointDate != null)
+		if (appointDate != null)
 			map['AppointDate'] = JsonRpcUtils.dateFormat(appointDate!);
-		if(expertId != null)
+		if (expertId != null)
 			map['ExpertId'] = expertId;
 		return map;
 	}
@@ -961,10 +961,10 @@ class OrganBaseInfo {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(organizationId != null) {
+		if (organizationId != null) {
 			map['OrganizationId'] = organizationId;
 		}
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
 		return map;
@@ -1015,16 +1015,16 @@ class DoctorInfo {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
-		if(displayName != null) {
+		if (displayName != null) {
 			map['DisplayName'] = displayName;
 		}
-		if(fullName != null) {
+		if (fullName != null) {
 			map['FullName'] = fullName;
 		}
-		if(electronSignUrl != null) {
+		if (electronSignUrl != null) {
 			map['ElectronSignUrl'] = electronSignUrl;
 		}
 		return map;
@@ -1050,7 +1050,7 @@ class GetExpertsRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(organizationId != null)
+		if (organizationId != null)
 			map['OrganizationId'] = organizationId;
 		return map;
 	}
@@ -1092,28 +1092,28 @@ class TerminalInfo {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
-		if(organizationId != null) {
+		if (organizationId != null) {
 			map['OrganizationId'] = organizationId;
 		}
-		if(organizationDecription != null) {
+		if (organizationDecription != null) {
 			map['OrganizationDecription'] = organizationDecription;
 		}
-		if(organizationName != null) {
+		if (organizationName != null) {
 			map['OrganizationName'] = organizationName;
 		}
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
-		if(model != null) {
+		if (model != null) {
 			map['Model'] = model;
 		}
-		if(description != null) {
+		if (description != null) {
 			map['Description'] = description;
 		}
-		if(uniqueId != null) {
+		if (uniqueId != null) {
 			map['UniqueId'] = uniqueId;
 		}
 		return map;
@@ -1216,7 +1216,7 @@ class LiveTerminalInfo2 {
 		map['IsMergeChannel'] = isMergeChannel;
 		map['TerminalWidth'] = terminalWidth;
 		map['TerminalHeight'] = terminalHeight;
-		if(cameraId != null) {
+		if (cameraId != null) {
 			map['CameraId'] = cameraId;
 		}
 		map['IsMultiChannels'] = isMultiChannels;
@@ -1225,7 +1225,7 @@ class LiveTerminalInfo2 {
 		map['IntegerRoomId'] = integerRoomId;
 		map['TerminalIntegerRoomId'] = terminalIntegerRoomId;
 		map['State'] = state.index;
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
 		return map;
@@ -1263,19 +1263,19 @@ class MeetingMemberInfo2 {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['State'] = state.index;
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
-		if(displayName != null) {
+		if (displayName != null) {
 			map['DisplayName'] = displayName;
 		}
-		if(avatar != null) {
+		if (avatar != null) {
 			map['Avatar'] = avatar;
 		}
-		if(userSign != null) {
+		if (userSign != null) {
 			map['UserSign'] = userSign;
 		}
 		return map;
@@ -1312,16 +1312,16 @@ class StartConsultationResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(roomId != null) {
+		if (roomId != null) {
 			map['RoomId'] = roomId;
 		}
 		map['State'] = state.index;
 		map['IntegerRoomId'] = integerRoomId;
 		map['AppId'] = appId;
-		if(terminalInfos != null) {
+		if (terminalInfos != null) {
 			map['TerminalInfos'] = terminalInfos;
 		}
-		if(meetingMemberInfos != null) {
+		if (meetingMemberInfos != null) {
 			map['MeetingMemberInfos'] = meetingMemberInfos;
 		}
 		return map;
@@ -1347,7 +1347,7 @@ class StartConsultationRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(consultationId != null)
+		if (consultationId != null)
 			map['ConsultationId'] = consultationId;
 		return map;
 	}
@@ -1392,7 +1392,7 @@ class CancelStartConsultationRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(roomId != null)
+		if (roomId != null)
 			map['RoomId'] = roomId;
 		return map;
 	}
@@ -1440,9 +1440,9 @@ class ExitConsultationRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(roomId != null)
+		if (roomId != null)
 			map['RoomId'] = roomId;
-		if(consultationId != null)
+		if (consultationId != null)
 			map['ConsultationId'] = consultationId;
 		return map;
 	}
@@ -1467,7 +1467,7 @@ class ConsultationHeartRateRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(consultationId != null)
+		if (consultationId != null)
 			map['ConsultationId'] = consultationId;
 		return map;
 	}
@@ -1488,7 +1488,7 @@ class AppletAPIDownloadFileResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(fileString != null) {
+		if (fileString != null) {
 			map['FileString'] = fileString;
 		}
 		return map;
@@ -1514,7 +1514,7 @@ class DownloadFileRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(fileToken != null)
+		if (fileToken != null)
 			map['FileToken'] = fileToken;
 		return map;
 	}
@@ -1538,10 +1538,10 @@ class VinnoTemplateInfo {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(templateName != null) {
+		if (templateName != null) {
 			map['TemplateName'] = templateName;
 		}
-		if(templateUrl != null) {
+		if (templateUrl != null) {
 			map['TemplateUrl'] = templateUrl;
 		}
 		return map;
@@ -1567,7 +1567,7 @@ class GetReportTemplatesRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -1592,7 +1592,7 @@ class GetThesaurusTemplatesRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -1616,10 +1616,10 @@ class ReportElementTagMessage {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
 		return map;
@@ -1657,7 +1657,7 @@ class ReportTextElementValueMessage extends ReportBaseElementValueMessage{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(text != null)
+		if (text != null)
 			map['Text'] = text;
 		return map;
 	}
@@ -1722,7 +1722,7 @@ class ReportBufferImageElementValueMessage extends ReportBaseElementValueMessage
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(value != null)
+		if (value != null)
 			map['Value'] = value;
 		return map;
 	}
@@ -1744,7 +1744,7 @@ class ReportDateTimeElementValueMessage extends ReportBaseElementValueMessage{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(value != null)
+		if (value != null)
 			map['Value'] = JsonRpcUtils.dateFormat(value!);
 		return map;
 	}
@@ -1769,9 +1769,9 @@ class ReportFileElementValueMessage extends ReportBaseElementValueMessage{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(value != null)
+		if (value != null)
 			map['Value'] = value;
-		if(examDataId != null)
+		if (examDataId != null)
 			map['ExamDataId'] = examDataId;
 		return map;
 	}
@@ -1793,7 +1793,7 @@ class ReportImageListElementValueMessage extends ReportBaseElementValueMessage{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(value != null)
+		if (value != null)
 			map['Value'] = value;
 		return map;
 	}
@@ -1815,7 +1815,7 @@ class ReportStringListElementValueMessage extends ReportBaseElementValueMessage{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(value != null)
+		if (value != null)
 			map['Value'] = value;
 		return map;
 	}
@@ -1857,28 +1857,28 @@ class ReportElementValues {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(textElement != null) {
+		if (textElement != null) {
 			map['TextElement'] = textElement;
 		}
-		if(integerElement != null) {
+		if (integerElement != null) {
 			map['IntegerElement'] = integerElement;
 		}
-		if(floatElement != null) {
+		if (floatElement != null) {
 			map['FloatElement'] = floatElement;
 		}
-		if(bufferImageElement != null) {
+		if (bufferImageElement != null) {
 			map['BufferImageElement'] = bufferImageElement;
 		}
-		if(dateTimeElement != null) {
+		if (dateTimeElement != null) {
 			map['DateTimeElement'] = dateTimeElement;
 		}
-		if(fileElement != null) {
+		if (fileElement != null) {
 			map['FileElement'] = fileElement;
 		}
-		if(imageListElement != null) {
+		if (imageListElement != null) {
 			map['ImageListElement'] = imageListElement;
 		}
-		if(stringListElement != null) {
+		if (stringListElement != null) {
 			map['StringListElement'] = stringListElement;
 		}
 		return map;
@@ -1903,10 +1903,10 @@ class ReportElementMessage {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(elementTag != null) {
+		if (elementTag != null) {
 			map['ElementTag'] = elementTag;
 		}
-		if(reportElementValue != null) {
+		if (reportElementValue != null) {
 			map['ReportElementValue'] = reportElementValue;
 		}
 		return map;
@@ -1975,34 +1975,34 @@ class ReportMeasureTagMessage {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(availableMethods != null) {
+		if (availableMethods != null) {
 			map['AvailableMethods'] = availableMethods;
 		}
-		if(baseType != null) {
+		if (baseType != null) {
 			map['BaseType'] = baseType;
 		}
-		if(calculationId != null) {
+		if (calculationId != null) {
 			map['CalculationId'] = calculationId;
 		}
-		if(matchId != null) {
+		if (matchId != null) {
 			map['MatchId'] = matchId;
 		}
-		if(method != null) {
+		if (method != null) {
 			map['Method'] = method;
 		}
-		if(mode != null) {
+		if (mode != null) {
 			map['Mode'] = mode;
 		}
-		if(output != null) {
+		if (output != null) {
 			map['Output'] = output;
 		}
-		if(outputV2 != null) {
+		if (outputV2 != null) {
 			map['OutputV2'] = outputV2;
 		}
-		if(unit != null) {
+		if (unit != null) {
 			map['Unit'] = unit;
 		}
-		if(userId != null) {
+		if (userId != null) {
 			map['UserId'] = userId;
 		}
 		return map;
@@ -2027,10 +2027,10 @@ class ReportMeasrueElementValueMessage {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(measureTag != null) {
+		if (measureTag != null) {
 			map['MeasureTag'] = measureTag;
 		}
-		if(elementValue != null) {
+		if (elementValue != null) {
 			map['ElementValue'] = elementValue;
 		}
 		return map;
@@ -2055,10 +2055,10 @@ class ReportMeasureElementMessage {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(elementTag != null) {
+		if (elementTag != null) {
 			map['ElementTag'] = elementTag;
 		}
-		if(reportElementValues != null) {
+		if (reportElementValues != null) {
 			map['ReportElementValues'] = reportElementValues;
 		}
 		return map;
@@ -2118,22 +2118,22 @@ class ReportResultInfo {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
-		if(previewImages != null) {
+		if (previewImages != null) {
 			map['PreviewImages'] = previewImages;
 		}
-		if(template != null) {
+		if (template != null) {
 			map['Template'] = template;
 		}
-		if(reportElementValues != null) {
+		if (reportElementValues != null) {
 			map['ReportElementValues'] = reportElementValues;
 		}
-		if(reportMeasureElementValues != null) {
+		if (reportMeasureElementValues != null) {
 			map['ReportMeasureElementValues'] = reportMeasureElementValues;
 		}
-		if(tagCodeList != null) {
+		if (tagCodeList != null) {
 			map['TagCodeList'] = tagCodeList;
 		}
 		map['Organ'] = organ.index;
@@ -2189,9 +2189,9 @@ class SaveAppletReportRequest extends ReportResultInfo{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(openId != null)
+		if (openId != null)
 			map['OpenId'] = openId;
-		if(terminalRecordId != null)
+		if (terminalRecordId != null)
 			map['TerminalRecordId'] = terminalRecordId;
 		return map;
 	}
@@ -2219,9 +2219,9 @@ class GetAppletReportRequest extends AppletAPIBaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(recordId != null)
+		if (recordId != null)
 			map['RecordId'] = recordId;
-		if(reportId != null)
+		if (reportId != null)
 			map['ReportId'] = reportId;
 		return map;
 	}
@@ -2276,11 +2276,11 @@ class UploadConsultationImageRequest extends ReportResultInfo{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(openId != null)
+		if (openId != null)
 			map['OpenId'] = openId;
-		if(consultationId != null)
+		if (consultationId != null)
 			map['ConsultationId'] = consultationId;
-		if(imageBase64 != null)
+		if (imageBase64 != null)
 			map['ImageBase64'] = imageBase64;
 		return map;
 	}

+ 25 - 25
lib/services/authentication.m.dart

@@ -39,14 +39,14 @@ class AuthenticationRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(fileName != null)
+		if (fileName != null)
 			map['FileName'] = fileName;
 		map['ServerType'] = serverType.index;
-		if(urlParams != null)
+		if (urlParams != null)
 			map['UrlParams'] = urlParams;
-		if(headerParams != null)
+		if (headerParams != null)
 			map['HeaderParams'] = headerParams;
-		if(requestMethod != null)
+		if (requestMethod != null)
 			map['RequestMethod'] = requestMethod;
 		return map;
 	}
@@ -129,30 +129,30 @@ class TokenDTO {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['Version'] = version;
-		if(code != null) {
+		if (code != null) {
 			map['Code'] = code;
 		}
 		map['AccountType'] = accountType.index;
-		if(accountName != null) {
+		if (accountName != null) {
 			map['AccountName'] = accountName;
 		}
 		map['Platform'] = platform.index;
 		map['LoginSource'] = loginSource.index;
-		if(clientId != null) {
+		if (clientId != null) {
 			map['ClientId'] = clientId;
 		}
-		if(loginServer != null) {
+		if (loginServer != null) {
 			map['LoginServer'] = loginServer;
 		}
-		if(createTime != null) {
+		if (createTime != null) {
 			map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
 		}
-		if(expiration != null) {
+		if (expiration != null) {
 			map['Expiration'] = JsonRpcUtils.dateFormat(expiration!);
 		}
 		map['IpValue'] = ipValue;
 		map['IsOnline'] = isOnline;
-		if(installVersion != null) {
+		if (installVersion != null) {
 			map['InstallVersion'] = installVersion;
 		}
 		map['IsOldPlatform'] = isOldPlatform;
@@ -204,19 +204,19 @@ class ApplyTokenRequest {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['AccountType'] = accountType.index;
-		if(accountName != null) {
+		if (accountName != null) {
 			map['AccountName'] = accountName;
 		}
 		map['Platform'] = platform.index;
 		map['LoginSource'] = loginSource.index;
-		if(clientId != null) {
+		if (clientId != null) {
 			map['ClientId'] = clientId;
 		}
-		if(loginServer != null) {
+		if (loginServer != null) {
 			map['LoginServer'] = loginServer;
 		}
 		map['IpValue'] = ipValue;
-		if(installVersion != null) {
+		if (installVersion != null) {
 			map['InstallVersion'] = installVersion;
 		}
 		map['IsOldPlatform'] = isOldPlatform;
@@ -7327,7 +7327,7 @@ class ValidateTokenResult {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['Code'] = code.index;
-		if(token != null) {
+		if (token != null) {
 			map['Token'] = token;
 		}
 		return map;
@@ -7352,10 +7352,10 @@ class ValidateTokenRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(token != null) {
+		if (token != null) {
 			map['Token'] = token;
 		}
-		if(methodName != null) {
+		if (methodName != null) {
 			map['MethodName'] = methodName;
 		}
 		return map;
@@ -7381,7 +7381,7 @@ class GetTokensWithClientIdRequest extends BaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(clientId != null)
+		if (clientId != null)
 			map['ClientId'] = clientId;
 		map['AccountType'] = accountType.index;
 		return map;
@@ -7404,7 +7404,7 @@ class GetTokenWithClientIdsRequest extends BaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(clientIds != null)
+		if (clientIds != null)
 			map['ClientIds'] = clientIds;
 		return map;
 	}
@@ -7426,7 +7426,7 @@ class GetTokenWithValuesRequest extends BaseRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(tokenValues != null)
+		if (tokenValues != null)
 			map['TokenValues'] = tokenValues;
 		return map;
 	}
@@ -7475,7 +7475,7 @@ class SetIPAddressRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(iPAddress != null)
+		if (iPAddress != null)
 			map['IPAddress'] = iPAddress;
 		return map;
 	}
@@ -7506,7 +7506,7 @@ class GetPagedTokensRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(keyword != null)
+		if (keyword != null)
 			map['Keyword'] = keyword;
 		return map;
 	}
@@ -7552,7 +7552,7 @@ class GetPagedTokensOnlineRequest extends GetPagedTokensRequest{
 		map['AccountType'] = accountType;
 		map['LoginFrom'] = loginFrom;
 		map['LoginSource'] = loginSource;
-		if(isOnline != null)
+		if (isOnline != null)
 			map['IsOnline'] = isOnline;
 		return map;
 	}
@@ -7577,7 +7577,7 @@ class SetTokenInstallVersionRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(installVersion != null)
+		if (installVersion != null)
 			map['InstallVersion'] = installVersion;
 		return map;
 	}

+ 15 - 15
lib/services/chatMessage.m.dart

@@ -47,21 +47,21 @@ class ChatMessagesDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(code != null)
+		if (code != null)
 			map['Code'] = code;
 		map['ChatCmdType'] = chatCmdType.index;
-		if(content != null)
+		if (content != null)
 			map['Content'] = content;
-		if(relevanceCode != null)
+		if (relevanceCode != null)
 			map['RelevanceCode'] = relevanceCode;
 		map['TransactionType'] = transactionType.index;
-		if(visitor != null)
+		if (visitor != null)
 			map['Visitor'] = visitor;
-		if(userCode != null)
+		if (userCode != null)
 			map['UserCode'] = userCode;
-		if(displayName != null)
+		if (displayName != null)
 			map['DisplayName'] = displayName;
-		if(headImg != null)
+		if (headImg != null)
 			map['HeadImg'] = headImg;
 		return map;
 	}
@@ -92,7 +92,7 @@ class GetChatMessagePageRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(relevanceCode != null)
+		if (relevanceCode != null)
 			map['RelevanceCode'] = relevanceCode;
 		return map;
 	}
@@ -144,7 +144,7 @@ class GetChatMessagePageVisitorRequest extends PageNoTokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(relevanceCode != null)
+		if (relevanceCode != null)
 			map['RelevanceCode'] = relevanceCode;
 		return map;
 	}
@@ -179,9 +179,9 @@ class SendChatMessageRequest extends TokenRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['ChatCmdType'] = chatCmdType.index;
-		if(content != null)
+		if (content != null)
 			map['Content'] = content;
-		if(relevanceCode != null)
+		if (relevanceCode != null)
 			map['RelevanceCode'] = relevanceCode;
 		map['TransactionType'] = transactionType.index;
 		return map;
@@ -219,17 +219,17 @@ class SendVisitChatMessageRequest {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['ChatCmdType'] = chatCmdType.index;
-		if(content != null) {
+		if (content != null) {
 			map['Content'] = content;
 		}
-		if(relevanceCode != null) {
+		if (relevanceCode != null) {
 			map['RelevanceCode'] = relevanceCode;
 		}
 		map['TransactionType'] = transactionType.index;
-		if(visitor != null) {
+		if (visitor != null) {
 			map['Visitor'] = visitor;
 		}
-		if(userName != null) {
+		if (userName != null) {
 			map['UserName'] = userName;
 		}
 		return map;

+ 23 - 23
lib/services/connect.m.dart

@@ -23,13 +23,13 @@ class ConnectResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(token != null) {
+		if (token != null) {
 			map['Token'] = token;
 		}
-		if(uniqueCode != null) {
+		if (uniqueCode != null) {
 			map['UniqueCode'] = uniqueCode;
 		}
-		if(deviceCode != null) {
+		if (deviceCode != null) {
 			map['DeviceCode'] = deviceCode;
 		}
 		return map;
@@ -105,52 +105,52 @@ class ConnectRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(deviceUniqueCode != null) {
+		if (deviceUniqueCode != null) {
 			map['DeviceUniqueCode'] = deviceUniqueCode;
 		}
-		if(password != null) {
+		if (password != null) {
 			map['Password'] = password;
 		}
-		if(deviceModel != null) {
+		if (deviceModel != null) {
 			map['DeviceModel'] = deviceModel;
 		}
-		if(deviceType != null) {
+		if (deviceType != null) {
 			map['DeviceType'] = deviceType;
 		}
-		if(softwareVersion != null) {
+		if (softwareVersion != null) {
 			map['SoftwareVersion'] = softwareVersion;
 		}
-		if(systemVersion != null) {
+		if (systemVersion != null) {
 			map['SystemVersion'] = systemVersion;
 		}
-		if(cPUModel != null) {
+		if (cPUModel != null) {
 			map['CPUModel'] = cPUModel;
 		}
-		if(systemLanguage != null) {
+		if (systemLanguage != null) {
 			map['SystemLanguage'] = systemLanguage;
 		}
-		if(description != null) {
+		if (description != null) {
 			map['Description'] = description;
 		}
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
-		if(organizationCode != null) {
+		if (organizationCode != null) {
 			map['OrganizationCode'] = organizationCode;
 		}
-		if(departmentCode != null) {
+		if (departmentCode != null) {
 			map['DepartmentCode'] = departmentCode;
 		}
 		map['Platform'] = platform.index;
 		map['LoginSource'] = loginSource.index;
-		if(installVersion != null) {
+		if (installVersion != null) {
 			map['InstallVersion'] = installVersion;
 		}
 		map['IsOldPlatform'] = isOldPlatform;
-		if(deviceCode != null) {
+		if (deviceCode != null) {
 			map['DeviceCode'] = deviceCode;
 		}
-		if(ip != null) {
+		if (ip != null) {
 			map['Ip'] = ip;
 		}
 		map['ProxyType'] = proxyType.index;
@@ -182,16 +182,16 @@ class AddOldVersionDeviceRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(terminalName != null) {
+		if (terminalName != null) {
 			map['TerminalName'] = terminalName;
 		}
-		if(terminalModel != null) {
+		if (terminalModel != null) {
 			map['TerminalModel'] = terminalModel;
 		}
-		if(terminalPassword != null) {
+		if (terminalPassword != null) {
 			map['TerminalPassword'] = terminalPassword;
 		}
-		if(organizationName != null) {
+		if (organizationName != null) {
 			map['OrganizationName'] = organizationName;
 		}
 		return map;
@@ -314,7 +314,7 @@ class CacheDeviceDTO extends DeviceInfoDTO{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['IsOnline'] = isOnline;
-		if(sourceUrl != null)
+		if (sourceUrl != null)
 			map['SourceUrl'] = sourceUrl;
 		return map;
 	}

+ 66 - 66
lib/services/deployPlatform.m.dart

@@ -45,20 +45,20 @@ class DeployPlatServerInfoDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(id != null)
+		if (id != null)
 			map['Id'] = id;
-		if(serverID != null)
+		if (serverID != null)
 			map['ServerID'] = serverID;
-		if(ip != null)
+		if (ip != null)
 			map['Ip'] = ip;
-		if(name != null)
+		if (name != null)
 			map['Name'] = name;
 		map['IsMaster'] = isMaster;
-		if(masterServerId != null)
+		if (masterServerId != null)
 			map['MasterServerId'] = masterServerId;
-		if(logs != null)
+		if (logs != null)
 			map['Logs'] = logs;
-		if(remoteServerIp != null)
+		if (remoteServerIp != null)
 			map['RemoteServerIp'] = remoteServerIp;
 		return map;
 	}
@@ -94,20 +94,20 @@ class AddServerRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(serverID != null) {
+		if (serverID != null) {
 			map['ServerID'] = serverID;
 		}
-		if(ip != null) {
+		if (ip != null) {
 			map['Ip'] = ip;
 		}
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
 		map['IsMaster'] = isMaster;
-		if(masterServerId != null) {
+		if (masterServerId != null) {
 			map['MasterServerId'] = masterServerId;
 		}
-		if(remoteServerIp != null) {
+		if (remoteServerIp != null) {
 			map['RemoteServerIp'] = remoteServerIp;
 		}
 		return map;
@@ -147,23 +147,23 @@ class UpdateServerRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
-		if(serverID != null) {
+		if (serverID != null) {
 			map['ServerID'] = serverID;
 		}
-		if(ip != null) {
+		if (ip != null) {
 			map['Ip'] = ip;
 		}
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
 		map['IsMaster'] = isMaster;
-		if(masterServerId != null) {
+		if (masterServerId != null) {
 			map['MasterServerId'] = masterServerId;
 		}
-		if(remoteServerIp != null) {
+		if (remoteServerIp != null) {
 			map['RemoteServerIp'] = remoteServerIp;
 		}
 		return map;
@@ -188,10 +188,10 @@ class SaveLogsRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
-		if(logs != null) {
+		if (logs != null) {
 			map['Logs'] = logs;
 		}
 		return map;
@@ -213,7 +213,7 @@ class GetServerRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
 		return map;
@@ -253,9 +253,9 @@ class DeployPlatOperatorDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(id != null)
+		if (id != null)
 			map['Id'] = id;
-		if(name != null)
+		if (name != null)
 			map['Name'] = name;
 		map['Status'] = status.index;
 		return map;
@@ -299,12 +299,12 @@ class DeployRecordUpgradeInfoDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(id != null)
+		if (id != null)
 			map['Id'] = id;
 		map['DeviceType'] = deviceType.index;
-		if(language != null)
+		if (language != null)
 			map['Language'] = language;
-		if(describe != null)
+		if (describe != null)
 			map['Describe'] = describe;
 		return map;
 	}
@@ -362,26 +362,26 @@ class DeployRecordInfoDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(id != null)
+		if (id != null)
 			map['Id'] = id;
-		if(version != null)
+		if (version != null)
 			map['Version'] = version;
-		if(releasedBy != null)
+		if (releasedBy != null)
 			map['ReleasedBy'] = releasedBy;
-		if(internalRecord != null)
+		if (internalRecord != null)
 			map['InternalRecord'] = internalRecord;
 		map['InProcess'] = inProcess;
-		if(generatePackageJson != null)
+		if (generatePackageJson != null)
 			map['GeneratePackageJson'] = generatePackageJson;
-		if(packageLogs != null)
+		if (packageLogs != null)
 			map['PackageLogs'] = packageLogs;
-		if(lastPackageTime != null)
+		if (lastPackageTime != null)
 			map['LastPackageTime'] = JsonRpcUtils.dateFormat(lastPackageTime!);
-		if(upgradeInfos != null)
+		if (upgradeInfos != null)
 			map['UpgradeInfos'] = upgradeInfos;
-		if(deployToolDownloadUrl != null)
+		if (deployToolDownloadUrl != null)
 			map['DeployToolDownloadUrl'] = deployToolDownloadUrl;
-		if(ugradeFilesDownloadUrl != null)
+		if (ugradeFilesDownloadUrl != null)
 			map['UgradeFilesDownloadUrl'] = ugradeFilesDownloadUrl;
 		return map;
 	}
@@ -434,19 +434,19 @@ class SaveDeployRecordRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
-		if(version != null) {
+		if (version != null) {
 			map['Version'] = version;
 		}
-		if(releasedBy != null) {
+		if (releasedBy != null) {
 			map['ReleasedBy'] = releasedBy;
 		}
-		if(internalRecord != null) {
+		if (internalRecord != null) {
 			map['InternalRecord'] = internalRecord;
 		}
-		if(upgradeInfos != null) {
+		if (upgradeInfos != null) {
 			map['UpgradeInfos'] = upgradeInfos;
 		}
 		return map;
@@ -468,7 +468,7 @@ class RemoveDeployRecordRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
 		return map;
@@ -493,7 +493,7 @@ class AddDeployPlatOperatorRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
 		map['Status'] = status.index;
@@ -522,10 +522,10 @@ class ModifyDeployPlatOperatorRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
 		map['Status'] = status.index;
@@ -548,7 +548,7 @@ class DeleteDeployPlatOperatorRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(id != null) {
+		if (id != null) {
 			map['Id'] = id;
 		}
 		return map;
@@ -581,10 +581,10 @@ class OperatorLoginRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
-		if(password != null) {
+		if (password != null) {
 			map['Password'] = password;
 		}
 		return map;
@@ -609,10 +609,10 @@ class FindTextWithUrlAndPrefixRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(url != null) {
+		if (url != null) {
 			map['Url'] = url;
 		}
-		if(prefix != null) {
+		if (prefix != null) {
 			map['Prefix'] = prefix;
 		}
 		return map;
@@ -673,7 +673,7 @@ class GeneratePackageRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(deployRecordId != null) {
+		if (deployRecordId != null) {
 			map['DeployRecordId'] = deployRecordId;
 		}
 		map['IsCreateDeployTool'] = isCreateDeployTool;
@@ -683,22 +683,22 @@ class GeneratePackageRequest {
 		map['IsAndroidClientSelected'] = isAndroidClientSelected;
 		map['IsSonoPostSelected'] = isSonoPostSelected;
 		map['IsWindowsFISSDKSelected'] = isWindowsFISSDKSelected;
-		if(selectedServerZipUrl != null) {
+		if (selectedServerZipUrl != null) {
 			map['SelectedServerZipUrl'] = selectedServerZipUrl;
 		}
-		if(selectedPCClientZipUrl != null) {
+		if (selectedPCClientZipUrl != null) {
 			map['SelectedPCClientZipUrl'] = selectedPCClientZipUrl;
 		}
-		if(selectedAndroidClientZipUrl != null) {
+		if (selectedAndroidClientZipUrl != null) {
 			map['SelectedAndroidClientZipUrl'] = selectedAndroidClientZipUrl;
 		}
-		if(selectedSonoPostZipUrl != null) {
+		if (selectedSonoPostZipUrl != null) {
 			map['SelectedSonoPostZipUrl'] = selectedSonoPostZipUrl;
 		}
-		if(selectedWindowsFISSDKZipUrl != null) {
+		if (selectedWindowsFISSDKZipUrl != null) {
 			map['SelectedWindowsFISSDKZipUrl'] = selectedWindowsFISSDKZipUrl;
 		}
-		if(language != null) {
+		if (language != null) {
 			map['Language'] = language;
 		}
 		return map;
@@ -723,10 +723,10 @@ class UploadTotargetServerRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(serverInfoId != null) {
+		if (serverInfoId != null) {
 			map['ServerInfoId'] = serverInfoId;
 		}
-		if(recordId != null) {
+		if (recordId != null) {
 			map['RecordId'] = recordId;
 		}
 		return map;
@@ -748,7 +748,7 @@ class GetPackageRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(deployRecordId != null) {
+		if (deployRecordId != null) {
 			map['DeployRecordId'] = deployRecordId;
 		}
 		return map;
@@ -770,7 +770,7 @@ class CancelPackagingRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(deployRecordId != null) {
+		if (deployRecordId != null) {
 			map['DeployRecordId'] = deployRecordId;
 		}
 		return map;
@@ -816,7 +816,7 @@ class ModifyAppSettingsJsonRequest {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['SettingType'] = settingType;
-		if(json != null) {
+		if (json != null) {
 			map['Json'] = json;
 		}
 		return map;
@@ -854,17 +854,17 @@ class DeployRequest {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['IsUpgradeServer'] = isUpgradeServer;
-		if(serverZipUrl != null) {
+		if (serverZipUrl != null) {
 			map['ServerZipUrl'] = serverZipUrl;
 		}
 		map['IsUpgradeClient'] = isUpgradeClient;
-		if(openWebUrl != null) {
+		if (openWebUrl != null) {
 			map['OpenWebUrl'] = openWebUrl;
 		}
-		if(clientWebUrl != null) {
+		if (clientWebUrl != null) {
 			map['ClientWebUrl'] = clientWebUrl;
 		}
-		if(upgradeSettings != null) {
+		if (upgradeSettings != null) {
 			map['UpgradeSettings'] = upgradeSettings;
 		}
 		return map;

File diff suppressed because it is too large
+ 176 - 176
lib/services/device.m.dart


File diff suppressed because it is too large
+ 198 - 198
lib/services/education.m.dart


+ 14 - 14
lib/services/identityApply.m.dart

@@ -44,20 +44,20 @@ class IdentityApplyDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(identityApplyCode != null)
+		if (identityApplyCode != null)
 			map['IdentityApplyCode'] = identityApplyCode;
-		if(userCode != null)
+		if (userCode != null)
 			map['UserCode'] = userCode;
-		if(applyRoleCode != null)
+		if (applyRoleCode != null)
 			map['ApplyRoleCode'] = applyRoleCode;
-		if(identityCard != null)
+		if (identityCard != null)
 			map['IdentityCard'] = identityCard;
-		if(licenseCard != null)
+		if (licenseCard != null)
 			map['LicenseCard'] = licenseCard;
 		map['ApplyState'] = applyState.index;
-		if(applyNote != null)
+		if (applyNote != null)
 			map['ApplyNote'] = applyNote;
-		if(fieldList != null)
+		if (fieldList != null)
 			map['FieldList'] = fieldList;
 		return map;
 	}
@@ -82,7 +82,7 @@ class GetLastIdentityApplyRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(applyRoleCode != null)
+		if (applyRoleCode != null)
 			map['ApplyRoleCode'] = applyRoleCode;
 		return map;
 	}
@@ -118,22 +118,22 @@ class ApplyForRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(token != null) {
+		if (token != null) {
 			map['Token'] = token;
 		}
-		if(extensionData != null) {
+		if (extensionData != null) {
 			map['ExtensionData'] = extensionData;
 		}
-		if(applyRoleCode != null) {
+		if (applyRoleCode != null) {
 			map['ApplyRoleCode'] = applyRoleCode;
 		}
-		if(identityCard != null) {
+		if (identityCard != null) {
 			map['IdentityCard'] = identityCard;
 		}
-		if(licenseCard != null) {
+		if (licenseCard != null) {
 			map['LicenseCard'] = licenseCard;
 		}
-		if(fieldList != null) {
+		if (fieldList != null) {
 			map['FieldList'] = fieldList;
 		}
 		return map;

+ 11 - 11
lib/services/lab.m.dart

@@ -50,14 +50,14 @@ class FileUploadInfoDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(uploadId != null) {
+		if (uploadId != null) {
 			map['UploadId'] = uploadId;
 		}
 		map['PartNum'] = partNum;
-		if(fileUrl != null) {
+		if (fileUrl != null) {
 			map['FileUrl'] = fileUrl;
 		}
-		if(fileName != null) {
+		if (fileName != null) {
 			map['FileName'] = fileName;
 		}
 		return map;
@@ -99,13 +99,13 @@ class RecordLaboratoryFileRequest extends TokenRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['UploadType'] = uploadType.index;
-		if(fileUploadInfos != null)
+		if (fileUploadInfos != null)
 			map['FileUploadInfos'] = fileUploadInfos;
 		map['IsComprehensiveAnalysis'] = isComprehensiveAnalysis;
 		map['IsSeparateAnalysis'] = isSeparateAnalysis;
-		if(folderName != null)
+		if (folderName != null)
 			map['FolderName'] = folderName;
-		if(folderCode != null)
+		if (folderCode != null)
 			map['FolderCode'] = folderCode;
 		return map;
 	}
@@ -132,13 +132,13 @@ class LabFolderDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(code != null) {
+		if (code != null) {
 			map['Code'] = code;
 		}
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
-		if(parentCode != null) {
+		if (parentCode != null) {
 			map['ParentCode'] = parentCode;
 		}
 		return map;
@@ -170,7 +170,7 @@ class GetFileListByFolderRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(folderCode != null)
+		if (folderCode != null)
 			map['FolderCode'] = folderCode;
 		return map;
 	}
@@ -191,7 +191,7 @@ class DownloadLabFileTemplateResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(templateFileUrl != null) {
+		if (templateFileUrl != null) {
 			map['TemplateFileUrl'] = templateFileUrl;
 		}
 		return map;

File diff suppressed because it is too large
+ 207 - 207
lib/services/liveConsultation.m.dart


+ 43 - 43
lib/services/login.m.dart

@@ -35,14 +35,14 @@ class LoginResult {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['LoginState'] = loginState.index;
-		if(token != null) {
+		if (token != null) {
 			map['Token'] = token;
 		}
-		if(lockRemainingTimes != null) {
+		if (lockRemainingTimes != null) {
 			map['LockRemainingTimes'] = lockRemainingTimes;
 		}
 		map['PasswordExpired'] = passwordExpired;
-		if(accountName != null) {
+		if (accountName != null) {
 			map['AccountName'] = accountName;
 		}
 		return map;
@@ -82,21 +82,21 @@ class CommonLoginRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(anyAccount != null) {
+		if (anyAccount != null) {
 			map['AnyAccount'] = anyAccount;
 		}
-		if(anyCode != null) {
+		if (anyCode != null) {
 			map['AnyCode'] = anyCode;
 		}
-		if(password != null) {
+		if (password != null) {
 			map['Password'] = password;
 		}
-		if(headerMap != null) {
+		if (headerMap != null) {
 			map['HeaderMap'] = headerMap;
 		}
 		map['Platform'] = platform.index;
 		map['LoginSource'] = loginSource.index;
-		if(installVersion != null) {
+		if (installVersion != null) {
 			map['InstallVersion'] = installVersion;
 		}
 		return map;
@@ -118,7 +118,7 @@ class CheckLoginTypeRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(anyAccount != null) {
+		if (anyAccount != null) {
 			map['AnyAccount'] = anyAccount;
 		}
 		return map;
@@ -149,16 +149,16 @@ class CommonSignUpRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(anyAccount != null) {
+		if (anyAccount != null) {
 			map['AnyAccount'] = anyAccount;
 		}
-		if(anyCode != null) {
+		if (anyCode != null) {
 			map['AnyCode'] = anyCode;
 		}
-		if(password != null) {
+		if (password != null) {
 			map['Password'] = password;
 		}
-		if(headerMap != null) {
+		if (headerMap != null) {
 			map['HeaderMap'] = headerMap;
 		}
 		return map;
@@ -183,10 +183,10 @@ class CheckSMSVerificationCodeRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(userPhone != null) {
+		if (userPhone != null) {
 			map['UserPhone'] = userPhone;
 		}
-		if(verifyCode != null) {
+		if (verifyCode != null) {
 			map['VerifyCode'] = verifyCode;
 		}
 		return map;
@@ -208,7 +208,7 @@ class SendSMSVerificationCodeRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(userPhone != null) {
+		if (userPhone != null) {
 			map['UserPhone'] = userPhone;
 		}
 		return map;
@@ -233,10 +233,10 @@ class SendEmailVerificationCodeRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(emailAddress != null) {
+		if (emailAddress != null) {
 			map['EmailAddress'] = emailAddress;
 		}
-		if(languageCode != null) {
+		if (languageCode != null) {
 			map['LanguageCode'] = languageCode;
 		}
 		return map;
@@ -261,10 +261,10 @@ class CheckEmailVerificationCodeRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(emailAddress != null) {
+		if (emailAddress != null) {
 			map['EmailAddress'] = emailAddress;
 		}
-		if(verifyCode != null) {
+		if (verifyCode != null) {
 			map['VerifyCode'] = verifyCode;
 		}
 		return map;
@@ -292,13 +292,13 @@ class RetrievePasswordByPhoneRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(phone != null) {
+		if (phone != null) {
 			map['Phone'] = phone;
 		}
-		if(verifyCode != null) {
+		if (verifyCode != null) {
 			map['VerifyCode'] = verifyCode;
 		}
-		if(newPassword != null) {
+		if (newPassword != null) {
 			map['NewPassword'] = newPassword;
 		}
 		return map;
@@ -326,13 +326,13 @@ class RetrievePasswordByEmailRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(mail != null) {
+		if (mail != null) {
 			map['Mail'] = mail;
 		}
-		if(verifyCode != null) {
+		if (verifyCode != null) {
 			map['VerifyCode'] = verifyCode;
 		}
-		if(newPassword != null) {
+		if (newPassword != null) {
 			map['NewPassword'] = newPassword;
 		}
 		return map;
@@ -354,7 +354,7 @@ class VerifyAccountRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(userName != null) {
+		if (userName != null) {
 			map['UserName'] = userName;
 		}
 		return map;
@@ -392,9 +392,9 @@ class ModifyPasswordRequest extends CommonSignUpRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(token != null)
+		if (token != null)
 			map['Token'] = token;
-		if(newPassword != null)
+		if (newPassword != null)
 			map['NewPassword'] = newPassword;
 		return map;
 	}
@@ -488,14 +488,14 @@ class StartAssociatedWithAccountRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(wingUserName != null)
+		if (wingUserName != null)
 			map['WingUserName'] = wingUserName;
-		if(thirdPartyUserId != null)
+		if (thirdPartyUserId != null)
 			map['ThirdPartyUserId'] = thirdPartyUserId;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		map['NeedPullData'] = needPullData;
-		if(associateType != null)
+		if (associateType != null)
 			map['AssociateType'] = associateType;
 		return map;
 	}
@@ -547,9 +547,9 @@ class AssociatedFeatureInfoDTO extends AssociatedInfoDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(featureCode != null)
+		if (featureCode != null)
 			map['FeatureCode'] = featureCode;
-		if(associatedPosition != null)
+		if (associatedPosition != null)
 			map['AssociatedPosition'] = associatedPosition;
 		return map;
 	}
@@ -574,7 +574,7 @@ class GetAssociatedAccountInfoResult {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['IsSuccess'] = isSuccess;
-		if(accountInfoList != null) {
+		if (accountInfoList != null) {
 			map['AccountInfoList'] = accountInfoList;
 		}
 		return map;
@@ -600,7 +600,7 @@ class GetAssociatedAccountInfoRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(associateType != null)
+		if (associateType != null)
 			map['AssociateType'] = associateType;
 		return map;
 	}
@@ -649,7 +649,7 @@ class ClearAssociatedWithAccountRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thirdPartyUserId != null)
+		if (thirdPartyUserId != null)
 			map['ThirdPartyUserId'] = thirdPartyUserId;
 		return map;
 	}
@@ -674,7 +674,7 @@ class GetScanCodeResult {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['ValidSeconds'] = validSeconds;
-		if(scanCode != null) {
+		if (scanCode != null) {
 			map['ScanCode'] = scanCode;
 		}
 		return map;
@@ -710,7 +710,7 @@ class GetScanCodeRequest {
 		final map = Map<String, dynamic>();
 		map['ScanLoginSource'] = scanLoginSource.index;
 		map['Platform'] = platform.index;
-		if(installVersion != null) {
+		if (installVersion != null) {
 			map['InstallVersion'] = installVersion;
 		}
 		return map;
@@ -736,7 +736,7 @@ class ConfirmScanRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(scanCode != null)
+		if (scanCode != null)
 			map['ScanCode'] = scanCode;
 		return map;
 	}
@@ -767,7 +767,7 @@ class CheckConfirmScanStateResult {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['CheckConfirmScanState'] = checkConfirmScanState.index;
-		if(loginResult != null) {
+		if (loginResult != null) {
 			map['LoginResult'] = loginResult;
 		}
 		return map;
@@ -789,7 +789,7 @@ class CheckConfirmScanStateRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(scanCode != null) {
+		if (scanCode != null) {
 			map['ScanCode'] = scanCode;
 		}
 		return map;

File diff suppressed because it is too large
+ 180 - 180
lib/services/notification.m.dart


+ 80 - 80
lib/services/organization.m.dart

@@ -32,22 +32,22 @@ class SettingDTOClass {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(langugeKey != null) {
+		if (langugeKey != null) {
 			map['LangugeKey'] = langugeKey;
 		}
-		if(settingModule != null) {
+		if (settingModule != null) {
 			map['SettingModule'] = settingModule;
 		}
-		if(customContent != null) {
+		if (customContent != null) {
 			map['CustomContent'] = customContent;
 		}
-		if(completeContent != null) {
+		if (completeContent != null) {
 			map['CompleteContent'] = completeContent;
 		}
-		if(baseConfigVersion != null) {
+		if (baseConfigVersion != null) {
 			map['BaseConfigVersion'] = baseConfigVersion;
 		}
-		if(version != null) {
+		if (version != null) {
 			map['Version'] = version;
 		}
 		return map;
@@ -72,10 +72,10 @@ class ReferralOrganizationDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(organizationCode != null) {
+		if (organizationCode != null) {
 			map['OrganizationCode'] = organizationCode;
 		}
-		if(organizationName != null) {
+		if (organizationName != null) {
 			map['OrganizationName'] = organizationName;
 		}
 		return map;
@@ -158,32 +158,32 @@ class OrganizationBasicDTO extends OrganizationBaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(regionCode != null)
+		if (regionCode != null)
 			map['RegionCode'] = regionCode;
-		if(parentCode != null)
+		if (parentCode != null)
 			map['ParentCode'] = parentCode;
-		if(logoUrl != null)
+		if (logoUrl != null)
 			map['LogoUrl'] = logoUrl;
 		map['PatientType'] = patientType.index;
 		map['Isinvented'] = isinvented;
-		if(settings != null)
+		if (settings != null)
 			map['Settings'] = settings;
-		if(diagnosisModules != null)
+		if (diagnosisModules != null)
 			map['DiagnosisModules'] = diagnosisModules;
 		map['IsEncryptedShow'] = isEncryptedShow;
 		map['ReferralLimitHours'] = referralLimitHours;
-		if(referralOrganizationCodes != null)
+		if (referralOrganizationCodes != null)
 			map['ReferralOrganizationCodes'] = referralOrganizationCodes;
-		if(referralOrganizations != null)
+		if (referralOrganizations != null)
 			map['ReferralOrganizations'] = referralOrganizations;
-		if(defaultThesaurusCode != null)
+		if (defaultThesaurusCode != null)
 			map['DefaultThesaurusCode'] = defaultThesaurusCode;
-		if(defaultReportTemplateCode != null)
+		if (defaultReportTemplateCode != null)
 			map['DefaultReportTemplateCode'] = defaultReportTemplateCode;
 		map['EmergencyNeedFill'] = emergencyNeedFill;
-		if(emergencySettingVersion != null)
+		if (emergencySettingVersion != null)
 			map['EmergencySettingVersion'] = emergencySettingVersion;
-		if(emergencySettingJson != null)
+		if (emergencySettingJson != null)
 			map['EmergencySettingJson'] = emergencySettingJson;
 		return map;
 	}
@@ -322,33 +322,33 @@ class OrganizationDTO extends OrganizationBasicDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(description != null)
+		if (description != null)
 			map['Description'] = description;
-		if(rootCode != null)
+		if (rootCode != null)
 			map['RootCode'] = rootCode;
 		map['OrganizationType'] = organizationType.index;
-		if(authorityGroups != null)
+		if (authorityGroups != null)
 			map['AuthorityGroups'] = authorityGroups;
-		if(nautica != null)
+		if (nautica != null)
 			map['Nautica'] = nautica;
 		map['State'] = state.index;
-		if(directors != null)
+		if (directors != null)
 			map['Directors'] = directors;
-		if(assignedAdmins != null)
+		if (assignedAdmins != null)
 			map['AssignedAdmins'] = assignedAdmins;
-		if(patientSettingJson != null)
+		if (patientSettingJson != null)
 			map['PatientSettingJson'] = patientSettingJson;
-		if(examSettingJson != null)
+		if (examSettingJson != null)
 			map['ExamSettingJson'] = examSettingJson;
-		if(consultationSettingJson != null)
+		if (consultationSettingJson != null)
 			map['ConsultationSettingJson'] = consultationSettingJson;
-		if(patientSettingVersion != null)
+		if (patientSettingVersion != null)
 			map['PatientSettingVersion'] = patientSettingVersion;
-		if(examSettingVersion != null)
+		if (examSettingVersion != null)
 			map['ExamSettingVersion'] = examSettingVersion;
-		if(consultationSettingVersion != null)
+		if (consultationSettingVersion != null)
 			map['ConsultationSettingVersion'] = consultationSettingVersion;
-		if(parentOrganizationName != null)
+		if (parentOrganizationName != null)
 			map['ParentOrganizationName'] = parentOrganizationName;
 		return map;
 	}
@@ -388,11 +388,11 @@ class SearchOrganizationsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(keyword != null)
+		if (keyword != null)
 			map['Keyword'] = keyword;
-		if(parentCode != null)
+		if (parentCode != null)
 			map['ParentCode'] = parentCode;
-		if(parentShortCode != null)
+		if (parentShortCode != null)
 			map['ParentShortCode'] = parentShortCode;
 		map['OrganizationType'] = organizationType.index;
 		map['PageSize'] = pageSize;
@@ -420,7 +420,7 @@ class GetOrganizationByCodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(organizationCode != null)
+		if (organizationCode != null)
 			map['OrganizationCode'] = organizationCode;
 		return map;
 	}
@@ -471,7 +471,7 @@ class FindOrganizationListRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(keyWord != null)
+		if (keyWord != null)
 			map['KeyWord'] = keyWord;
 		return map;
 	}
@@ -502,7 +502,7 @@ class FindPatientOrganizationsByPageRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(keyWord != null)
+		if (keyWord != null)
 			map['KeyWord'] = keyWord;
 		return map;
 	}
@@ -570,28 +570,28 @@ class SavePersonOrganizationRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(token != null) {
+		if (token != null) {
 			map['Token'] = token;
 		}
-		if(regionCode != null) {
+		if (regionCode != null) {
 			map['RegionCode'] = regionCode;
 		}
-		if(parentCode != null) {
+		if (parentCode != null) {
 			map['ParentCode'] = parentCode;
 		}
-		if(logoUrl != null) {
+		if (logoUrl != null) {
 			map['LogoUrl'] = logoUrl;
 		}
-		if(organizationCode != null) {
+		if (organizationCode != null) {
 			map['OrganizationCode'] = organizationCode;
 		}
-		if(organizationName != null) {
+		if (organizationName != null) {
 			map['OrganizationName'] = organizationName;
 		}
 		map['PatientType'] = patientType.index;
 		map['IsEncryptedShow'] = isEncryptedShow;
 		map['ReferralLimitHours'] = referralLimitHours;
-		if(referralOrganizationCodes != null) {
+		if (referralOrganizationCodes != null) {
 			map['ReferralOrganizationCodes'] = referralOrganizationCodes;
 		}
 		return map;
@@ -622,13 +622,13 @@ class OrganizationItemDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(organizationName != null) {
+		if (organizationName != null) {
 			map['OrganizationName'] = organizationName;
 		}
-		if(parentCode != null) {
+		if (parentCode != null) {
 			map['ParentCode'] = parentCode;
 		}
-		if(extendsData != null) {
+		if (extendsData != null) {
 			map['ExtendsData'] = extendsData;
 		}
 		map['PatientType'] = patientType.index;
@@ -658,9 +658,9 @@ class AddOrganizationsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(organizationInfos != null)
+		if (organizationInfos != null)
 			map['OrganizationInfos'] = organizationInfos;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -685,7 +685,7 @@ class RemoveOrganizationsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(organizationCodes != null)
+		if (organizationCodes != null)
 			map['OrganizationCodes'] = organizationCodes;
 		return map;
 	}
@@ -713,9 +713,9 @@ class UpdateOrganizationNameRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(organizationCode != null)
+		if (organizationCode != null)
 			map['OrganizationCode'] = organizationCode;
-		if(organizationName != null)
+		if (organizationName != null)
 			map['OrganizationName'] = organizationName;
 		return map;
 	}
@@ -742,13 +742,13 @@ class OrganizationSettingResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(settingVersion != null) {
+		if (settingVersion != null) {
 			map['SettingVersion'] = settingVersion;
 		}
-		if(cMSTemplateCode != null) {
+		if (cMSTemplateCode != null) {
 			map['CMSTemplateCode'] = cMSTemplateCode;
 		}
-		if(settingData != null) {
+		if (settingData != null) {
 			map['SettingData'] = settingData;
 		}
 		return map;
@@ -787,7 +787,7 @@ class GetUserOrganizationSettingRequest extends TokenRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['SettingType'] = settingType.index;
-		if(version != null)
+		if (version != null)
 			map['Version'] = version;
 		return map;
 	}
@@ -811,10 +811,10 @@ class ServerLangugeClass {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(langugeKey != null) {
+		if (langugeKey != null) {
 			map['LangugeKey'] = langugeKey;
 		}
-		if(langugeModules != null) {
+		if (langugeModules != null) {
 			map['LangugeModules'] = langugeModules;
 		}
 		return map;
@@ -884,38 +884,38 @@ class ServerSettingResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(serverLangugeList != null) {
+		if (serverLangugeList != null) {
 			map['ServerLangugeList'] = serverLangugeList;
 		}
-		if(serverConfigList != null) {
+		if (serverConfigList != null) {
 			map['ServerConfigList'] = serverConfigList;
 		}
 		map['HeartRateSeconds'] = heartRateSeconds;
 		map['LiveConsultationDefaultQueryDays'] = liveConsultationDefaultQueryDays;
-		if(notificationUrl != null) {
+		if (notificationUrl != null) {
 			map['NotificationUrl'] = notificationUrl;
 		}
 		map['LiveConsultationRateSeconds'] = liveConsultationRateSeconds;
-		if(cMSUrl != null) {
+		if (cMSUrl != null) {
 			map['CMSUrl'] = cMSUrl;
 		}
-		if(courseUrl != null) {
+		if (courseUrl != null) {
 			map['CourseUrl'] = courseUrl;
 		}
-		if(courseHomeUrl != null) {
+		if (courseHomeUrl != null) {
 			map['CourseHomeUrl'] = courseHomeUrl;
 		}
-		if(courseAPIUrl != null) {
+		if (courseAPIUrl != null) {
 			map['CourseAPIUrl'] = courseAPIUrl;
 		}
 		map['IsSelfRtcService'] = isSelfRtcService;
-		if(liveProtocol != null) {
+		if (liveProtocol != null) {
 			map['LiveProtocol'] = liveProtocol;
 		}
 		map['LiveProtocolType'] = liveProtocolType.index;
 		map['IsSMSOn'] = isSMSOn;
 		map['IsASROn'] = isASROn;
-		if(webServerUrl != null) {
+		if (webServerUrl != null) {
 			map['WebServerUrl'] = webServerUrl;
 		}
 		map['ConsultationTimeoutTimes'] = consultationTimeoutTimes;
@@ -944,13 +944,13 @@ class LangugeDataResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(version != null) {
+		if (version != null) {
 			map['Version'] = version;
 		}
-		if(content != null) {
+		if (content != null) {
 			map['Content'] = content;
 		}
-		if(langugeModule != null) {
+		if (langugeModule != null) {
 			map['LangugeModule'] = langugeModule;
 		}
 		return map;
@@ -975,10 +975,10 @@ class LangugeDataItemRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(version != null) {
+		if (version != null) {
 			map['Version'] = version;
 		}
-		if(langugeModule != null) {
+		if (langugeModule != null) {
 			map['LangugeModule'] = langugeModule;
 		}
 		return map;
@@ -1007,9 +1007,9 @@ class LangugeDataRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(langugeKey != null)
+		if (langugeKey != null)
 			map['LangugeKey'] = langugeKey;
-		if(langugeDataItemList != null)
+		if (langugeDataItemList != null)
 			map['LangugeDataItemList'] = langugeDataItemList;
 		return map;
 	}
@@ -1036,13 +1036,13 @@ class OrganizationSimplifyDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(organizationCode != null) {
+		if (organizationCode != null) {
 			map['OrganizationCode'] = organizationCode;
 		}
-		if(organizationName != null) {
+		if (organizationName != null) {
 			map['OrganizationName'] = organizationName;
 		}
-		if(shortCode != null) {
+		if (shortCode != null) {
 			map['ShortCode'] = shortCode;
 		}
 		return map;
@@ -1080,7 +1080,7 @@ class GetOrganizationByUserAndDevicesRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(keyword != null)
+		if (keyword != null)
 			map['Keyword'] = keyword;
 		map['OnlyOrganization'] = onlyOrganization;
 		map['IsIncloudReferral'] = isIncloudReferral;
@@ -1107,7 +1107,7 @@ class QueryOrganizationsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(shortCode != null)
+		if (shortCode != null)
 			map['ShortCode'] = shortCode;
 		return map;
 	}

File diff suppressed because it is too large
+ 179 - 179
lib/services/other.m.dart


+ 54 - 54
lib/services/patient.m.dart

@@ -25,9 +25,9 @@ class CreatePatientRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(patientData != null)
+		if (patientData != null)
 			map['PatientData'] = patientData;
-		if(assignmentUserCodes != null)
+		if (assignmentUserCodes != null)
 			map['AssignmentUserCodes'] = assignmentUserCodes;
 		return map;
 	}
@@ -55,9 +55,9 @@ class CreatePatientByUnregisteredRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(unregisteredPatientCode != null)
+		if (unregisteredPatientCode != null)
 			map['UnregisteredPatientCode'] = unregisteredPatientCode;
-		if(patientName != null)
+		if (patientName != null)
 			map['PatientName'] = patientName;
 		return map;
 	}
@@ -88,11 +88,11 @@ class UpdatePatientRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(code != null)
+		if (code != null)
 			map['Code'] = code;
-		if(patientData != null)
+		if (patientData != null)
 			map['PatientData'] = patientData;
-		if(assignmentUserCodes != null)
+		if (assignmentUserCodes != null)
 			map['AssignmentUserCodes'] = assignmentUserCodes;
 		return map;
 	}
@@ -171,35 +171,35 @@ class PatientInfoBaseDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(patientCode != null)
+		if (patientCode != null)
 			map['PatientCode'] = patientCode;
-		if(name != null)
+		if (name != null)
 			map['Name'] = name;
-		if(phone != null)
+		if (phone != null)
 			map['Phone'] = phone;
-		if(identityCard != null)
+		if (identityCard != null)
 			map['IdentityCard'] = identityCard;
-		if(insuranceCode != null)
+		if (insuranceCode != null)
 			map['InsuranceCode'] = insuranceCode;
-		if(age != null)
+		if (age != null)
 			map['Age'] = age;
 		map['Gender'] = gender;
 		map['IsValid'] = isValid;
-		if(organizationCode != null)
+		if (organizationCode != null)
 			map['OrganizationCode'] = organizationCode;
-		if(rootOrganizationCode != null)
+		if (rootOrganizationCode != null)
 			map['RootOrganizationCode'] = rootOrganizationCode;
-		if(assignmentUserCodes != null)
+		if (assignmentUserCodes != null)
 			map['AssignmentUserCodes'] = assignmentUserCodes;
-		if(patientData != null)
+		if (patientData != null)
 			map['PatientData'] = patientData;
 		map['UnReadRecordCount'] = unReadRecordCount;
-		if(headImgUrl != null)
+		if (headImgUrl != null)
 			map['HeadImgUrl'] = headImgUrl;
-		if(patientType != null)
+		if (patientType != null)
 			map['PatientType'] = patientType;
 		map['IsReferral'] = isReferral;
-		if(devicePatientIDs != null)
+		if (devicePatientIDs != null)
 			map['DevicePatientIDs'] = devicePatientIDs;
 		map['IsFromDicom'] = isFromDicom;
 		return map;
@@ -288,11 +288,11 @@ class PatientInfoDTO extends PatientInfoBaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(creatorCode != null)
+		if (creatorCode != null)
 			map['CreatorCode'] = creatorCode;
-		if(deviceCode != null)
+		if (deviceCode != null)
 			map['DeviceCode'] = deviceCode;
-		if(updateUsers != null)
+		if (updateUsers != null)
 			map['UpdateUsers'] = updateUsers;
 		return map;
 	}
@@ -317,7 +317,7 @@ class CreatePatientsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(patients != null)
+		if (patients != null)
 			map['Patients'] = patients;
 		return map;
 	}
@@ -372,18 +372,18 @@ class FindPatientsPageRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(keyWord != null)
+		if (keyWord != null)
 			map['KeyWord'] = keyWord;
-		if(startTime != null)
+		if (startTime != null)
 			map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
-		if(endTime != null)
+		if (endTime != null)
 			map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
 		map['IsValid'] = isValid.index;
-		if(organizationCodes != null)
+		if (organizationCodes != null)
 			map['OrganizationCodes'] = organizationCodes;
-		if(deviceCodes != null)
+		if (deviceCodes != null)
 			map['DeviceCodes'] = deviceCodes;
-		if(patientCode != null)
+		if (patientCode != null)
 			map['PatientCode'] = patientCode;
 		return map;
 	}
@@ -519,51 +519,51 @@ class GetRecordsPageDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(createTime != null) {
+		if (createTime != null) {
 			map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
 		}
-		if(deptName != null) {
+		if (deptName != null) {
 			map['DeptName'] = deptName;
 		}
-		if(creatorName != null) {
+		if (creatorName != null) {
 			map['CreatorName'] = creatorName;
 		}
-		if(deviceName != null) {
+		if (deviceName != null) {
 			map['DeviceName'] = deviceName;
 		}
-		if(displayName != null) {
+		if (displayName != null) {
 			map['DisplayName'] = displayName;
 		}
-		if(reportNum != null) {
+		if (reportNum != null) {
 			map['ReportNum'] = reportNum;
 		}
-		if(recordCode != null) {
+		if (recordCode != null) {
 			map['RecordCode'] = recordCode;
 		}
 		map['RecordStatus'] = recordStatus.index;
 		map['IsRead'] = isRead;
-		if(remedicalList != null) {
+		if (remedicalList != null) {
 			map['RemedicalList'] = remedicalList;
 		}
 		map['DiagnosisStatus'] = diagnosisStatus.index;
-		if(diagnosisInfos != null) {
+		if (diagnosisInfos != null) {
 			map['DiagnosisInfos'] = diagnosisInfos;
 		}
 		map['IsReferral'] = isReferral;
 		map['ReferralStatus'] = referralStatus.index;
 		map['CanCreateReport'] = canCreateReport;
-		if(deviceCode != null) {
+		if (deviceCode != null) {
 			map['DeviceCode'] = deviceCode;
 		}
 		map['IsCollecting'] = isCollecting;
 		map['CanCollcetImg'] = canCollcetImg;
-		if(customDoctor != null) {
+		if (customDoctor != null) {
 			map['CustomDoctor'] = customDoctor;
 		}
-		if(customOrganzation != null) {
+		if (customOrganzation != null) {
 			map['CustomOrganzation'] = customOrganzation;
 		}
-		if(equipmentSN != null) {
+		if (equipmentSN != null) {
 			map['EquipmentSN'] = equipmentSN;
 		}
 		return map;
@@ -631,17 +631,17 @@ class ClientPatientInfoDTO extends ClientPatientInfoBaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(creatorCode != null)
+		if (creatorCode != null)
 			map['CreatorCode'] = creatorCode;
-		if(creatorName != null)
+		if (creatorName != null)
 			map['CreatorName'] = creatorName;
-		if(deviceCode != null)
+		if (deviceCode != null)
 			map['DeviceCode'] = deviceCode;
-		if(assignmentUserList != null)
+		if (assignmentUserList != null)
 			map['AssignmentUserList'] = assignmentUserList;
-		if(lastRecord != null)
+		if (lastRecord != null)
 			map['LastRecord'] = lastRecord;
-		if(encryptFullName != null)
+		if (encryptFullName != null)
 			map['EncryptFullName'] = encryptFullName;
 		return map;
 	}
@@ -666,7 +666,7 @@ class FindPatientByCodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(code != null)
+		if (code != null)
 			map['Code'] = code;
 		return map;
 	}
@@ -691,7 +691,7 @@ class FindValidPatientsByNameRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(name != null)
+		if (name != null)
 			map['Name'] = name;
 		return map;
 	}
@@ -722,9 +722,9 @@ class SetValidPatientRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(newPatientCode != null)
+		if (newPatientCode != null)
 			map['NewPatientCode'] = newPatientCode;
-		if(oldPatientCode != null)
+		if (oldPatientCode != null)
 			map['OldPatientCode'] = oldPatientCode;
 		map['IsFinishExam'] = isFinishExam;
 		return map;
@@ -750,7 +750,7 @@ class RemovePatientsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(patientCodes != null)
+		if (patientCodes != null)
 			map['PatientCodes'] = patientCodes;
 		return map;
 	}

+ 18 - 18
lib/services/payment.m.dart

@@ -19,7 +19,7 @@ class CreateOrderResultDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(orderCode != null) {
+		if (orderCode != null) {
 			map['OrderCode'] = orderCode;
 		}
 		return map;
@@ -70,17 +70,17 @@ class CreateOrderRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(orderUserCode != null)
+		if (orderUserCode != null)
 			map['OrderUserCode'] = orderUserCode;
-		if(productCode != null)
+		if (productCode != null)
 			map['ProductCode'] = productCode;
-		if(tPORderCode != null)
+		if (tPORderCode != null)
 			map['TPORderCode'] = tPORderCode;
-		if(orderTitle != null)
+		if (orderTitle != null)
 			map['OrderTitle'] = orderTitle;
 		map['OrderType'] = orderType.index;
 		map['OrderAmount'] = orderAmount;
-		if(payTime != null)
+		if (payTime != null)
 			map['PayTime'] = JsonRpcUtils.dateFormat(payTime!);
 		map['PayStatus'] = payStatus.index;
 		return map;
@@ -136,21 +136,21 @@ class OrderDetailDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(code != null)
+		if (code != null)
 			map['Code'] = code;
-		if(orderUserName != null)
+		if (orderUserName != null)
 			map['OrderUserName'] = orderUserName;
-		if(orderUserCode != null)
+		if (orderUserCode != null)
 			map['OrderUserCode'] = orderUserCode;
-		if(productCode != null)
+		if (productCode != null)
 			map['ProductCode'] = productCode;
-		if(tPORderCode != null)
+		if (tPORderCode != null)
 			map['TPORderCode'] = tPORderCode;
-		if(orderTitle != null)
+		if (orderTitle != null)
 			map['OrderTitle'] = orderTitle;
 		map['OrderType'] = orderType.index;
 		map['OrderAmount'] = orderAmount;
-		if(payTime != null)
+		if (payTime != null)
 			map['PayTime'] = JsonRpcUtils.dateFormat(payTime!);
 		map['PayStatus'] = payStatus.index;
 		return map;
@@ -176,7 +176,7 @@ class GetOrderDetailRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(orderCode != null)
+		if (orderCode != null)
 			map['OrderCode'] = orderCode;
 		return map;
 	}
@@ -207,7 +207,7 @@ class GetOrderPagesRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(keyWord != null)
+		if (keyWord != null)
 			map['KeyWord'] = keyWord;
 		return map;
 	}
@@ -232,7 +232,7 @@ class PayInfoDTO {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['IsSuccess'] = isSuccess;
-		if(payUrl != null) {
+		if (payUrl != null) {
 			map['PayUrl'] = payUrl;
 		}
 		return map;
@@ -262,7 +262,7 @@ class GoToPayRequest extends TokenRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['PayType'] = payType.index;
-		if(orderCode != null)
+		if (orderCode != null)
 			map['OrderCode'] = orderCode;
 		return map;
 	}
@@ -310,7 +310,7 @@ class PayableTypeDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(payTypes != null) {
+		if (payTypes != null) {
 			map['PayTypes'] = payTypes;
 		}
 		return map;

+ 19 - 19
lib/services/position.m.dart

@@ -35,15 +35,15 @@ class PositionDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(positionCode != null)
+		if (positionCode != null)
 			map['PositionCode'] = positionCode;
-		if(positionName != null)
+		if (positionName != null)
 			map['PositionName'] = positionName;
-		if(organizationCode != null)
+		if (organizationCode != null)
 			map['OrganizationCode'] = organizationCode;
-		if(underUserCodes != null)
+		if (underUserCodes != null)
 			map['UnderUserCodes'] = underUserCodes;
-		if(fitDepartmentCode != null)
+		if (fitDepartmentCode != null)
 			map['FitDepartmentCode'] = fitDepartmentCode;
 		return map;
 	}
@@ -74,11 +74,11 @@ class GetPositionsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(positionCodes != null)
+		if (positionCodes != null)
 			map['PositionCodes'] = positionCodes;
-		if(organizationCodes != null)
+		if (organizationCodes != null)
 			map['OrganizationCodes'] = organizationCodes;
-		if(fitDepartmentCode != null)
+		if (fitDepartmentCode != null)
 			map['FitDepartmentCode'] = fitDepartmentCode;
 		return map;
 	}
@@ -111,19 +111,19 @@ class PositionItemDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(positionName != null) {
+		if (positionName != null) {
 			map['PositionName'] = positionName;
 		}
-		if(organizationCode != null) {
+		if (organizationCode != null) {
 			map['OrganizationCode'] = organizationCode;
 		}
-		if(underUserCodes != null) {
+		if (underUserCodes != null) {
 			map['UnderUserCodes'] = underUserCodes;
 		}
-		if(fitDepartmentCode != null) {
+		if (fitDepartmentCode != null) {
 			map['FitDepartmentCode'] = fitDepartmentCode;
 		}
-		if(extendsData != null) {
+		if (extendsData != null) {
 			map['ExtendsData'] = extendsData;
 		}
 		return map;
@@ -148,10 +148,10 @@ class AddPositionsRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(token != null) {
+		if (token != null) {
 			map['Token'] = token;
 		}
-		if(positions != null) {
+		if (positions != null) {
 			map['Positions'] = positions;
 		}
 		return map;
@@ -177,7 +177,7 @@ class RemovePositionRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(positionCodes != null)
+		if (positionCodes != null)
 			map['PositionCodes'] = positionCodes;
 		return map;
 	}
@@ -208,11 +208,11 @@ class UpdatePositionNameRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(positionCode != null)
+		if (positionCode != null)
 			map['PositionCode'] = positionCode;
-		if(positionName != null)
+		if (positionName != null)
 			map['PositionName'] = positionName;
-		if(fitDepartmentCode != null)
+		if (fitDepartmentCode != null)
 			map['FitDepartmentCode'] = fitDepartmentCode;
 		return map;
 	}

+ 13 - 13
lib/services/rank.m.dart

@@ -29,11 +29,11 @@ class RankDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(rankCode != null)
+		if (rankCode != null)
 			map['RankCode'] = rankCode;
-		if(rankName != null)
+		if (rankName != null)
 			map['RankName'] = rankName;
-		if(organizationCode != null)
+		if (organizationCode != null)
 			map['OrganizationCode'] = organizationCode;
 		return map;
 	}
@@ -58,7 +58,7 @@ class GetRankByCodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(rankCode != null)
+		if (rankCode != null)
 			map['RankCode'] = rankCode;
 		return map;
 	}
@@ -86,9 +86,9 @@ class GetRanksRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(rankCodes != null)
+		if (rankCodes != null)
 			map['RankCodes'] = rankCodes;
-		if(organizationCodes != null)
+		if (organizationCodes != null)
 			map['OrganizationCodes'] = organizationCodes;
 		return map;
 	}
@@ -115,13 +115,13 @@ class RankItemDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(rankName != null) {
+		if (rankName != null) {
 			map['RankName'] = rankName;
 		}
-		if(organizationCode != null) {
+		if (organizationCode != null) {
 			map['OrganizationCode'] = organizationCode;
 		}
-		if(extendsData != null) {
+		if (extendsData != null) {
 			map['ExtendsData'] = extendsData;
 		}
 		return map;
@@ -147,7 +147,7 @@ class AddRanksRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(rankInfos != null)
+		if (rankInfos != null)
 			map['RankInfos'] = rankInfos;
 		return map;
 	}
@@ -172,7 +172,7 @@ class RemoveRanksRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(rankCodes != null)
+		if (rankCodes != null)
 			map['RankCodes'] = rankCodes;
 		return map;
 	}
@@ -200,9 +200,9 @@ class UpdateRankNameRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(rankCode != null)
+		if (rankCode != null)
 			map['RankCode'] = rankCode;
-		if(rankName != null)
+		if (rankName != null)
 			map['RankName'] = rankName;
 		return map;
 	}

+ 84 - 84
lib/services/recordInfo.m.dart

@@ -22,10 +22,10 @@ class PatientInfoExt {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(patientScanType != null) {
+		if (patientScanType != null) {
 			map['PatientScanType'] = patientScanType;
 		}
-		if(content != null) {
+		if (content != null) {
 			map['Content'] = content;
 		}
 		return map;
@@ -60,13 +60,13 @@ class CreateRecordRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(patientCode != null)
+		if (patientCode != null)
 			map['PatientCode'] = patientCode;
-		if(deviceCode != null)
+		if (deviceCode != null)
 			map['DeviceCode'] = deviceCode;
-		if(patientDatas != null)
+		if (patientDatas != null)
 			map['PatientDatas'] = patientDatas;
-		if(patientInfoExtList != null)
+		if (patientInfoExtList != null)
 			map['PatientInfoExtList'] = patientInfoExtList;
 		return map;
 	}
@@ -118,7 +118,7 @@ class GetRecordsPageRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(patientCode != null)
+		if (patientCode != null)
 			map['PatientCode'] = patientCode;
 		map['QueryRecordStatus'] = queryRecordStatus.index;
 		map['QueryRecordCreateType'] = queryRecordCreateType.index;
@@ -195,53 +195,53 @@ class QueryRecordResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(createTime != null) {
+		if (createTime != null) {
 			map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
 		}
-		if(deptName != null) {
+		if (deptName != null) {
 			map['DeptName'] = deptName;
 		}
-		if(patientName != null) {
+		if (patientName != null) {
 			map['PatientName'] = patientName;
 		}
-		if(patientAge != null) {
+		if (patientAge != null) {
 			map['PatientAge'] = patientAge;
 		}
-		if(patientAgeInfo != null) {
+		if (patientAgeInfo != null) {
 			map['PatientAgeInfo'] = patientAgeInfo;
 		}
 		map['PatientSex'] = patientSex;
-		if(creatorName != null) {
+		if (creatorName != null) {
 			map['CreatorName'] = creatorName;
 		}
-		if(deviceName != null) {
+		if (deviceName != null) {
 			map['DeviceName'] = deviceName;
 		}
-		if(displayName != null) {
+		if (displayName != null) {
 			map['DisplayName'] = displayName;
 		}
 		map['RecordStatus'] = recordStatus.index;
-		if(patientInfoExtList != null) {
+		if (patientInfoExtList != null) {
 			map['PatientInfoExtList'] = patientInfoExtList;
 		}
 		map['DiagnosisStatus'] = diagnosisStatus.index;
-		if(diagnosisInfos != null) {
+		if (diagnosisInfos != null) {
 			map['DiagnosisInfos'] = diagnosisInfos;
 		}
 		map['IsCollecting'] = isCollecting;
-		if(startCollectingTime != null) {
+		if (startCollectingTime != null) {
 			map['StartCollectingTime'] = JsonRpcUtils.dateFormat(startCollectingTime!);
 		}
-		if(customDoctor != null) {
+		if (customDoctor != null) {
 			map['CustomDoctor'] = customDoctor;
 		}
-		if(customOrganzation != null) {
+		if (customOrganzation != null) {
 			map['CustomOrganzation'] = customOrganzation;
 		}
-		if(equipmentSN != null) {
+		if (equipmentSN != null) {
 			map['EquipmentSN'] = equipmentSN;
 		}
-		if(deviceOrganzationName != null) {
+		if (deviceOrganzationName != null) {
 			map['DeviceOrganzationName'] = deviceOrganzationName;
 		}
 		return map;
@@ -267,7 +267,7 @@ class QueryRecordRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
 		return map;
 	}
@@ -288,7 +288,7 @@ class ProcessRecordDataResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(content != null) {
+		if (content != null) {
 			map['Content'] = content;
 		}
 		return map;
@@ -332,9 +332,9 @@ class ProcessRecordDataRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(methodName != null)
+		if (methodName != null)
 			map['MethodName'] = methodName;
-		if(content != null)
+		if (content != null)
 			map['Content'] = content;
 		map['PatientType'] = patientType.index;
 		map['SpeciesEnum'] = speciesEnum.index;
@@ -364,9 +364,9 @@ class RelevanceRecordRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(examCode != null)
+		if (examCode != null)
 			map['ExamCode'] = examCode;
-		if(rservationCode != null)
+		if (rservationCode != null)
 			map['RservationCode'] = rservationCode;
 		return map;
 	}
@@ -391,7 +391,7 @@ class FinishRecordRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
 		return map;
 	}
@@ -424,17 +424,17 @@ class AddRemedicalMeasuredInfoDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(remedicalCode != null) {
+		if (remedicalCode != null) {
 			map['RemedicalCode'] = remedicalCode;
 		}
 		map['FrameIndex'] = frameIndex;
-		if(measuredFileToken != null) {
+		if (measuredFileToken != null) {
 			map['MeasuredFileToken'] = measuredFileToken;
 		}
-		if(previewFileToken != null) {
+		if (previewFileToken != null) {
 			map['PreviewFileToken'] = previewFileToken;
 		}
-		if(measuredData != null) {
+		if (measuredData != null) {
 			map['MeasuredData'] = measuredData;
 		}
 		return map;
@@ -467,9 +467,9 @@ class AddRemedicalMeasuredInfoRequest extends TokenRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['BusinessType'] = businessType.index;
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
-		if(remedicalMeasuredInfos != null)
+		if (remedicalMeasuredInfos != null)
 			map['RemedicalMeasuredInfos'] = remedicalMeasuredInfos;
 		return map;
 	}
@@ -498,7 +498,7 @@ class FindRemedicalMeasuredInfoRequest extends TokenRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['BusinessType'] = businessType.index;
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
 		return map;
 	}
@@ -523,7 +523,7 @@ class CheckCollectingImgRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(deviceCode != null)
+		if (deviceCode != null)
 			map['DeviceCode'] = deviceCode;
 		return map;
 	}
@@ -548,7 +548,7 @@ class StartCollectingImgRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
 		return map;
 	}
@@ -639,40 +639,40 @@ class SimpleRecordInfoDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
 		map['RecordStatus'] = recordStatus.index;
 		map['ReferralType'] = referralType.index;
-		if(patientCode != null)
+		if (patientCode != null)
 			map['PatientCode'] = patientCode;
-		if(patientName != null)
+		if (patientName != null)
 			map['PatientName'] = patientName;
-		if(age != null)
+		if (age != null)
 			map['Age'] = age;
-		if(sex != null)
+		if (sex != null)
 			map['Sex'] = sex;
-		if(devicePatientID != null)
+		if (devicePatientID != null)
 			map['DevicePatientID'] = devicePatientID;
-		if(deviceCode != null)
+		if (deviceCode != null)
 			map['DeviceCode'] = deviceCode;
-		if(deviceName != null)
+		if (deviceName != null)
 			map['DeviceName'] = deviceName;
-		if(rootOrganizationCode != null)
+		if (rootOrganizationCode != null)
 			map['RootOrganizationCode'] = rootOrganizationCode;
-		if(rootOrganizationName != null)
+		if (rootOrganizationName != null)
 			map['RootOrganizationName'] = rootOrganizationName;
-		if(languge != null)
+		if (languge != null)
 			map['Languge'] = languge;
 		map['CanCreateReport'] = canCreateReport;
 		map['IsCollecting'] = isCollecting;
 		map['CanCollcetImg'] = canCollcetImg;
-		if(customDoctor != null)
+		if (customDoctor != null)
 			map['CustomDoctor'] = customDoctor;
-		if(customOrganzation != null)
+		if (customOrganzation != null)
 			map['CustomOrganzation'] = customOrganzation;
-		if(equipmentSN != null)
+		if (equipmentSN != null)
 			map['EquipmentSN'] = equipmentSN;
-		if(diagnosisInfos != null)
+		if (diagnosisInfos != null)
 			map['DiagnosisInfos'] = diagnosisInfos;
 		return map;
 	}
@@ -742,21 +742,21 @@ class FindRecordPagesRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(organizationCodes != null)
+		if (organizationCodes != null)
 			map['OrganizationCodes'] = organizationCodes;
-		if(deviceCodes != null)
+		if (deviceCodes != null)
 			map['DeviceCodes'] = deviceCodes;
 		map['RecordQueryState'] = recordQueryState.index;
 		map['RecordProcessState'] = recordProcessState.index;
-		if(language != null)
+		if (language != null)
 			map['Language'] = language;
-		if(keyWord != null)
+		if (keyWord != null)
 			map['KeyWord'] = keyWord;
-		if(startTime != null)
+		if (startTime != null)
 			map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
-		if(endTime != null)
+		if (endTime != null)
 			map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
-		if(patientCode != null)
+		if (patientCode != null)
 			map['PatientCode'] = patientCode;
 		return map;
 	}
@@ -790,13 +790,13 @@ class CreateRecordNewRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(patientCode != null)
+		if (patientCode != null)
 			map['PatientCode'] = patientCode;
-		if(patientDatas != null)
+		if (patientDatas != null)
 			map['PatientDatas'] = patientDatas;
-		if(deviceCode != null)
+		if (deviceCode != null)
 			map['DeviceCode'] = deviceCode;
-		if(patientInfoExtList != null)
+		if (patientInfoExtList != null)
 			map['PatientInfoExtList'] = patientInfoExtList;
 		return map;
 	}
@@ -830,13 +830,13 @@ class CreateReferralRecordNewRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
-		if(referralOrganizationCode != null)
+		if (referralOrganizationCode != null)
 			map['ReferralOrganizationCode'] = referralOrganizationCode;
-		if(referralUserCode != null)
+		if (referralUserCode != null)
 			map['ReferralUserCode'] = referralUserCode;
-		if(subjectMatter != null)
+		if (subjectMatter != null)
 			map['SubjectMatter'] = subjectMatter;
 		return map;
 	}
@@ -861,7 +861,7 @@ class WithdrawReferralForRecordListRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
 		return map;
 	}
@@ -922,24 +922,24 @@ class ReferralData extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(patientName != null)
+		if (patientName != null)
 			map['PatientName'] = patientName;
-		if(code != null)
+		if (code != null)
 			map['Code'] = code;
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
-		if(referralOutUserCode != null)
+		if (referralOutUserCode != null)
 			map['ReferralOutUserCode'] = referralOutUserCode;
-		if(referralOutOrganizationCode != null)
+		if (referralOutOrganizationCode != null)
 			map['ReferralOutOrganizationCode'] = referralOutOrganizationCode;
-		if(referralInUserCode != null)
+		if (referralInUserCode != null)
 			map['ReferralInUserCode'] = referralInUserCode;
-		if(referralInOrganizationCode != null)
+		if (referralInOrganizationCode != null)
 			map['ReferralInOrganizationCode'] = referralInOrganizationCode;
 		map['ReferralStatus'] = referralStatus.index;
-		if(referralTime != null)
+		if (referralTime != null)
 			map['ReferralTime'] = JsonRpcUtils.dateFormat(referralTime!);
-		if(subjectMatter != null)
+		if (subjectMatter != null)
 			map['SubjectMatter'] = subjectMatter;
 		return map;
 	}
@@ -1006,13 +1006,13 @@ class ReferralHistoryDetail extends ReferralData{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(referralOutOrganizationName != null)
+		if (referralOutOrganizationName != null)
 			map['ReferralOutOrganizationName'] = referralOutOrganizationName;
-		if(referralOutUserName != null)
+		if (referralOutUserName != null)
 			map['ReferralOutUserName'] = referralOutUserName;
-		if(referralInOrganizationName != null)
+		if (referralInOrganizationName != null)
 			map['ReferralInOrganizationName'] = referralInOrganizationName;
-		if(referralInUserName != null)
+		if (referralInUserName != null)
 			map['ReferralInUserName'] = referralInUserName;
 		return map;
 	}
@@ -1040,9 +1040,9 @@ class FindReferralHistoryRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}

+ 5 - 5
lib/services/region.m.dart

@@ -28,11 +28,11 @@ class RegionDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(regionVersion != null)
+		if (regionVersion != null)
 			map['RegionVersion'] = regionVersion;
-		if(languageType != null)
+		if (languageType != null)
 			map['LanguageType'] = languageType;
-		if(reginData != null)
+		if (reginData != null)
 			map['ReginData'] = reginData;
 		return map;
 	}
@@ -56,10 +56,10 @@ class GetRegionsRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(version != null) {
+		if (version != null) {
 			map['Version'] = version;
 		}
-		if(languageType != null) {
+		if (languageType != null) {
 			map['LanguageType'] = languageType;
 		}
 		return map;

+ 6 - 0
lib/services/remedical.dart

@@ -350,5 +350,11 @@ class RemedicalService extends JsonRpcClientBase {
 		return rpcRst;
 	}
 
+	Future<QueryShareExamPageResult> queryShareImagesPlayUrlAsync(QueryShareImagesPlayUrlRequest request) async {
+		var rpcRst = await call("QueryShareImagesPlayUrlAsync", request);
+		var result = QueryShareExamPageResult.fromJson(rpcRst as Map<String, dynamic>);
+		return result;
+	}
+
 }
 

File diff suppressed because it is too large
+ 411 - 133
lib/services/remedical.m.dart


+ 172 - 172
lib/services/report.m.dart

@@ -84,45 +84,45 @@ class ReportTemplateDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(reportTemplateCode != null) {
+		if (reportTemplateCode != null) {
 			map['ReportTemplateCode'] = reportTemplateCode;
 		}
-		if(reportTemplateName != null) {
+		if (reportTemplateName != null) {
 			map['ReportTemplateName'] = reportTemplateName;
 		}
 		map['ReportTemplateStateType'] = reportTemplateStateType.index;
 		map['ReportTemplateType'] = reportTemplateType.index;
 		map['ReportTemplateUsageType'] = reportTemplateUsageType.index;
-		if(organizationCode != null) {
+		if (organizationCode != null) {
 			map['OrganizationCode'] = organizationCode;
 		}
-		if(personalCode != null) {
+		if (personalCode != null) {
 			map['PersonalCode'] = personalCode;
 		}
-		if(organizationName != null) {
+		if (organizationName != null) {
 			map['OrganizationName'] = organizationName;
 		}
-		if(personalName != null) {
+		if (personalName != null) {
 			map['PersonalName'] = personalName;
 		}
-		if(reportTemplateJson != null) {
+		if (reportTemplateJson != null) {
 			map['ReportTemplateJson'] = reportTemplateJson;
 		}
-		if(referenceReportTemplateCode != null) {
+		if (referenceReportTemplateCode != null) {
 			map['ReferenceReportTemplateCode'] = referenceReportTemplateCode;
 		}
 		map['IsDefault'] = isDefault;
 		map['IsUserDefault'] = isUserDefault;
-		if(reportDatasJson != null) {
+		if (reportDatasJson != null) {
 			map['ReportDatasJson'] = reportDatasJson;
 		}
-		if(templatePreviewList != null) {
+		if (templatePreviewList != null) {
 			map['TemplatePreviewList'] = templatePreviewList;
 		}
-		if(templatePreviewUrlList != null) {
+		if (templatePreviewUrlList != null) {
 			map['TemplatePreviewUrlList'] = templatePreviewUrlList;
 		}
-		if(languageCode != null) {
+		if (languageCode != null) {
 			map['LanguageCode'] = languageCode;
 		}
 		return map;
@@ -151,9 +151,9 @@ class FindReportTemplateByCodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportTemplateCode != null)
+		if (reportTemplateCode != null)
 			map['ReportTemplateCode'] = reportTemplateCode;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -181,9 +181,9 @@ class FindReportByCodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportCode != null)
+		if (reportCode != null)
 			map['ReportCode'] = reportCode;
-		if(language != null)
+		if (language != null)
 			map['Language'] = language;
 		return map;
 	}
@@ -211,9 +211,9 @@ class FindPatientReportsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(patientCode != null)
+		if (patientCode != null)
 			map['PatientCode'] = patientCode;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -258,14 +258,14 @@ class ReportLabelDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportLabelCode != null)
+		if (reportLabelCode != null)
 			map['ReportLabelCode'] = reportLabelCode;
-		if(labelName != null)
+		if (labelName != null)
 			map['LabelName'] = labelName;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		map['UsageType'] = usageType.index;
-		if(labelItems != null)
+		if (labelItems != null)
 			map['LabelItems'] = labelItems;
 		return map;
 	}
@@ -297,9 +297,9 @@ class FindReportLabelsRequest extends TokenRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['ReportType'] = reportType.index;
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -333,11 +333,11 @@ class ShareDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(shareCode != null)
+		if (shareCode != null)
 			map['ShareCode'] = shareCode;
-		if(shortCode != null)
+		if (shortCode != null)
 			map['ShortCode'] = shortCode;
-		if(shareContent != null)
+		if (shareContent != null)
 			map['ShareContent'] = shareContent;
 		return map;
 	}
@@ -358,7 +358,7 @@ class FindShareContentRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(shortCode != null) {
+		if (shortCode != null) {
 			map['ShortCode'] = shortCode;
 		}
 		return map;
@@ -421,27 +421,27 @@ class AddReportRequest extends TokenRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['ReportType'] = reportType.index;
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
-		if(reportTemplateJson != null)
+		if (reportTemplateJson != null)
 			map['ReportTemplateJson'] = reportTemplateJson;
-		if(reportDatasJson != null)
+		if (reportDatasJson != null)
 			map['ReportDatasJson'] = reportDatasJson;
-		if(reportMeasureDatasJson != null)
+		if (reportMeasureDatasJson != null)
 			map['ReportMeasureDatasJson'] = reportMeasureDatasJson;
-		if(patientName != null)
+		if (patientName != null)
 			map['PatientName'] = patientName;
-		if(reportLabels != null)
+		if (reportLabels != null)
 			map['ReportLabels'] = reportLabels;
-		if(platformLabels != null)
+		if (platformLabels != null)
 			map['PlatformLabels'] = platformLabels;
-		if(diagnosisLabels != null)
+		if (diagnosisLabels != null)
 			map['DiagnosisLabels'] = diagnosisLabels;
 		map['ReportOrgan'] = reportOrgan.index;
-		if(referralRecordCode != null)
+		if (referralRecordCode != null)
 			map['ReferralRecordCode'] = referralRecordCode;
 		map['IsReferral'] = isReferral;
-		if(reportTemplateCode != null)
+		if (reportTemplateCode != null)
 			map['ReportTemplateCode'] = reportTemplateCode;
 		return map;
 	}
@@ -505,7 +505,7 @@ class ModifyReportRequest extends AddReportRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportCode != null)
+		if (reportCode != null)
 			map['ReportCode'] = reportCode;
 		return map;
 	}
@@ -533,9 +533,9 @@ class ModifyReportLabelsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportCode != null)
+		if (reportCode != null)
 			map['ReportCode'] = reportCode;
-		if(reportLabels != null)
+		if (reportLabels != null)
 			map['ReportLabels'] = reportLabels;
 		return map;
 	}
@@ -566,11 +566,11 @@ class ShareReportBySmsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportCode != null)
+		if (reportCode != null)
 			map['ReportCode'] = reportCode;
-		if(mobileList != null)
+		if (mobileList != null)
 			map['MobileList'] = mobileList;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -601,11 +601,11 @@ class ShareReportByEmailRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportCode != null)
+		if (reportCode != null)
 			map['ReportCode'] = reportCode;
-		if(emailList != null)
+		if (emailList != null)
 			map['EmailList'] = emailList;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -630,7 +630,7 @@ class CopyReportTemplateRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportTemplateCode != null)
+		if (reportTemplateCode != null)
 			map['ReportTemplateCode'] = reportTemplateCode;
 		return map;
 	}
@@ -655,7 +655,7 @@ class CopyOrgReportTemplateRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportTemplateCode != null)
+		if (reportTemplateCode != null)
 			map['ReportTemplateCode'] = reportTemplateCode;
 		return map;
 	}
@@ -698,15 +698,15 @@ class FindReportTemplatePagesRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(isDefault != null)
+		if (isDefault != null)
 			map['IsDefault'] = isDefault;
-		if(reportTemplateName != null)
+		if (reportTemplateName != null)
 			map['ReportTemplateName'] = reportTemplateName;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
-		if(reportTemplateType != null)
+		if (reportTemplateType != null)
 			map['ReportTemplateType'] = reportTemplateType;
-		if(reportTemplateStateType != null)
+		if (reportTemplateStateType != null)
 			map['ReportTemplateStateType'] = reportTemplateStateType;
 		return map;
 	}
@@ -743,14 +743,14 @@ class AddReportTemplateRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportTemplateName != null)
+		if (reportTemplateName != null)
 			map['ReportTemplateName'] = reportTemplateName;
-		if(reportTemplateJson != null)
+		if (reportTemplateJson != null)
 			map['ReportTemplateJson'] = reportTemplateJson;
-		if(reportDatasJson != null)
+		if (reportDatasJson != null)
 			map['ReportDatasJson'] = reportDatasJson;
 		map['ReportTemplateType'] = reportTemplateType.index;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -784,13 +784,13 @@ class UpdateReportTemplateRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportTemplateCode != null)
+		if (reportTemplateCode != null)
 			map['ReportTemplateCode'] = reportTemplateCode;
-		if(reportTemplateName != null)
+		if (reportTemplateName != null)
 			map['ReportTemplateName'] = reportTemplateName;
-		if(reportTemplateJson != null)
+		if (reportTemplateJson != null)
 			map['ReportTemplateJson'] = reportTemplateJson;
-		if(reportDatasJson != null)
+		if (reportDatasJson != null)
 			map['ReportDatasJson'] = reportDatasJson;
 		return map;
 	}
@@ -815,7 +815,7 @@ class RemoveReportTemplateRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportTemplateCode != null)
+		if (reportTemplateCode != null)
 			map['ReportTemplateCode'] = reportTemplateCode;
 		return map;
 	}
@@ -846,9 +846,9 @@ class AddThesaurusRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusName != null)
+		if (thesaurusName != null)
 			map['ThesaurusName'] = thesaurusName;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		map['PatientType'] = patientType.index;
 		return map;
@@ -877,9 +877,9 @@ class UpdateThesaurusRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
-		if(thesaurusName != null)
+		if (thesaurusName != null)
 			map['ThesaurusName'] = thesaurusName;
 		return map;
 	}
@@ -910,11 +910,11 @@ class AddThesaurusClassifyRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
-		if(thesaurusItemName != null)
+		if (thesaurusItemName != null)
 			map['ThesaurusItemName'] = thesaurusItemName;
-		if(parentItemCode != null)
+		if (parentItemCode != null)
 			map['ParentItemCode'] = parentItemCode;
 		return map;
 	}
@@ -948,13 +948,13 @@ class AddThesaurusContentRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
-		if(thesaurusItemDescription != null)
+		if (thesaurusItemDescription != null)
 			map['ThesaurusItemDescription'] = thesaurusItemDescription;
-		if(thesaurusItemConclusion != null)
+		if (thesaurusItemConclusion != null)
 			map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
-		if(parentItemCode != null)
+		if (parentItemCode != null)
 			map['ParentItemCode'] = parentItemCode;
 		return map;
 	}
@@ -988,13 +988,13 @@ class UpdateThesaurusClassifyRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
-		if(thesaurusItemCode != null)
+		if (thesaurusItemCode != null)
 			map['ThesaurusItemCode'] = thesaurusItemCode;
-		if(thesaurusItemName != null)
+		if (thesaurusItemName != null)
 			map['ThesaurusItemName'] = thesaurusItemName;
-		if(parentItemCode != null)
+		if (parentItemCode != null)
 			map['ParentItemCode'] = parentItemCode;
 		return map;
 	}
@@ -1031,15 +1031,15 @@ class UpdateThesaurusContentRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
-		if(thesaurusItemCode != null)
+		if (thesaurusItemCode != null)
 			map['ThesaurusItemCode'] = thesaurusItemCode;
-		if(thesaurusItemDescription != null)
+		if (thesaurusItemDescription != null)
 			map['ThesaurusItemDescription'] = thesaurusItemDescription;
-		if(thesaurusItemConclusion != null)
+		if (thesaurusItemConclusion != null)
 			map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
-		if(parentItemCode != null)
+		if (parentItemCode != null)
 			map['ParentItemCode'] = parentItemCode;
 		return map;
 	}
@@ -1064,7 +1064,7 @@ class RemoveThesaurusRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
 		return map;
 	}
@@ -1092,9 +1092,9 @@ class RemoveThesaurusItemRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
-		if(thesaurusItemCode != null)
+		if (thesaurusItemCode != null)
 			map['ThesaurusItemCode'] = thesaurusItemCode;
 		return map;
 	}
@@ -1167,33 +1167,33 @@ class ThesaurusDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(thesaurusCode != null) {
+		if (thesaurusCode != null) {
 			map['ThesaurusCode'] = thesaurusCode;
 		}
-		if(thesaurusName != null) {
+		if (thesaurusName != null) {
 			map['ThesaurusName'] = thesaurusName;
 		}
 		map['ThesaurusStateType'] = thesaurusStateType.index;
 		map['ThesaurusType'] = thesaurusType.index;
 		map['ThesaurusUsageType'] = thesaurusUsageType.index;
-		if(organizationCode != null) {
+		if (organizationCode != null) {
 			map['OrganizationCode'] = organizationCode;
 		}
-		if(personalCode != null) {
+		if (personalCode != null) {
 			map['PersonalCode'] = personalCode;
 		}
-		if(organizationName != null) {
+		if (organizationName != null) {
 			map['OrganizationName'] = organizationName;
 		}
-		if(personalName != null) {
+		if (personalName != null) {
 			map['PersonalName'] = personalName;
 		}
-		if(referenceThesaurusCode != null) {
+		if (referenceThesaurusCode != null) {
 			map['ReferenceThesaurusCode'] = referenceThesaurusCode;
 		}
 		map['IsDefault'] = isDefault;
 		map['IsUserDefault'] = isUserDefault;
-		if(languageCode != null) {
+		if (languageCode != null) {
 			map['LanguageCode'] = languageCode;
 		}
 		return map;
@@ -1249,23 +1249,23 @@ class GetThesaurusPageRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(isDefault != null)
+		if (isDefault != null)
 			map['IsDefault'] = isDefault;
-		if(userCode != null)
+		if (userCode != null)
 			map['UserCode'] = userCode;
-		if(thesaurusStateType != null)
+		if (thesaurusStateType != null)
 			map['ThesaurusStateType'] = thesaurusStateType;
-		if(thesaurusType != null)
+		if (thesaurusType != null)
 			map['ThesaurusType'] = thesaurusType;
-		if(thesaurusUsageType != null)
+		if (thesaurusUsageType != null)
 			map['ThesaurusUsageType'] = thesaurusUsageType;
-		if(organizationCode != null)
+		if (organizationCode != null)
 			map['OrganizationCode'] = organizationCode;
-		if(personalCode != null)
+		if (personalCode != null)
 			map['PersonalCode'] = personalCode;
-		if(thesaurusName != null)
+		if (thesaurusName != null)
 			map['ThesaurusName'] = thesaurusName;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -1312,20 +1312,20 @@ class ThesaurusItemDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(thesaurusItemCode != null) {
+		if (thesaurusItemCode != null) {
 			map['ThesaurusItemCode'] = thesaurusItemCode;
 		}
 		map['ThesaurusItemType'] = thesaurusItemType.index;
-		if(thesaurusItemName != null) {
+		if (thesaurusItemName != null) {
 			map['ThesaurusItemName'] = thesaurusItemName;
 		}
-		if(thesaurusItemDescription != null) {
+		if (thesaurusItemDescription != null) {
 			map['ThesaurusItemDescription'] = thesaurusItemDescription;
 		}
-		if(thesaurusItemConclusion != null) {
+		if (thesaurusItemConclusion != null) {
 			map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
 		}
-		if(parentItemCode != null) {
+		if (parentItemCode != null) {
 			map['ParentItemCode'] = parentItemCode;
 		}
 		map['HasChildren'] = hasChildren;
@@ -1356,9 +1356,9 @@ class GetThesaurusItemsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
-		if(keyword != null)
+		if (keyword != null)
 			map['Keyword'] = keyword;
 		return map;
 	}
@@ -1386,9 +1386,9 @@ class GetThesaurusItemByCodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
-		if(thesaurusItemCode != null)
+		if (thesaurusItemCode != null)
 			map['ThesaurusItemCode'] = thesaurusItemCode;
 		return map;
 	}
@@ -1419,11 +1419,11 @@ class GetThesaurusClassifyByParentCodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
-		if(parentItemCode != null)
+		if (parentItemCode != null)
 			map['ParentItemCode'] = parentItemCode;
-		if(keyword != null)
+		if (keyword != null)
 			map['Keyword'] = keyword;
 		return map;
 	}
@@ -1454,11 +1454,11 @@ class GetThesaurusContentByParentCodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
-		if(parentItemCode != null)
+		if (parentItemCode != null)
 			map['ParentItemCode'] = parentItemCode;
-		if(keyword != null)
+		if (keyword != null)
 			map['Keyword'] = keyword;
 		return map;
 	}
@@ -1483,7 +1483,7 @@ class CopyThesaurusRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
 		return map;
 	}
@@ -1508,7 +1508,7 @@ class CopyOrgThesaurusRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
 		return map;
 	}
@@ -1532,10 +1532,10 @@ class ThesaurusAllDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(baseInfo != null) {
+		if (baseInfo != null) {
 			map['BaseInfo'] = baseInfo;
 		}
-		if(items != null) {
+		if (items != null) {
 			map['Items'] = items;
 		}
 		return map;
@@ -1561,7 +1561,7 @@ class GetDefaultThesaurusContentRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -1589,9 +1589,9 @@ class SetUserDefaultThesaurusRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -1616,7 +1616,7 @@ class RetryPushReportRecordsByCodesRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(codes != null)
+		if (codes != null)
 			map['Codes'] = codes;
 		return map;
 	}
@@ -1644,9 +1644,9 @@ class FindReportPreviewImageRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -1674,9 +1674,9 @@ class FindReportShareUrlRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportCode != null)
+		if (reportCode != null)
 			map['ReportCode'] = reportCode;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -1701,7 +1701,7 @@ class GetDefaultReportTemplateContentRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -1729,9 +1729,9 @@ class SetUserDefaultReportTemplateRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportTemplateCode != null)
+		if (reportTemplateCode != null)
 			map['ReportTemplateCode'] = reportTemplateCode;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -1755,10 +1755,10 @@ class GetReportTemplateDBRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(reportTemplateCode != null) {
+		if (reportTemplateCode != null) {
 			map['ReportTemplateCode'] = reportTemplateCode;
 		}
-		if(languageCode != null) {
+		if (languageCode != null) {
 			map['LanguageCode'] = languageCode;
 		}
 		return map;
@@ -1784,7 +1784,7 @@ class RefreshReportPosterRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportPosterCode != null)
+		if (reportPosterCode != null)
 			map['ReportPosterCode'] = reportPosterCode;
 		return map;
 	}
@@ -1847,47 +1847,47 @@ class SyncReportInfoRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(reportCode != null) {
+		if (reportCode != null) {
 			map['ReportCode'] = reportCode;
 		}
-		if(createTime != null) {
+		if (createTime != null) {
 			map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
 		}
-		if(updateTime != null) {
+		if (updateTime != null) {
 			map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
 		}
-		if(recordCode != null) {
+		if (recordCode != null) {
 			map['RecordCode'] = recordCode;
 		}
-		if(reportUserCode != null) {
+		if (reportUserCode != null) {
 			map['ReportUserCode'] = reportUserCode;
 		}
-		if(patientCode != null) {
+		if (patientCode != null) {
 			map['PatientCode'] = patientCode;
 		}
-		if(patientName != null) {
+		if (patientName != null) {
 			map['PatientName'] = patientName;
 		}
-		if(deviceCode != null) {
+		if (deviceCode != null) {
 			map['DeviceCode'] = deviceCode;
 		}
-		if(reportTemplateJson != null) {
+		if (reportTemplateJson != null) {
 			map['ReportTemplateJson'] = reportTemplateJson;
 		}
-		if(reportDatasJson != null) {
+		if (reportDatasJson != null) {
 			map['ReportDatasJson'] = reportDatasJson;
 		}
-		if(reportLabels != null) {
+		if (reportLabels != null) {
 			map['ReportLabels'] = reportLabels;
 		}
-		if(platformLabels != null) {
+		if (platformLabels != null) {
 			map['PlatformLabels'] = platformLabels;
 		}
-		if(diagnosisLabels != null) {
+		if (diagnosisLabels != null) {
 			map['DiagnosisLabels'] = diagnosisLabels;
 		}
 		map['ReportOrgan'] = reportOrgan.index;
-		if(reportPreviewList != null) {
+		if (reportPreviewList != null) {
 			map['ReportPreviewList'] = reportPreviewList;
 		}
 		return map;
@@ -1913,7 +1913,7 @@ class SyncBatchReportInfoRequest {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['SyncType'] = syncType.index;
-		if(syncReportInfos != null) {
+		if (syncReportInfos != null) {
 			map['SyncReportInfos'] = syncReportInfos;
 		}
 		return map;
@@ -1938,10 +1938,10 @@ class ApplicationItemDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(description != null) {
+		if (description != null) {
 			map['Description'] = description;
 		}
-		if(summary != null) {
+		if (summary != null) {
 			map['Summary'] = summary;
 		}
 		return map;
@@ -1966,10 +1966,10 @@ class ApplicationInfoDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
-		if(items != null) {
+		if (items != null) {
 			map['Items'] = items;
 		}
 		return map;
@@ -1994,10 +1994,10 @@ class ThesaurusInfoDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
-		if(applications != null) {
+		if (applications != null) {
 			map['Applications'] = applications;
 		}
 		return map;
@@ -2019,7 +2019,7 @@ class ThesaurusTemplateInfoDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(thesaurusList != null) {
+		if (thesaurusList != null) {
 			map['ThesaurusList'] = thesaurusList;
 		}
 		return map;
@@ -2066,18 +2066,18 @@ class ImportThesaurusInfoRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusName != null)
+		if (thesaurusName != null)
 			map['ThesaurusName'] = thesaurusName;
-		if(thesaurusTemplateInfo != null)
+		if (thesaurusTemplateInfo != null)
 			map['ThesaurusTemplateInfo'] = thesaurusTemplateInfo;
 		map['ThesaurusUsageType'] = thesaurusUsageType.index;
 		map['ThesaurusStateType'] = thesaurusStateType.index;
 		map['ThesaurusType'] = thesaurusType.index;
-		if(organizationCode != null)
+		if (organizationCode != null)
 			map['OrganizationCode'] = organizationCode;
-		if(personalCode != null)
+		if (personalCode != null)
 			map['PersonalCode'] = personalCode;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -2101,10 +2101,10 @@ class ExportThesaurusTemplateResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(thesaurusName != null) {
+		if (thesaurusName != null) {
 			map['ThesaurusName'] = thesaurusName;
 		}
-		if(thesaurusTemplateInfo != null) {
+		if (thesaurusTemplateInfo != null) {
 			map['ThesaurusTemplateInfo'] = thesaurusTemplateInfo;
 		}
 		return map;
@@ -2130,7 +2130,7 @@ class FindThesaurusByCodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(thesaurusCode != null)
+		if (thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
 		return map;
 	}
@@ -2240,9 +2240,9 @@ class DeviceExamReportDTO extends ReportDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(shareUrl != null)
+		if (shareUrl != null)
 			map['ShareUrl'] = shareUrl;
-		if(reportBytes != null)
+		if (reportBytes != null)
 			map['ReportBytes'] = reportBytes;
 		return map;
 	}
@@ -2270,9 +2270,9 @@ class GetDeviceExamReportsRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(recordCode != null)
+		if (recordCode != null)
 			map['RecordCode'] = recordCode;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -2303,9 +2303,9 @@ class GetDeviceExamReportByCodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(reportCode != null)
+		if (reportCode != null)
 			map['ReportCode'] = reportCode;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		map['IncludeReportBytes'] = includeReportBytes;
 		return map;

+ 18 - 18
lib/services/role.m.dart

@@ -25,16 +25,16 @@ class UserRoleLanguageConfigDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(language != null) {
+		if (language != null) {
 			map['Language'] = language;
 		}
-		if(roleName != null) {
+		if (roleName != null) {
 			map['RoleName'] = roleName;
 		}
-		if(description != null) {
+		if (description != null) {
 			map['Description'] = description;
 		}
-		if(fieldList != null) {
+		if (fieldList != null) {
 			map['FieldList'] = fieldList;
 		}
 		return map;
@@ -72,13 +72,13 @@ class BaseRoleDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(roleCode != null)
+		if (roleCode != null)
 			map['RoleCode'] = roleCode;
-		if(roleName != null)
+		if (roleName != null)
 			map['RoleName'] = roleName;
-		if(description != null)
+		if (description != null)
 			map['Description'] = description;
-		if(languageConfigs != null)
+		if (languageConfigs != null)
 			map['LanguageConfigs'] = languageConfigs;
 		return map;
 	}
@@ -152,17 +152,17 @@ class RoleDTO extends BaseRoleDTO{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['RoleShowType'] = roleShowType.index;
-		if(iConUrl != null)
+		if (iConUrl != null)
 			map['IConUrl'] = iConUrl;
-		if(colorStart != null)
+		if (colorStart != null)
 			map['ColorStart'] = colorStart;
-		if(colorEnd != null)
+		if (colorEnd != null)
 			map['ColorEnd'] = colorEnd;
 		map['RoleQualification'] = roleQualification.index;
-		if(userGroupCode != null)
+		if (userGroupCode != null)
 			map['UserGroupCode'] = userGroupCode;
 		map['FieldShowType'] = fieldShowType.index;
-		if(fieldList != null)
+		if (fieldList != null)
 			map['FieldList'] = fieldList;
 		return map;
 	}
@@ -190,9 +190,9 @@ class GetRoleByCodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(roleCode != null)
+		if (roleCode != null)
 			map['RoleCode'] = roleCode;
-		if(language != null)
+		if (language != null)
 			map['Language'] = language;
 		return map;
 	}
@@ -220,9 +220,9 @@ class FindDefaultRolesRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(organizationCode != null)
+		if (organizationCode != null)
 			map['OrganizationCode'] = organizationCode;
-		if(language != null)
+		if (language != null)
 			map['Language'] = language;
 		return map;
 	}
@@ -247,7 +247,7 @@ class FindAuthenticationRolesRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(language != null)
+		if (language != null)
 			map['Language'] = language;
 		return map;
 	}

+ 13 - 13
lib/services/storage.m.dart

@@ -19,10 +19,10 @@ class StorageRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(file != null) {
+		if (file != null) {
 			map['File'] = file;
 		}
-		if(authorization != null) {
+		if (authorization != null) {
 			map['Authorization'] = authorization;
 		}
 		return map;
@@ -50,13 +50,13 @@ class StorageServiceSettingDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(authorization != null) {
+		if (authorization != null) {
 			map['Authorization'] = authorization;
 		}
-		if(contentType != null) {
+		if (contentType != null) {
 			map['ContentType'] = contentType;
 		}
-		if(storageUrl != null) {
+		if (storageUrl != null) {
 			map['StorageUrl'] = storageUrl;
 		}
 		return map;
@@ -97,15 +97,15 @@ class FileServiceRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(fileName != null)
+		if (fileName != null)
 			map['FileName'] = fileName;
 		map['IsRechristen'] = isRechristen;
 		map['IsUpgradePackage'] = isUpgradePackage;
-		if(urlParams != null)
+		if (urlParams != null)
 			map['UrlParams'] = urlParams;
-		if(headerParams != null)
+		if (headerParams != null)
 			map['HeaderParams'] = headerParams;
-		if(requestMethod != null)
+		if (requestMethod != null)
 			map['RequestMethod'] = requestMethod;
 		return map;
 	}
@@ -126,7 +126,7 @@ class CheckStorageRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(fileName != null) {
+		if (fileName != null) {
 			map['FileName'] = fileName;
 		}
 		return map;
@@ -157,7 +157,7 @@ class CheckFileIsExistRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(oriFileName != null) {
+		if (oriFileName != null) {
 			map['OriFileName'] = oriFileName;
 		}
 		map['FileSize'] = fileSize;
@@ -189,9 +189,9 @@ class CopyToOtherNodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(fileName != null)
+		if (fileName != null)
 			map['FileName'] = fileName;
-		if(fileUrl != null)
+		if (fileUrl != null)
 			map['FileUrl'] = fileUrl;
 		return map;
 	}

+ 16 - 16
lib/services/upgrade.m.dart

@@ -39,23 +39,23 @@ class GetUpgradeInfoResult {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['UpgradeType'] = upgradeType.index;
-		if(upgradeCDNUrl != null) {
+		if (upgradeCDNUrl != null) {
 			map['UpgradeCDNUrl'] = upgradeCDNUrl;
 		}
-		if(upgradeSourceUrl != null) {
+		if (upgradeSourceUrl != null) {
 			map['UpgradeSourceUrl'] = upgradeSourceUrl;
 		}
-		if(backUpCDNUrl != null) {
+		if (backUpCDNUrl != null) {
 			map['BackUpCDNUrl'] = backUpCDNUrl;
 		}
-		if(backUpSourceUrl != null) {
+		if (backUpSourceUrl != null) {
 			map['BackUpSourceUrl'] = backUpSourceUrl;
 		}
 		map['UpgradeUpdateType'] = upgradeUpdateType.index;
-		if(newVersion != null) {
+		if (newVersion != null) {
 			map['NewVersion'] = newVersion;
 		}
-		if(description != null) {
+		if (description != null) {
 			map['Description'] = description;
 		}
 		return map;
@@ -102,10 +102,10 @@ class GetUpgradeInfoRequest {
 		final map = Map<String, dynamic>();
 		map['Platform'] = platform.index;
 		map['SourceType'] = sourceType.index;
-		if(currentVersion != null) {
+		if (currentVersion != null) {
 			map['CurrentVersion'] = currentVersion;
 		}
-		if(language != null) {
+		if (language != null) {
 			map['Language'] = language;
 		}
 		return map;
@@ -138,10 +138,10 @@ class SetUpgradeInfoRequest {
 		final map = Map<String, dynamic>();
 		map['Platform'] = platform.index;
 		map['SourceType'] = sourceType.index;
-		if(currentVersion != null) {
+		if (currentVersion != null) {
 			map['CurrentVersion'] = currentVersion;
 		}
-		if(token != null) {
+		if (token != null) {
 			map['Token'] = token;
 		}
 		return map;
@@ -195,19 +195,19 @@ class GetUserListRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(keyword != null)
+		if (keyword != null)
 			map['Keyword'] = keyword;
 		map['OrganizationQueryType'] = organizationQueryType.index;
-		if(organizationCode != null)
+		if (organizationCode != null)
 			map['OrganizationCode'] = organizationCode;
-		if(rankCode != null)
+		if (rankCode != null)
 			map['RankCode'] = rankCode;
-		if(positionCode != null)
+		if (positionCode != null)
 			map['PositionCode'] = positionCode;
 		map['ExceptSelf'] = exceptSelf;
-		if(language != null)
+		if (language != null)
 			map['Language'] = language;
-		if(roleCodes != null)
+		if (roleCodes != null)
 			map['RoleCodes'] = roleCodes;
 		return map;
 	}

+ 79 - 79
lib/services/user.m.dart

@@ -67,23 +67,23 @@ class AlterUserInfoRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(phone != null)
+		if (phone != null)
 			map['Phone'] = phone;
-		if(email != null)
+		if (email != null)
 			map['Email'] = email;
-		if(nickName != null)
+		if (nickName != null)
 			map['NickName'] = nickName;
-		if(fullName != null)
+		if (fullName != null)
 			map['FullName'] = fullName;
-		if(headImageUrl != null)
+		if (headImageUrl != null)
 			map['HeadImageUrl'] = headImageUrl;
-		if(organizationCode != null)
+		if (organizationCode != null)
 			map['OrganizationCode'] = organizationCode;
-		if(extensionData != null)
+		if (extensionData != null)
 			map['ExtensionData'] = extensionData;
-		if(shortCode != null)
+		if (shortCode != null)
 			map['ShortCode'] = shortCode;
-		if(languageCode != null)
+		if (languageCode != null)
 			map['LanguageCode'] = languageCode;
 		return map;
 	}
@@ -138,21 +138,21 @@ class GetUserPageRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(keyword != null)
+		if (keyword != null)
 			map['Keyword'] = keyword;
 		map['OrganizationQueryType'] = organizationQueryType.index;
-		if(organizationCode != null)
+		if (organizationCode != null)
 			map['OrganizationCode'] = organizationCode;
-		if(rankCode != null)
+		if (rankCode != null)
 			map['RankCode'] = rankCode;
-		if(positionCode != null)
+		if (positionCode != null)
 			map['PositionCode'] = positionCode;
 		map['ExceptSelf'] = exceptSelf;
-		if(language != null)
+		if (language != null)
 			map['Language'] = language;
-		if(roleCodes != null)
+		if (roleCodes != null)
 			map['RoleCodes'] = roleCodes;
-		if(isAgent != null)
+		if (isAgent != null)
 			map['IsAgent'] = isAgent;
 		return map;
 	}
@@ -177,7 +177,7 @@ class RemoveUsersFromOrganizationRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(userCodes != null)
+		if (userCodes != null)
 			map['UserCodes'] = userCodes;
 		return map;
 	}
@@ -214,15 +214,15 @@ class SetUserOrganizationInfoRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(userCode != null)
+		if (userCode != null)
 			map['UserCode'] = userCode;
-		if(roleCodes != null)
+		if (roleCodes != null)
 			map['RoleCodes'] = roleCodes;
-		if(rankCodes != null)
+		if (rankCodes != null)
 			map['RankCodes'] = rankCodes;
-		if(positionCodes != null)
+		if (positionCodes != null)
 			map['PositionCodes'] = positionCodes;
-		if(organizationCode != null)
+		if (organizationCode != null)
 			map['OrganizationCode'] = organizationCode;
 		return map;
 	}
@@ -249,13 +249,13 @@ class AlterPersonInfoRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(token != null) {
+		if (token != null) {
 			map['Token'] = token;
 		}
-		if(nickName != null) {
+		if (nickName != null) {
 			map['NickName'] = nickName;
 		}
-		if(headImageUrl != null) {
+		if (headImageUrl != null) {
 			map['HeadImageUrl'] = headImageUrl;
 		}
 		return map;
@@ -308,23 +308,23 @@ class ShareDeviceUserDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(userCode != null)
+		if (userCode != null)
 			map['UserCode'] = userCode;
-		if(fullName != null)
+		if (fullName != null)
 			map['FullName'] = fullName;
-		if(userName != null)
+		if (userName != null)
 			map['UserName'] = userName;
-		if(displayName != null)
+		if (displayName != null)
 			map['DisplayName'] = displayName;
-		if(phone != null)
+		if (phone != null)
 			map['Phone'] = phone;
-		if(headImageUrl != null)
+		if (headImageUrl != null)
 			map['HeadImageUrl'] = headImageUrl;
-		if(rankNames != null)
+		if (rankNames != null)
 			map['RankNames'] = rankNames;
-		if(rootOrganizationCode != null)
+		if (rootOrganizationCode != null)
 			map['RootOrganizationCode'] = rootOrganizationCode;
-		if(rootOrganizationName != null)
+		if (rootOrganizationName != null)
 			map['RootOrganizationName'] = rootOrganizationName;
 		return map;
 	}
@@ -355,7 +355,7 @@ class GetShareDeviceUsersPageRequest extends PageRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(deviceCode != null)
+		if (deviceCode != null)
 			map['DeviceCode'] = deviceCode;
 		return map;
 	}
@@ -385,16 +385,16 @@ class UserFeatureInfoResult {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(featureCode != null) {
+		if (featureCode != null) {
 			map['FeatureCode'] = featureCode;
 		}
-		if(featureName != null) {
+		if (featureName != null) {
 			map['FeatureName'] = featureName;
 		}
-		if(fatherCode != null) {
+		if (fatherCode != null) {
 			map['FatherCode'] = fatherCode;
 		}
-		if(uniqueCode != null) {
+		if (uniqueCode != null) {
 			map['UniqueCode'] = uniqueCode;
 		}
 		return map;
@@ -564,9 +564,9 @@ class UserInfoByCodeDTO extends UserDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(bindAssistantUserName != null)
+		if (bindAssistantUserName != null)
 			map['BindAssistantUserName'] = bindAssistantUserName;
-		if(bindAssistantDoctorUserName != null)
+		if (bindAssistantDoctorUserName != null)
 			map['BindAssistantDoctorUserName'] = bindAssistantDoctorUserName;
 		return map;
 	}
@@ -591,7 +591,7 @@ class GetUserByCodeRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(userCode != null)
+		if (userCode != null)
 			map['UserCode'] = userCode;
 		return map;
 	}
@@ -626,7 +626,7 @@ class CommonSettingsRequest extends TokenRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['SettingType'] = settingType.index;
-		if(value != null)
+		if (value != null)
 			map['Value'] = value;
 		return map;
 	}
@@ -650,7 +650,7 @@ class RefreshStaticticRecordsRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(userCode != null) {
+		if (userCode != null) {
 			map['UserCode'] = userCode;
 		}
 		map['InExecutor'] = inExecutor;
@@ -693,18 +693,18 @@ class ClientScheduleDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(title != null) {
+		if (title != null) {
 			map['Title'] = title;
 		}
 		map['Status'] = status.index;
 		map['ScheduleType'] = scheduleType.index;
-		if(startTime != null) {
+		if (startTime != null) {
 			map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
 		}
-		if(endTime != null) {
+		if (endTime != null) {
 			map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
 		}
-		if(relevanceCode != null) {
+		if (relevanceCode != null) {
 			map['RelevanceCode'] = relevanceCode;
 		}
 		return map;
@@ -733,9 +733,9 @@ class FindSchedulesRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(startTime != null)
+		if (startTime != null)
 			map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
-		if(endTime != null)
+		if (endTime != null)
 			map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
 		return map;
 	}
@@ -795,20 +795,20 @@ class MessageExtendInfoDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(messageCode != null)
+		if (messageCode != null)
 			map['MessageCode'] = messageCode;
 		map['NotificationType'] = notificationType.index;
-		if(content != null)
+		if (content != null)
 			map['Content'] = content;
-		if(notifyTime != null)
+		if (notifyTime != null)
 			map['NotifyTime'] = JsonRpcUtils.dateFormat(notifyTime!);
 		map['ReceiverType'] = receiverType.index;
-		if(relevanceCode != null)
+		if (relevanceCode != null)
 			map['RelevanceCode'] = relevanceCode;
 		map['IsReaded'] = isReaded;
-		if(deliveryTime != null)
+		if (deliveryTime != null)
 			map['DeliveryTime'] = JsonRpcUtils.dateFormat(deliveryTime!);
-		if(readTime != null)
+		if (readTime != null)
 			map['ReadTime'] = JsonRpcUtils.dateFormat(readTime!);
 		return map;
 	}
@@ -843,7 +843,7 @@ class QueryMessageListRequest extends PageRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['TransactionType'] = transactionType.index;
-		if(keyword != null)
+		if (keyword != null)
 			map['Keyword'] = keyword;
 		return map;
 	}
@@ -871,7 +871,7 @@ class SetMessageDeliveryRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(messageCode != null)
+		if (messageCode != null)
 			map['MessageCode'] = messageCode;
 		map['IsReaded'] = isReaded;
 		return map;
@@ -897,7 +897,7 @@ class SetMessageInfoReqeust extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(messageCodes != null)
+		if (messageCodes != null)
 			map['MessageCodes'] = messageCodes;
 		return map;
 	}
@@ -937,14 +937,14 @@ class AnnouncementExtendInfoDTO extends BaseDTO{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(announcementCode != null)
+		if (announcementCode != null)
 			map['AnnouncementCode'] = announcementCode;
 		map['AnnouncementType'] = announcementType.index;
-		if(language != null)
+		if (language != null)
 			map['Language'] = language;
-		if(title != null)
+		if (title != null)
 			map['Title'] = title;
-		if(content != null)
+		if (content != null)
 			map['Content'] = content;
 		return map;
 	}
@@ -988,13 +988,13 @@ class QueryAnnouncementListRequest extends PageRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['AnnouncementType'] = announcementType.index;
-		if(language != null)
+		if (language != null)
 			map['Language'] = language;
-		if(keyword != null)
+		if (keyword != null)
 			map['Keyword'] = keyword;
-		if(startTime != null)
+		if (startTime != null)
 			map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
-		if(endTime != null)
+		if (endTime != null)
 			map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
 		return map;
 	}
@@ -1022,9 +1022,9 @@ class GetAnnouncementRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(announcementCode != null)
+		if (announcementCode != null)
 			map['AnnouncementCode'] = announcementCode;
-		if(language != null)
+		if (language != null)
 			map['Language'] = language;
 		return map;
 	}
@@ -1049,7 +1049,7 @@ class NoReadMessagesDTO {
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['Count'] = count;
-		if(noReadCodes != null) {
+		if (noReadCodes != null) {
 			map['NoReadCodes'] = noReadCodes;
 		}
 		return map;
@@ -1099,7 +1099,7 @@ class RemoveUserSingleTokenRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
-		if(wSToken != null)
+		if (wSToken != null)
 			map['WSToken'] = wSToken;
 		return map;
 	}
@@ -1289,14 +1289,14 @@ class UserMigratoryInfo extends UserDTO{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['IsDelete'] = isDelete;
-		if(secretPassword != null)
+		if (secretPassword != null)
 			map['SecretPassword'] = secretPassword;
-		if(passwordUpdateTime != null)
+		if (passwordUpdateTime != null)
 			map['PasswordUpdateTime'] = JsonRpcUtils.dateFormat(passwordUpdateTime!);
-		if(passwordRecords != null)
+		if (passwordRecords != null)
 			map['PasswordRecords'] = passwordRecords;
 		map['UserRole'] = userRole.index;
-		if(remoteMainFeature != null)
+		if (remoteMainFeature != null)
 			map['RemoteMainFeature'] = remoteMainFeature;
 		return map;
 	}
@@ -1325,7 +1325,7 @@ class BatchInsertUserRequest extends TokenRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['SyncType'] = syncType.index;
-		if(userMigratorys != null)
+		if (userMigratorys != null)
 			map['UserMigratorys'] = userMigratorys;
 		return map;
 	}
@@ -1357,10 +1357,10 @@ class MigrateRecordDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(startTime != null) {
+		if (startTime != null) {
 			map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
 		}
-		if(endTime != null) {
+		if (endTime != null) {
 			map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
 		}
 		map['Type'] = type.index;
@@ -1421,7 +1421,7 @@ class CommonLogOffRequest extends TokenRequest{
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
 		map['VerificationType'] = verificationType.index;
-		if(anyCode != null)
+		if (anyCode != null)
 			map['AnyCode'] = anyCode;
 		return map;
 	}

+ 5 - 5
lib/services/vinnoServer.m.dart

@@ -13,7 +13,7 @@ class UpdateServerInfoRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(codes != null) {
+		if (codes != null) {
 			map['Codes'] = codes;
 		}
 		return map;
@@ -38,10 +38,10 @@ class ServerInfoDTO {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
-		if(host != null) {
+		if (host != null) {
 			map['Host'] = host;
 		}
 		return map;
@@ -121,10 +121,10 @@ class UpdateServerIPListRequest {
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
-		if(name != null) {
+		if (name != null) {
 			map['Name'] = name;
 		}
-		if(ipRange != null) {
+		if (ipRange != null) {
 			map['IpRange'] = ipRange;
 		}
 		return map;

Some files were not shown because too many files changed in this diff