fromMap static method

SuccessResponse fromMap(
  1. Map map
)

Implementation

static SuccessResponse fromMap(Map<dynamic, dynamic> map) {
  String? paymentId = map["razorpay_payment_id"];
  String? signature = map["razorpay_signature"];
  String? orderId = map["razorpay_order_id"];
  Map<dynamic, dynamic> data = map;
  return  SuccessResponse(paymentId, orderId, signature, data);
}