SubscriptionCard.fromJson constructor

SubscriptionCard.fromJson(
  1. Object? json
)

Implementation

factory SubscriptionCard.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SubscriptionCard(
    mandateOptions: map['mandate_options'] == null
        ? null
        : SubscriptionMandateOptions.fromJson(map['mandate_options']),
    network: map['network'] == null
        ? null
        : PaymentIntentNetwork.fromJson(map['network']),
    requestThreeDSecure: map['request_three_d_secure'] == null
        ? null
        : CheckoutCardPaymentMethodOptionsRequestThreeDSecure.fromJson(
            map['request_three_d_secure']),
  );
}