PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode.fromJson constructor

PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode(
    hostedInstructionsUrl: (map['hosted_instructions_url'] as String),
    mobileAuthUrl: (map['mobile_auth_url'] as String),
    qrCode: PaymentIntentNextActionCashappQrCode.fromJson(map['qr_code']),
  );
}