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/SubmitTransactionRequestMod...

51 lines
1.5 KiB
Dart

class SubmitTransactionRequestModel {
final String porOrgacode;
final String pctCstycode;
final String channelCode;
final String cmpCustcode;
final String obpPincode;
final String otdTrancomment;
final String otdTranrequestid;
SubmitTransactionRequestModel({
required this.porOrgacode,
required this.pctCstycode,
required this.channelCode,
required this.cmpCustcode,
required this.obpPincode,
required this.otdTrancomment,
required this.otdTranrequestid,
});
Map<String, dynamic> toMap() {
return {
'porOrgacode': porOrgacode,
'pctCstycode': pctCstycode,
'channelCode': channelCode,
'cmpCustcode': cmpCustcode,
'obpPincode': obpPincode,
'otdTrancomment': otdTrancomment,
'otdTranrequestid': otdTranrequestid,
};
}
factory SubmitTransactionRequestModel.fromMap(Map<String, dynamic> map) {
return SubmitTransactionRequestModel(
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}';
}
}