ZoopPayment.fromJson constructor
ZoopPayment.fromJson(- Map<String, dynamic> json
)
Implementation
ZoopPayment.fromJson(Map<String, dynamic> json) {
fees = json['fees'];
if (json['fee_details'] != null) {
feeDetails = new List<FeeDetails>();
json['fee_details'].forEach((v) {
feeDetails.add(new FeeDetails.fromJson(v));
});
}
createdAt = json['created_at'];
arpc = json['arpc'];
statementDescriptor = json['statement_descriptor'];
updatedAt = json['updated_at'];
originalAmount = json['original_amount'];
captured = json['captured'];
pointOfSale = json['point_of_sale'] != null
? new PointOfSale.fromJson(json['point_of_sale'])
: null;
currency = json['currency'];
refunded = json['refunded'];
voided = json['voided'];
id = json['id'];
gatewayAuthorizer = json['gateway_authorizer'];
iccData = json['icc_data'];
paymentMethod = json['payment_method'] != null
? new PaymentMethod.fromJson(json['payment_method'])
: null;
amount = json['amount'];
resource = json['resource'];
onBehalfOf = json['on_behalf_of'];
if (json['history'] != null) {
history = new List<History>();
json['history'].forEach((v) {
history.add(new History.fromJson(v));
});
}
uri = json['uri'];
expectedOn = json['expected_on'];
appTransactionUid = json['app_transaction_uid'];
paymentType = json['payment_type'];
salesReceipt = json['sales_receipt'];
transactionNumber = json['transaction_number'];
paymentAuthorization = json['payment_authorization'] != null
? new PaymentAuthorization.fromJson(json['payment_authorization'])
: null;
aid = json['aid'];
status = json['status'];
customer = json['customer'];
}