PaymentIntentNextActionWechatPayRedirectToAndroidApp.fromJson constructor

PaymentIntentNextActionWechatPayRedirectToAndroidApp.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentNextActionWechatPayRedirectToAndroidApp.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentNextActionWechatPayRedirectToAndroidApp(
    appId: (map['app_id'] as String),
    nonceStr: (map['nonce_str'] as String),
    package: (map['package'] as String),
    partnerId: (map['partner_id'] as String),
    prepayId: (map['prepay_id'] as String),
    sign: (map['sign'] as String),
    timestamp: (map['timestamp'] as String),
  );
}