You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
4.5 KiB
Dart
118 lines
4.5 KiB
Dart
import 'dart:convert';
|
|
|
|
import 'package:mohem_flutter_app/models/basic_member_information_model.dart';
|
|
import 'package:mohem_flutter_app/models/member_information_list_model.dart';
|
|
import 'package:mohem_flutter_app/models/privilege_list_model.dart';
|
|
|
|
class CheckActivationCodeModel {
|
|
String? authenticationTokenId;
|
|
String? pPassowrdExpired;
|
|
String? pPasswordExpiredMsg;
|
|
String? pInvalidLoginMsg;
|
|
String? mohemmWifiSsid;
|
|
String? mohemmWifiPassword;
|
|
String? companyImageUrl;
|
|
String? companyImageDescription;
|
|
String? companyBadge;
|
|
String? companyMainCompany;
|
|
dynamic bcLogo;
|
|
dynamic bcDomain;
|
|
dynamic businessGroupName;
|
|
String? pReturnStatus;
|
|
String? pReturnMsg;
|
|
List<MemberInformationListModel>? memberInformationList;
|
|
BasicMemberInformationModel? basicMemberInformation;
|
|
dynamic mohemmItgResponseItem;
|
|
int? pSessionId;
|
|
String? tokenId;
|
|
String? refreshToken;
|
|
String? errorMessage;
|
|
DateTime? expiry;
|
|
List<PrivilegeListModel>? privilegeList;
|
|
|
|
CheckActivationCodeModel({
|
|
this.authenticationTokenId,
|
|
this.pPassowrdExpired,
|
|
this.pPasswordExpiredMsg,
|
|
this.pInvalidLoginMsg,
|
|
this.mohemmWifiSsid,
|
|
this.mohemmWifiPassword,
|
|
this.companyImageUrl,
|
|
this.companyImageDescription,
|
|
this.companyBadge,
|
|
this.companyMainCompany,
|
|
this.bcLogo,
|
|
this.bcDomain,
|
|
this.businessGroupName,
|
|
this.pReturnStatus,
|
|
this.pReturnMsg,
|
|
this.memberInformationList,
|
|
this.basicMemberInformation,
|
|
this.mohemmItgResponseItem,
|
|
this.pSessionId,
|
|
this.tokenId,
|
|
this.refreshToken,
|
|
this.errorMessage,
|
|
this.expiry,
|
|
this.privilegeList,
|
|
});
|
|
|
|
factory CheckActivationCodeModel.fromRawJson(String str) => CheckActivationCodeModel.fromJson(json.decode(str));
|
|
|
|
String toRawJson() => json.encode(toJson());
|
|
|
|
factory CheckActivationCodeModel.fromJson(Map<String, dynamic> json) => CheckActivationCodeModel(
|
|
authenticationTokenId: json["AuthenticationTokenID"],
|
|
pPassowrdExpired: json["P_PASSOWRD_EXPIRED"],
|
|
pPasswordExpiredMsg: json["P_PASSWORD_EXPIRED_MSG"],
|
|
pInvalidLoginMsg: json["P_INVALID_LOGIN_MSG"],
|
|
mohemmWifiSsid: json["Mohemm_Wifi_SSID"],
|
|
mohemmWifiPassword: json["Mohemm_Wifi_Password"],
|
|
companyImageUrl: json["CompanyImageURL"],
|
|
companyImageDescription: json["CompanyImageDescription"],
|
|
companyBadge: json["CompanyBadge"],
|
|
companyMainCompany: json["CompanyMainCompany"],
|
|
bcLogo: json["BC_Logo"],
|
|
bcDomain: json["BC_Domain"],
|
|
businessGroupName: json["BUSINESS_GROUP_NAME"],
|
|
pReturnStatus: json["P_RETURN_STATUS"],
|
|
pReturnMsg: json["P_RETURN_MSG"],
|
|
memberInformationList: json["MemberInformationList"] == null ? [] : List<MemberInformationListModel>.from(json["MemberInformationList"]!.map((x) => MemberInformationListModel.fromJson(x))),
|
|
basicMemberInformation: json["BasicMemberInformation"] == null ? null : BasicMemberInformationModel.fromJson(json["BasicMemberInformation"]),
|
|
mohemmItgResponseItem: json["Mohemm_ITG_ResponseItem"],
|
|
pSessionId: json["P_SESSION_ID"],
|
|
tokenId: json["TokenId"],
|
|
refreshToken: json["RefreshToken"],
|
|
errorMessage: json["ErrorMessage"],
|
|
expiry: json["Expiry"] == null ? null : DateTime.parse(json["Expiry"]),
|
|
privilegeList: json["Privilege_List"] == null ? [] : List<PrivilegeListModel>.from(json["Privilege_List"]!.map((x) => PrivilegeListModel.fromJson(x))),
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
"AuthenticationTokenID": authenticationTokenId,
|
|
"P_PASSOWRD_EXPIRED": pPassowrdExpired,
|
|
"P_PASSWORD_EXPIRED_MSG": pPasswordExpiredMsg,
|
|
"P_INVALID_LOGIN_MSG": pInvalidLoginMsg,
|
|
"Mohemm_Wifi_SSID": mohemmWifiSsid,
|
|
"Mohemm_Wifi_Password": mohemmWifiPassword,
|
|
"CompanyImageURL": companyImageUrl,
|
|
"CompanyImageDescription": companyImageDescription,
|
|
"CompanyBadge": companyBadge,
|
|
"CompanyMainCompany": companyMainCompany,
|
|
"BC_Logo": bcLogo,
|
|
"BC_Domain": bcDomain,
|
|
"BUSINESS_GROUP_NAME": businessGroupName,
|
|
"P_RETURN_STATUS": pReturnStatus,
|
|
"P_RETURN_MSG": pReturnMsg,
|
|
"MemberInformationList": memberInformationList == null ? [] : List<dynamic>.from(memberInformationList!.map((x) => x.toJson())),
|
|
"BasicMemberInformation": basicMemberInformation?.toJson(),
|
|
"Mohemm_ITG_ResponseItem": mohemmItgResponseItem,
|
|
"P_SESSION_ID": pSessionId,
|
|
"TokenId": tokenId,
|
|
"RefreshToken": refreshToken,
|
|
"ErrorMessage": errorMessage,
|
|
"Expiry": expiry?.toIso8601String(),
|
|
"Privilege_List": privilegeList == null ? [] : List<dynamic>.from(privilegeList!.map((x) => x.toJson())),
|
|
};
|
|
}
|