PaymentMethodDetailsWechatPay.fromJson constructor

PaymentMethodDetailsWechatPay.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodDetailsWechatPay.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodDetailsWechatPay(
    fingerprint:
        map['fingerprint'] == null ? null : (map['fingerprint'] as String),
    transactionId: map['transaction_id'] == null
        ? null
        : (map['transaction_id'] as String),
  );
}