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.
57 lines
1.5 KiB
Dart
57 lines
1.5 KiB
Dart
class TransactionRequestModel {
|
|
String porOrgacode = "";
|
|
String pctCstycode = "";
|
|
String channelCode = "";
|
|
String cmpCustcode = "";
|
|
String obpPincode = "";
|
|
String otdTrancomment = "";
|
|
String otdTranrequestid = "";
|
|
|
|
TransactionRequestModel({
|
|
this.porOrgacode = "",
|
|
this.pctCstycode = "",
|
|
this.channelCode = "",
|
|
this.cmpCustcode = "",
|
|
this.obpPincode = "",
|
|
this.otdTrancomment = "",
|
|
this.otdTranrequestid = "",
|
|
});
|
|
|
|
Map<String, dynamic> toMap() {
|
|
return {
|
|
'porOrgacode': porOrgacode,
|
|
'pctCstycode': pctCstycode,
|
|
'channelCode': channelCode,
|
|
'cmpCustcode': cmpCustcode,
|
|
'obpPincode': obpPincode,
|
|
'otdTrancomment': otdTrancomment,
|
|
'otdTranrequestid': otdTranrequestid,
|
|
};
|
|
}
|
|
|
|
factory TransactionRequestModel.fromMap(Map<String, dynamic> map) {
|
|
return TransactionRequestModel(
|
|
porOrgacode: map['porOrgacode'] ?? '',
|
|
pctCstycode: map['pctCstycode'] ?? '',
|
|
channelCode: map['channelCode'] ?? '',
|
|
cmpCustcode: map['cmpCustcode'] ?? '',
|
|
obpPincode: map['obpPincode'] ?? '',
|
|
otdTrancomment: map['otdTrancomment'] ?? '',
|
|
otdTranrequestid: map['otdTranrequestid'] ?? '',
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'TransactionRequestModel{'
|
|
'porOrgacode: $porOrgacode, '
|
|
'pctCstycode: $pctCstycode, '
|
|
'channelCode: $channelCode, '
|
|
'cmpCustcode: $cmpCustcode, '
|
|
'obpPincode: $obpPincode, '
|
|
'otdTrancomment: $otdTrancomment, '
|
|
'otdTranrequestid: $otdTranrequestid'
|
|
'}';
|
|
}
|
|
}
|