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.
62 lines
1.8 KiB
Dart
62 lines
1.8 KiB
Dart
class TransactionPinRequestModel {
|
|
String porOrgacode = "";
|
|
String pctCstycode = "";
|
|
String channelCode = "";
|
|
String cmpCustcode = "";
|
|
String email = "";
|
|
String pinType = "";
|
|
String transPincode = "";
|
|
bool isOtpRequired = false;
|
|
|
|
TransactionPinRequestModel({
|
|
this.porOrgacode = "",
|
|
this.pctCstycode = "",
|
|
this.channelCode = "",
|
|
this.cmpCustcode = "",
|
|
this.email = "",
|
|
this.pinType = "",
|
|
this.transPincode = "",
|
|
this.isOtpRequired = false,
|
|
});
|
|
TransactionPinRequestModel.empty():this.porOrgacode = "",
|
|
this.pctCstycode = "",
|
|
this.channelCode = "",
|
|
this.cmpCustcode = "",
|
|
this.email = "",
|
|
this.pinType = "",
|
|
this.transPincode = "",
|
|
this.isOtpRequired = false;
|
|
|
|
factory TransactionPinRequestModel.fromMap(Map<String, dynamic> map) {
|
|
return TransactionPinRequestModel(
|
|
porOrgacode: map['porOrgacode'] ?? "",
|
|
pctCstycode: map['pctCstycode'] ?? "",
|
|
channelCode: map['channelCode'] ?? "",
|
|
cmpCustcode: map['cmpCustcode'] ?? "",
|
|
email: map['email'] ?? "",
|
|
pinType: map['pinType'] ?? "",
|
|
transPincode: map['transPincode'] ?? "",
|
|
isOtpRequired: map['isOtpRequired'] ?? false,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> toMap() {
|
|
return {
|
|
'porOrgacode': porOrgacode,
|
|
'pctCstycode': pctCstycode,
|
|
'channelCode': channelCode,
|
|
'cmpCustcode': cmpCustcode,
|
|
'email': email,
|
|
'pinType': pinType,
|
|
'transPincode': transPincode,
|
|
'isOtpRequired': isOtpRequired,
|
|
};
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'TransactionPinRequestModel{porOrgacode: $porOrgacode, pctCstycode: $pctCstycode, channelCode: $channelCode, cmpCustcode: $cmpCustcode, email: $email, pinType: $pinType, transPincode: $transPincode, isOtpRequired: $isOtpRequired}';
|
|
}
|
|
}
|
|
|