fromJson static method
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'],
);
}