PaymobResponse.fromJson constructor
Implementation
factory PaymobResponse.fromJson(Map<String, dynamic> json) {
return PaymobResponse(
success: json['success'] == 'true',
transactionID: json['id'],
message: json['message'],
responseCode: json['txn_response_code'],
);
}