PaystackRequestResponse.fromJson constructor

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

Implementation

factory PaystackRequestResponse.fromJson(Map<String, dynamic> json) {
  return PaystackRequestResponse(
    status: json['status'],
    authUrl: json['data']["authorization_url"],
    reference: json['data']["reference"],
    // data: json['data'] != null ? PaymentData.fromJson(json["data"]) : null,
  );
}