PaymentMethodOptionsWechatPay.fromJson constructor
PaymentMethodOptionsWechatPay.fromJson(
- Object? json
Implementation
factory PaymentMethodOptionsWechatPay.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodOptionsWechatPay(
appId: map['app_id'] == null ? null : (map['app_id'] as String),
client: map['client'] == null
? null
: PaymentMethodOptionsWechatPayClient.fromJson(map['client']),
);
}