|
@@ -0,0 +1,585 @@
|
|
|
+import 'package:fis_common/json_convert.dart';
|
|
|
+
|
|
|
+class AdminAccountInfo {
|
|
|
+ String? adminCode;
|
|
|
+ String? fatherCode;
|
|
|
+ String? adminName;
|
|
|
+ String? secretPassword;
|
|
|
+ String? headImageToken;
|
|
|
+ String? licenseKey;
|
|
|
+ String? lastIP;
|
|
|
+ String? phone;
|
|
|
+ String? email;
|
|
|
+
|
|
|
+ AdminAccountInfo({
|
|
|
+ this.adminCode,
|
|
|
+ this.fatherCode,
|
|
|
+ this.adminName,
|
|
|
+ this.secretPassword,
|
|
|
+ this.headImageToken,
|
|
|
+ this.licenseKey,
|
|
|
+ this.lastIP,
|
|
|
+ this.phone,
|
|
|
+ this.email,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory AdminAccountInfo.fromJson(Map<String, dynamic> map) {
|
|
|
+ return AdminAccountInfo(
|
|
|
+ adminCode: map['AdminCode'],
|
|
|
+ fatherCode: map['FatherCode'],
|
|
|
+ adminName: map['AdminName'],
|
|
|
+ secretPassword: map['SecretPassword'],
|
|
|
+ headImageToken: map['HeadImageToken'],
|
|
|
+ licenseKey: map['LicenseKey'],
|
|
|
+ lastIP: map['LastIP'],
|
|
|
+ phone: map['Phone'],
|
|
|
+ email: map['Email'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(adminCode != null)
|
|
|
+ map['AdminCode'] = adminCode;
|
|
|
+ if(fatherCode != null)
|
|
|
+ map['FatherCode'] = fatherCode;
|
|
|
+ if(adminName != null)
|
|
|
+ map['AdminName'] = adminName;
|
|
|
+ if(secretPassword != null)
|
|
|
+ map['SecretPassword'] = secretPassword;
|
|
|
+ if(headImageToken != null)
|
|
|
+ map['HeadImageToken'] = headImageToken;
|
|
|
+ if(licenseKey != null)
|
|
|
+ map['LicenseKey'] = licenseKey;
|
|
|
+ if(lastIP != null)
|
|
|
+ map['LastIP'] = lastIP;
|
|
|
+ if(phone != null)
|
|
|
+ map['Phone'] = phone;
|
|
|
+ if(email != null)
|
|
|
+ map['Email'] = email;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class PageCollection<T> {
|
|
|
+ int currentPage;
|
|
|
+ int pageSize;
|
|
|
+ int dataCount;
|
|
|
+ List<T>? pageData;
|
|
|
+
|
|
|
+ PageCollection({
|
|
|
+ this.currentPage=0,
|
|
|
+ this.pageSize=0,
|
|
|
+ this.dataCount=0,
|
|
|
+ this.pageData,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory PageCollection.fromJson(Map<String, dynamic> map) {
|
|
|
+ List<T> pageDataList = [];
|
|
|
+ if (map['PageData'] != null) {
|
|
|
+ pageDataList.addAll(
|
|
|
+ (map['PageData'] as List).map((e) => FJsonConvert.fromJson<T>(e)!));
|
|
|
+ }
|
|
|
+ return PageCollection(
|
|
|
+ currentPage: map['CurrentPage'],
|
|
|
+ pageSize: map['PageSize'],
|
|
|
+ dataCount: map['DataCount'],
|
|
|
+ pageData: pageDataList,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ map['CurrentPage'] = currentPage;
|
|
|
+ map['PageSize'] = pageSize;
|
|
|
+ map['DataCount'] = dataCount;
|
|
|
+ if(pageData != null)
|
|
|
+ map['PageData'] = pageData;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+enum UserInfoStateEnum {
|
|
|
+ Nonactivated,
|
|
|
+ Activated,
|
|
|
+}
|
|
|
+
|
|
|
+class UserInfo {
|
|
|
+ String? userCode;
|
|
|
+ String? userName;
|
|
|
+ String? phone;
|
|
|
+ String? email;
|
|
|
+ String? nickName;
|
|
|
+ String? fullName;
|
|
|
+ String? headImageToken;
|
|
|
+ String? organizationCode;
|
|
|
+ List<String>? authorityGroups;
|
|
|
+ List<String>? bindDevices;
|
|
|
+ int score;
|
|
|
+ String? lastIP;
|
|
|
+ UserInfoStateEnum userState;
|
|
|
+ String? securityQuestion;
|
|
|
+ String? securityAnswers;
|
|
|
+ DateTime? createTime;
|
|
|
+ DateTime? updateTime;
|
|
|
+
|
|
|
+ UserInfo({
|
|
|
+ this.userCode,
|
|
|
+ this.userName,
|
|
|
+ this.phone,
|
|
|
+ this.email,
|
|
|
+ this.nickName,
|
|
|
+ this.fullName,
|
|
|
+ this.headImageToken,
|
|
|
+ this.organizationCode,
|
|
|
+ this.authorityGroups,
|
|
|
+ this.bindDevices,
|
|
|
+ this.score=0,
|
|
|
+ this.lastIP,
|
|
|
+ this.userState=UserInfoStateEnum.Nonactivated,
|
|
|
+ this.securityQuestion,
|
|
|
+ this.securityAnswers,
|
|
|
+ this.createTime,
|
|
|
+ this.updateTime,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory UserInfo.fromJson(Map<String, dynamic> map) {
|
|
|
+ return UserInfo(
|
|
|
+ userCode: map['UserCode'],
|
|
|
+ userName: map['UserName'],
|
|
|
+ phone: map['Phone'],
|
|
|
+ email: map['Email'],
|
|
|
+ nickName: map['NickName'],
|
|
|
+ fullName: map['FullName'],
|
|
|
+ headImageToken: map['HeadImageToken'],
|
|
|
+ organizationCode: map['OrganizationCode'],
|
|
|
+ authorityGroups: map['AuthorityGroups'].cast<String>().toList(),
|
|
|
+ bindDevices: map['BindDevices'].cast<String>().toList(),
|
|
|
+ score: map['Score'],
|
|
|
+ lastIP: map['LastIP'],
|
|
|
+ userState: UserInfoStateEnum.values.firstWhere((e) => e.index == map['UserState']),
|
|
|
+ securityQuestion: map['SecurityQuestion'],
|
|
|
+ securityAnswers: map['SecurityAnswers'],
|
|
|
+ createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
+ updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(userCode != null)
|
|
|
+ map['UserCode'] = userCode;
|
|
|
+ if(userName != null)
|
|
|
+ map['UserName'] = userName;
|
|
|
+ if(phone != null)
|
|
|
+ map['Phone'] = phone;
|
|
|
+ if(email != null)
|
|
|
+ map['Email'] = email;
|
|
|
+ if(nickName != null)
|
|
|
+ map['NickName'] = nickName;
|
|
|
+ if(fullName != null)
|
|
|
+ map['FullName'] = fullName;
|
|
|
+ if(headImageToken != null)
|
|
|
+ map['HeadImageToken'] = headImageToken;
|
|
|
+ if(organizationCode != null)
|
|
|
+ map['OrganizationCode'] = organizationCode;
|
|
|
+ if(authorityGroups != null)
|
|
|
+ map['AuthorityGroups'] = authorityGroups;
|
|
|
+ if(bindDevices != null)
|
|
|
+ map['BindDevices'] = bindDevices;
|
|
|
+ map['Score'] = score;
|
|
|
+ if(lastIP != null)
|
|
|
+ map['LastIP'] = lastIP;
|
|
|
+ map['UserState'] = userState.index;
|
|
|
+ if(securityQuestion != null)
|
|
|
+ map['SecurityQuestion'] = securityQuestion;
|
|
|
+ if(securityAnswers != null)
|
|
|
+ map['SecurityAnswers'] = securityAnswers;
|
|
|
+ if(createTime != null)
|
|
|
+ map['CreateTime'] = createTime;
|
|
|
+ if(updateTime != null)
|
|
|
+ map['UpdateTime'] = updateTime;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class ReportInfo {
|
|
|
+ String? reportCode;
|
|
|
+ String? snapShotReportTemplate;
|
|
|
+ String? reportValuesJson;
|
|
|
+ String? recordCode;
|
|
|
+ String? reportUser;
|
|
|
+ String? tags;
|
|
|
+ String? reportImageUrl;
|
|
|
+ String? reportHtmlRaw;
|
|
|
+
|
|
|
+ ReportInfo({
|
|
|
+ this.reportCode,
|
|
|
+ this.snapShotReportTemplate,
|
|
|
+ this.reportValuesJson,
|
|
|
+ this.recordCode,
|
|
|
+ this.reportUser,
|
|
|
+ this.tags,
|
|
|
+ this.reportImageUrl,
|
|
|
+ this.reportHtmlRaw,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory ReportInfo.fromJson(Map<String, dynamic> map) {
|
|
|
+ return ReportInfo(
|
|
|
+ reportCode: map['ReportCode'],
|
|
|
+ snapShotReportTemplate: map['SnapShotReportTemplate'],
|
|
|
+ reportValuesJson: map['ReportValuesJson'],
|
|
|
+ recordCode: map['RecordCode'],
|
|
|
+ reportUser: map['ReportUser'],
|
|
|
+ tags: map['Tags'],
|
|
|
+ reportImageUrl: map['ReportImageUrl'],
|
|
|
+ reportHtmlRaw: map['ReportHtmlRaw'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(reportCode != null)
|
|
|
+ map['ReportCode'] = reportCode;
|
|
|
+ if(snapShotReportTemplate != null)
|
|
|
+ map['SnapShotReportTemplate'] = snapShotReportTemplate;
|
|
|
+ if(reportValuesJson != null)
|
|
|
+ map['ReportValuesJson'] = reportValuesJson;
|
|
|
+ if(recordCode != null)
|
|
|
+ map['RecordCode'] = recordCode;
|
|
|
+ if(reportUser != null)
|
|
|
+ map['ReportUser'] = reportUser;
|
|
|
+ if(tags != null)
|
|
|
+ map['Tags'] = tags;
|
|
|
+ if(reportImageUrl != null)
|
|
|
+ map['ReportImageUrl'] = reportImageUrl;
|
|
|
+ if(reportHtmlRaw != null)
|
|
|
+ map['ReportHtmlRaw'] = reportHtmlRaw;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+enum RecordTypeEnum {
|
|
|
+ Ultrasound,
|
|
|
+ Electrocardio,
|
|
|
+}
|
|
|
+
|
|
|
+enum CheckTypeEnum {
|
|
|
+ Default,
|
|
|
+}
|
|
|
+
|
|
|
+enum RecordStatusEnum {
|
|
|
+ Default,
|
|
|
+}
|
|
|
+
|
|
|
+class RecordInfo {
|
|
|
+ String? recordCode;
|
|
|
+ String? patientCode;
|
|
|
+ String? patientName;
|
|
|
+ String? orgName;
|
|
|
+ RecordTypeEnum recordType;
|
|
|
+ CheckTypeEnum checkType;
|
|
|
+ String? localRecordCode;
|
|
|
+ RecordStatusEnum recordStatus;
|
|
|
+ String? recordRemark;
|
|
|
+ String? tags;
|
|
|
+ DateTime? createTime;
|
|
|
+ DateTime? updateTime;
|
|
|
+
|
|
|
+ RecordInfo({
|
|
|
+ this.recordCode,
|
|
|
+ this.patientCode,
|
|
|
+ this.patientName,
|
|
|
+ this.orgName,
|
|
|
+ this.recordType=RecordTypeEnum.Ultrasound,
|
|
|
+ this.checkType=CheckTypeEnum.Default,
|
|
|
+ this.localRecordCode,
|
|
|
+ this.recordStatus=RecordStatusEnum.Default,
|
|
|
+ this.recordRemark,
|
|
|
+ this.tags,
|
|
|
+ this.createTime,
|
|
|
+ this.updateTime,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory RecordInfo.fromJson(Map<String, dynamic> map) {
|
|
|
+ return RecordInfo(
|
|
|
+ recordCode: map['RecordCode'],
|
|
|
+ patientCode: map['PatientCode'],
|
|
|
+ patientName: map['PatientName'],
|
|
|
+ orgName: map['OrgName'],
|
|
|
+ recordType: RecordTypeEnum.values.firstWhere((e) => e.index == map['RecordType']),
|
|
|
+ checkType: CheckTypeEnum.values.firstWhere((e) => e.index == map['CheckType']),
|
|
|
+ localRecordCode: map['LocalRecordCode'],
|
|
|
+ recordStatus: RecordStatusEnum.values.firstWhere((e) => e.index == map['RecordStatus']),
|
|
|
+ recordRemark: map['RecordRemark'],
|
|
|
+ tags: map['Tags'],
|
|
|
+ createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
+ updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(recordCode != null)
|
|
|
+ map['RecordCode'] = recordCode;
|
|
|
+ if(patientCode != null)
|
|
|
+ map['PatientCode'] = patientCode;
|
|
|
+ if(patientName != null)
|
|
|
+ map['PatientName'] = patientName;
|
|
|
+ if(orgName != null)
|
|
|
+ map['OrgName'] = orgName;
|
|
|
+ map['RecordType'] = recordType.index;
|
|
|
+ map['CheckType'] = checkType.index;
|
|
|
+ if(localRecordCode != null)
|
|
|
+ map['LocalRecordCode'] = localRecordCode;
|
|
|
+ map['RecordStatus'] = recordStatus.index;
|
|
|
+ if(recordRemark != null)
|
|
|
+ map['RecordRemark'] = recordRemark;
|
|
|
+ if(tags != null)
|
|
|
+ map['Tags'] = tags;
|
|
|
+ if(createTime != null)
|
|
|
+ map['CreateTime'] = createTime;
|
|
|
+ if(updateTime != null)
|
|
|
+ map['UpdateTime'] = updateTime;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+enum DeviceDataTypeEnum {
|
|
|
+ Default,
|
|
|
+}
|
|
|
+
|
|
|
+class DeviceData {
|
|
|
+ String? deviceDataCode;
|
|
|
+ String? deviceCode;
|
|
|
+ String? deviceFileCode;
|
|
|
+ String? recordCode;
|
|
|
+ String? patientCode;
|
|
|
+ String? previewImageToken;
|
|
|
+ String? dataToken;
|
|
|
+ DeviceDataTypeEnum deviceDataType;
|
|
|
+ String? processResult;
|
|
|
+ DateTime? createTime;
|
|
|
+ DateTime? updateTime;
|
|
|
+
|
|
|
+ DeviceData({
|
|
|
+ this.deviceDataCode,
|
|
|
+ this.deviceCode,
|
|
|
+ this.deviceFileCode,
|
|
|
+ this.recordCode,
|
|
|
+ this.patientCode,
|
|
|
+ this.previewImageToken,
|
|
|
+ this.dataToken,
|
|
|
+ this.deviceDataType=DeviceDataTypeEnum.Default,
|
|
|
+ this.processResult,
|
|
|
+ this.createTime,
|
|
|
+ this.updateTime,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory DeviceData.fromJson(Map<String, dynamic> map) {
|
|
|
+ return DeviceData(
|
|
|
+ deviceDataCode: map['DeviceDataCode'],
|
|
|
+ deviceCode: map['DeviceCode'],
|
|
|
+ deviceFileCode: map['DeviceFileCode'],
|
|
|
+ recordCode: map['RecordCode'],
|
|
|
+ patientCode: map['PatientCode'],
|
|
|
+ previewImageToken: map['PreviewImageToken'],
|
|
|
+ dataToken: map['DataToken'],
|
|
|
+ deviceDataType: DeviceDataTypeEnum.values.firstWhere((e) => e.index == map['DeviceDataType']),
|
|
|
+ processResult: map['ProcessResult'],
|
|
|
+ createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
+ updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(deviceDataCode != null)
|
|
|
+ map['DeviceDataCode'] = deviceDataCode;
|
|
|
+ if(deviceCode != null)
|
|
|
+ map['DeviceCode'] = deviceCode;
|
|
|
+ if(deviceFileCode != null)
|
|
|
+ map['DeviceFileCode'] = deviceFileCode;
|
|
|
+ if(recordCode != null)
|
|
|
+ map['RecordCode'] = recordCode;
|
|
|
+ if(patientCode != null)
|
|
|
+ map['PatientCode'] = patientCode;
|
|
|
+ if(previewImageToken != null)
|
|
|
+ map['PreviewImageToken'] = previewImageToken;
|
|
|
+ if(dataToken != null)
|
|
|
+ map['DataToken'] = dataToken;
|
|
|
+ map['DeviceDataType'] = deviceDataType.index;
|
|
|
+ if(processResult != null)
|
|
|
+ map['ProcessResult'] = processResult;
|
|
|
+ if(createTime != null)
|
|
|
+ map['CreateTime'] = createTime;
|
|
|
+ if(updateTime != null)
|
|
|
+ map['UpdateTime'] = updateTime;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+enum GenderTypeEnum {
|
|
|
+ Male,
|
|
|
+ Female,
|
|
|
+}
|
|
|
+
|
|
|
+enum PatientTypeEnum {
|
|
|
+ Default,
|
|
|
+}
|
|
|
+
|
|
|
+class PatientInfo {
|
|
|
+ String? patientCode;
|
|
|
+ String? firstName;
|
|
|
+ String? lastName;
|
|
|
+ String? patientCardNo;
|
|
|
+ DateTime? birthday;
|
|
|
+ GenderTypeEnum genderType;
|
|
|
+ String? patientCaseHistory;
|
|
|
+ String? patientPhone;
|
|
|
+ PatientTypeEnum patientType;
|
|
|
+ DateTime? createTime;
|
|
|
+ DateTime? updateTime;
|
|
|
+
|
|
|
+ PatientInfo({
|
|
|
+ this.patientCode,
|
|
|
+ this.firstName,
|
|
|
+ this.lastName,
|
|
|
+ this.patientCardNo,
|
|
|
+ this.birthday,
|
|
|
+ this.genderType=GenderTypeEnum.Male,
|
|
|
+ this.patientCaseHistory,
|
|
|
+ this.patientPhone,
|
|
|
+ this.patientType=PatientTypeEnum.Default,
|
|
|
+ this.createTime,
|
|
|
+ this.updateTime,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory PatientInfo.fromJson(Map<String, dynamic> map) {
|
|
|
+ return PatientInfo(
|
|
|
+ patientCode: map['PatientCode'],
|
|
|
+ firstName: map['FirstName'],
|
|
|
+ lastName: map['LastName'],
|
|
|
+ patientCardNo: map['PatientCardNo'],
|
|
|
+ birthday: map['Birthday'] != null ? DateTime.parse(map['Birthday']) : null,
|
|
|
+ genderType: GenderTypeEnum.values.firstWhere((e) => e.index == map['GenderType']),
|
|
|
+ patientCaseHistory: map['PatientCaseHistory'],
|
|
|
+ patientPhone: map['PatientPhone'],
|
|
|
+ patientType: PatientTypeEnum.values.firstWhere((e) => e.index == map['PatientType']),
|
|
|
+ createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
+ updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(patientCode != null)
|
|
|
+ map['PatientCode'] = patientCode;
|
|
|
+ if(firstName != null)
|
|
|
+ map['FirstName'] = firstName;
|
|
|
+ if(lastName != null)
|
|
|
+ map['LastName'] = lastName;
|
|
|
+ if(patientCardNo != null)
|
|
|
+ map['PatientCardNo'] = patientCardNo;
|
|
|
+ if(birthday != null)
|
|
|
+ map['Birthday'] = birthday;
|
|
|
+ map['GenderType'] = genderType.index;
|
|
|
+ if(patientCaseHistory != null)
|
|
|
+ map['PatientCaseHistory'] = patientCaseHistory;
|
|
|
+ if(patientPhone != null)
|
|
|
+ map['PatientPhone'] = patientPhone;
|
|
|
+ map['PatientType'] = patientType.index;
|
|
|
+ if(createTime != null)
|
|
|
+ map['CreateTime'] = createTime;
|
|
|
+ if(updateTime != null)
|
|
|
+ map['UpdateTime'] = updateTime;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class MenuInfo {
|
|
|
+ String? menuCode;
|
|
|
+ String? menuName;
|
|
|
+ String? menuType;
|
|
|
+ String? menuShowName;
|
|
|
+ int menuSort;
|
|
|
+ String? menuFatherCode;
|
|
|
+
|
|
|
+ MenuInfo({
|
|
|
+ this.menuCode,
|
|
|
+ this.menuName,
|
|
|
+ this.menuType,
|
|
|
+ this.menuShowName,
|
|
|
+ this.menuSort=0,
|
|
|
+ this.menuFatherCode,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory MenuInfo.fromJson(Map<String, dynamic> map) {
|
|
|
+ return MenuInfo(
|
|
|
+ menuCode: map['MenuCode'],
|
|
|
+ menuName: map['MenuName'],
|
|
|
+ menuType: map['MenuType'],
|
|
|
+ menuShowName: map['MenuShowName'],
|
|
|
+ menuSort: map['MenuSort'],
|
|
|
+ menuFatherCode: map['MenuFatherCode'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(menuCode != null)
|
|
|
+ map['MenuCode'] = menuCode;
|
|
|
+ if(menuName != null)
|
|
|
+ map['MenuName'] = menuName;
|
|
|
+ if(menuType != null)
|
|
|
+ map['MenuType'] = menuType;
|
|
|
+ if(menuShowName != null)
|
|
|
+ map['MenuShowName'] = menuShowName;
|
|
|
+ map['MenuSort'] = menuSort;
|
|
|
+ if(menuFatherCode != null)
|
|
|
+ map['MenuFatherCode'] = menuFatherCode;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class FrontAuthorityGroupInfo {
|
|
|
+ String? frontGroupCode;
|
|
|
+ String? description;
|
|
|
+ List<String>? adminCodes;
|
|
|
+ List<String>? features;
|
|
|
+ bool isShow;
|
|
|
+
|
|
|
+ FrontAuthorityGroupInfo({
|
|
|
+ this.frontGroupCode,
|
|
|
+ this.description,
|
|
|
+ this.adminCodes,
|
|
|
+ this.features,
|
|
|
+ this.isShow=false,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory FrontAuthorityGroupInfo.fromJson(Map<String, dynamic> map) {
|
|
|
+ return FrontAuthorityGroupInfo(
|
|
|
+ frontGroupCode: map['FrontGroupCode'],
|
|
|
+ description: map['Description'],
|
|
|
+ adminCodes: map['AdminCodes'].cast<String>().toList(),
|
|
|
+ features: map['Features'].cast<String>().toList(),
|
|
|
+ isShow: map['IsShow'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(frontGroupCode != null)
|
|
|
+ map['FrontGroupCode'] = frontGroupCode;
|
|
|
+ if(description != null)
|
|
|
+ map['Description'] = description;
|
|
|
+ if(adminCodes != null)
|
|
|
+ map['AdminCodes'] = adminCodes;
|
|
|
+ if(features != null)
|
|
|
+ map['Features'] = features;
|
|
|
+ map['IsShow'] = isShow;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|