fromJson static method

dynamic fromJson(
  1. Map<String, dynamic> data
)

Return StatusResponse from json.

Implementation

static fromJson(Map<String, dynamic> data) {
  return StatusResponse(
    paid:
        (data['status'] == "Paid") | (data['status'] == "Awaiting+Delivery"),
    status: data['status'],
    amount: data['amount'],
    reference: data['reference'],
    hash: data['hash'],
    paynowreference: data['paynowreference'],
  );
}