toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "code": code,
      "referenceCode": referenceCode,
      "frame": frame,
      "domain": domain,
      "confirmationPage": confirmationPage,
      "rejectionPage": rejectionPage,
      "paymentURL": paymentUrl,
      "browser": browser,
    };