PaymobResponse.fromJson constructor

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

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