PaymentFlowsPrivatePaymentMethodsAlipayDetails.fromJson constructor

PaymentFlowsPrivatePaymentMethodsAlipayDetails.fromJson(
  1. Object? json
)

Implementation

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