InvoicePaymentMethodOptionsCard.fromJson constructor

InvoicePaymentMethodOptionsCard.fromJson(
  1. Object? json
)

Implementation

factory InvoicePaymentMethodOptionsCard.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return InvoicePaymentMethodOptionsCard(
    installments: map['installments'] == null
        ? null
        : InvoiceInstallmentsCard.fromJson(map['installments']),
    requestThreeDSecure: map['request_three_d_secure'] == null
        ? null
        : InvoicePaymentMethodOptionsCardRequestThreeDSecure.fromJson(
            map['request_three_d_secure']),
  );
}