PaymentIntentNextActionPromptpayDisplayQrCode.fromJson constructor

PaymentIntentNextActionPromptpayDisplayQrCode.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentNextActionPromptpayDisplayQrCode.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentNextActionPromptpayDisplayQrCode(
    data: (map['data'] as String),
    hostedInstructionsUrl: (map['hosted_instructions_url'] as String),
    imageUrlPng: (map['image_url_png'] as String),
    imageUrlSvg: (map['image_url_svg'] as String),
  );
}