CheckoutSessionInvoiceCreation.fromJson constructor

CheckoutSessionInvoiceCreation.fromJson(
  1. Object? json
)

Implementation

factory CheckoutSessionInvoiceCreation.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CheckoutSessionInvoiceCreation(
    enabled: (map['enabled'] as bool),
    invoiceData: PaymentPagesCheckoutSessionInvoiceSettings.fromJson(
        map['invoice_data']),
  );
}