ChargeResponse.fromJson constructor

ChargeResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

ChargeResponse.fromJson(Map<String, dynamic> json) {
  status = json['status'] == null ? TransactionStatus.ERROR : json['status'];
  success = json['success'] == null ? false : json['success'];
  transactionId = json['transaction_id'];
  txRef = json['tx_ref'];
}