PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode.fromJson constructor

PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode.fromJson(
  1. Object? json
)

Implementation

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