toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['fees'] = this.fees;
if (this.feeDetails != null) {
data['fee_details'] = this.feeDetails.map((v) => v.toJson()).toList();
}
data['created_at'] = this.createdAt;
data['arpc'] = this.arpc;
data['statement_descriptor'] = this.statementDescriptor;
data['updated_at'] = this.updatedAt;
data['original_amount'] = this.originalAmount;
data['captured'] = this.captured;
if (this.pointOfSale != null) {
data['point_of_sale'] = this.pointOfSale.toJson();
}
data['currency'] = this.currency;
data['refunded'] = this.refunded;
data['voided'] = this.voided;
data['id'] = this.id;
data['gateway_authorizer'] = this.gatewayAuthorizer;
data['icc_data'] = this.iccData;
if (this.paymentMethod != null) {
data['payment_method'] = this.paymentMethod.toJson();
}
data['amount'] = this.amount;
data['resource'] = this.resource;
data['on_behalf_of'] = this.onBehalfOf;
if (this.history != null) {
data['history'] = this.history.map((v) => v.toJson()).toList();
}
data['uri'] = this.uri;
data['expected_on'] = this.expectedOn;
data['app_transaction_uid'] = this.appTransactionUid;
data['payment_type'] = this.paymentType;
data['sales_receipt'] = this.salesReceipt;
data['transaction_number'] = this.transactionNumber;
if (this.paymentAuthorization != null) {
data['payment_authorization'] = this.paymentAuthorization.toJson();
}
data['aid'] = this.aid;
data['status'] = this.status;
data['customer'] = this.customer;
return data;
}