PaymentIntentThreeDSecure.fromJson constructor

PaymentIntentThreeDSecure.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentThreeDSecure.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentThreeDSecure(
    aresTransStatus: map['ares_trans_status'] == null
        ? null
        : PaymentIntentAresTransStatus.fromJson(map['ares_trans_status']),
    cryptogram: (map['cryptogram'] as String),
    electronicCommerceIndicator: map['electronic_commerce_indicator'] == null
        ? null
        : PaymentIntentElectronicCommerceIndicator.fromJson(
            map['electronic_commerce_indicator']),
    exemptionIndicator: map['exemption_indicator'] == null
        ? null
        : PaymentIntentExemptionIndicator.fromJson(
            map['exemption_indicator']),
    networkOptions: map['network_options'] == null
        ? null
        : PaymentIntentNetworkOptions.fromJson(map['network_options']),
    requestorChallengeIndicator: map['requestor_challenge_indicator'] == null
        ? null
        : (map['requestor_challenge_indicator'] as String),
    transactionId: (map['transaction_id'] as String),
    version: PaymentIntentVersion.fromJson(map['version']),
  );
}