PaymentIntentNextActionWechatPayDisplayQrCode.fromJson constructor

PaymentIntentNextActionWechatPayDisplayQrCode.fromJson(
  1. Object? json
)

Implementation

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