PaymentMethodOptionsWechatPay.fromJson constructor

PaymentMethodOptionsWechatPay.fromJson(
  1. 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']),
  );
}