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.
uco-mobile-poc/lib/app/models/TransactionSubmitRequestMod...

148 lines
5.4 KiB
Dart

class TransactionSubmitRequestModel {
String porOrgacode = "";
String pctCstycode = "";
String channelCode = "";
String cmpCustcode = "";
String drMbmBkmsnumber = "";
String cmpRefcode = "";
String drMbmBkmstitle = "";
String drPcrCurrcode = "";
String drPcrCurrdesc = "";
String drPcrCurrshort = "";
String crMbmBkmsnumber = "";
String crMbmBkmstitle = "";
String crPcrCurrcode = "";
String crPcrCurrdesc = "";
String crPcrCurrshort = "";
String sgtGntrnarration = "";
String dmpProdCode = "";
String transType = "";
String notificationId = "";
String transMode = "";
double sgtGntramtfc = 0;
String otdTrancomment = "";
String pinType = "";
String obpPincode = "";
bool isOtpRequired = false;
TransactionSubmitRequestModel({
this.porOrgacode = "",
this.pctCstycode = "",
this.cmpRefcode = "",
this.channelCode = "",
this.cmpCustcode = "",
this.drMbmBkmsnumber = "",
this.drMbmBkmstitle = "",
this.drPcrCurrcode = "",
this.drPcrCurrdesc = "",
this.drPcrCurrshort = "",
this.crMbmBkmsnumber = "",
this.crMbmBkmstitle = "",
this.crPcrCurrcode = "",
this.crPcrCurrdesc = "",
this.crPcrCurrshort = "",
this.sgtGntrnarration = "",
this.dmpProdCode = "",
this.transType = "",
this.notificationId = "",
this.transMode = "",
this.sgtGntramtfc = 0,
this.otdTrancomment = "",
this.pinType = "",
this.obpPincode = "",
this.isOtpRequired = false,
});
TransactionSubmitRequestModel.empty()
: this.porOrgacode = "",
this.pctCstycode = "",
this.channelCode = "",
this.cmpRefcode = "",
this.cmpCustcode = "",
this.drMbmBkmsnumber = "",
this.drMbmBkmstitle = "",
this.drPcrCurrcode = "",
this.drPcrCurrdesc = "",
this.drPcrCurrshort = "",
this.crMbmBkmsnumber = "",
this.crMbmBkmstitle = "",
this.crPcrCurrcode = "",
this.crPcrCurrdesc = "",
this.crPcrCurrshort = "",
this.sgtGntrnarration = "",
this.dmpProdCode = "",
this.transType = "",
this.notificationId = "",
this.transMode = "",
this.sgtGntramtfc = 0,
this.otdTrancomment = "",
this.pinType = "",
this.obpPincode = "",
this.isOtpRequired = false;
factory TransactionSubmitRequestModel.fromMap(Map<String, dynamic> json) {
return TransactionSubmitRequestModel(
porOrgacode: json['porOrgacode'] ?? "",
pctCstycode: json['pctCstycode'] ?? "",
channelCode: json['channelCode'] ?? "",
cmpCustcode: json['cmpCustcode'] ?? "",
cmpRefcode: json['cmpRefcode'] ?? "",
drMbmBkmsnumber: json['drMbmBkmsnumber'] ?? "",
drMbmBkmstitle: json['drMbmBkmstitle'] ?? "",
drPcrCurrcode: json['drPcrCurrcode'] ?? "",
drPcrCurrdesc: json['drPcrCurrdesc'] ?? "",
drPcrCurrshort: json['drPcrCurrshort'] ?? "",
crMbmBkmsnumber: json['crMbmBkmsnumber'] ?? "",
crMbmBkmstitle: json['crMbmBkmstitle'] ?? "",
crPcrCurrcode: json['crPcrCurrcode'] ?? "",
crPcrCurrdesc: json['crPcrCurrdesc'] ?? "",
crPcrCurrshort: json['crPcrCurrshort'] ?? "",
sgtGntrnarration: json['sgtGntrnarration'] ?? "",
dmpProdCode: json['dmpProdCode'] ?? "",
transType: json['transType'] ?? "",
notificationId: json['notificationId'] ?? "",
transMode: json['transMode'] ?? "",
sgtGntramtfc: json['sgtGntramtfc'] ?? 0.0,
otdTrancomment: json['otdTrancomment'] ?? "",
pinType: json['pinType'] ?? "",
obpPincode: json['obpPincode'] ?? "",
isOtpRequired: json['isOtpRequired'] ?? false,
);
}
Map<String, dynamic> toMap() {
return {
'porOrgacode': porOrgacode,
'pctCstycode': pctCstycode,
'channelCode': channelCode,
'cmpRefcode': cmpRefcode,
'cmpCustcode': cmpCustcode,
'drMbmBkmsnumber': drMbmBkmsnumber,
'drMbmBkmstitle': drMbmBkmstitle,
'drPcrCurrcode': drPcrCurrcode,
'drPcrCurrdesc': drPcrCurrdesc,
'drPcrCurrshort': drPcrCurrshort,
'crMbmBkmsnumber': crMbmBkmsnumber,
'crMbmBkmstitle': crMbmBkmstitle,
'crPcrCurrcode': crPcrCurrcode,
'crPcrCurrdesc': crPcrCurrdesc,
'crPcrCurrshort': crPcrCurrshort,
'sgtGntrnarration': sgtGntrnarration,
'dmpProdCode': dmpProdCode,
'transType': transType,
'notificationId': notificationId,
'transMode': transMode,
'sgtGntramtfc': sgtGntramtfc,
'otdTrancomment': otdTrancomment,
'pinType': pinType,
'obpPincode': obpPincode,
'isOtpRequired': isOtpRequired,
};
}
@override
String toString() {
return 'TransactionSubmitRequestModel{porOrgacode: $porOrgacode, pctCstycode: $pctCstycode, channelCode: $channelCode, cmpCustcode: $cmpCustcode, drMbmBkmsnumber: $drMbmBkmsnumber, cmpRefcode: $cmpRefcode, drMbmBkmstitle: $drMbmBkmstitle, drPcrCurrcode: $drPcrCurrcode, drPcrCurrdesc: $drPcrCurrdesc, drPcrCurrshort: $drPcrCurrshort, crMbmBkmsnumber: $crMbmBkmsnumber, crMbmBkmstitle: $crMbmBkmstitle, crPcrCurrcode: $crPcrCurrcode, crPcrCurrdesc: $crPcrCurrdesc, crPcrCurrshort: $crPcrCurrshort, sgtGntrnarration: $sgtGntrnarration, dmpProdCode: $dmpProdCode, transType: $transType, notificationId: $notificationId, transMode: $transMode, sgtGntramtfc: $sgtGntramtfc, otdTrancomment: $otdTrancomment, pinType: $pinType, obpPincode: $obpPincode, isOtpRequired: $isOtpRequired}';
}
}