PaymentResult.fromJson constructor

PaymentResult.fromJson(Map<String, dynamic> json)

Implementation

PaymentResult.fromJson(Map<String, dynamic> json) {
  _comments = json['Comments'];
  _createdDate = json['CreatedDate'];
  _customerMobile = json['CustomerMobile'];
  _customerName = json['CustomerName'];
  _expiryDate = json['ExpiryDate'];
  _invoiceDisplayValue = json['InvoiceDisplayValue'];
  _invoiceId = json['InvoiceId'];
  if (json['InvoiceItems'] != null) {
    _invoiceItems = new List<InvoiceItem>();
    json['InvoiceItems'].forEach((v) {
      _invoiceItems.add(InvoiceItem.fromJson(v));
    });
  }
  _invoiceReference = json['InvoiceReference'];
  _invoiceStatus = json['InvoiceStatus'];
  if (json['InvoiceTransactions'] != null) {
    _invoiceTransactions = new List<InvoiceTransactions>();
    json['InvoiceTransactions'].forEach((v) {
      _invoiceTransactions.add(new InvoiceTransactions.fromJson(v));
    });
  }
  _invoiceValue = json['InvoiceValue'];
}