Files
Neo_wallet/neowallet_mobile/lib/model/transaction_model.dart
Manasit.K 43c32ef6cf init
2024-10-31 15:57:57 +07:00

89 lines
2.5 KiB
Dart

class Transactions {
int? id;
String? merchantLocalID;
String? amount;
String? invoice;
String? ref1;
String? ref2;
String? paymentChannel;
String? ePaymentTransactionID;
var pgwTransactionID;
String? responseURL;
String? requestUserID;
String? remark;
String? topupStatus;
String? createDate;
String? updateDate;
String? createBy;
String? updateBy;
String? requestName;
String? fullName;
Transactions(
{this.id,
this.merchantLocalID,
this.amount,
this.invoice,
this.ref1,
this.ref2,
this.paymentChannel,
this.ePaymentTransactionID,
this.pgwTransactionID,
this.responseURL,
this.requestUserID,
this.remark,
this.topupStatus,
this.createDate,
this.updateDate,
this.createBy,
this.updateBy,
this.requestName,
this.fullName});
Transactions.fromJson(Map<String, dynamic> json) {
id = json['id'];
merchantLocalID = json['merchantLocalID'];
amount = json['amount'];
invoice = json['invoice'];
ref1 = json['ref1'];
ref2 = json['ref2'];
paymentChannel = json['paymentChannel'];
ePaymentTransactionID = json['ePaymentTransactionID'];
pgwTransactionID = json['pgwTransactionID'];
responseURL = json['responseURL'];
requestUserID = json['requestUserID'];
remark = json['remark'];
topupStatus = json['topupStatus'];
createDate = json['createDate'];
updateDate = json['updateDate'];
createBy = json['createBy'];
updateBy = json['updateBy'];
requestName = json['requestName'];
fullName = json['fullName'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['merchantLocalID'] = this.merchantLocalID;
data['amount'] = this.amount;
data['invoice'] = this.invoice;
data['ref1'] = this.ref1;
data['ref2'] = this.ref2;
data['paymentChannel'] = this.paymentChannel;
data['ePaymentTransactionID'] = this.ePaymentTransactionID;
data['pgwTransactionID'] = this.pgwTransactionID;
data['responseURL'] = this.responseURL;
data['requestUserID'] = this.requestUserID;
data['remark'] = this.remark;
data['topupStatus'] = this.topupStatus;
data['createDate'] = this.createDate;
data['updateDate'] = this.updateDate;
data['createBy'] = this.createBy;
data['updateBy'] = this.updateBy;
data['requestName'] = this.requestName;
data['fullName'] = this.fullName;
return data;
}
}