PaymentPaymobResponse.fromJson constructor

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

Implementation

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