PaymentPagesCheckoutSessionTaxId.fromJson constructor

PaymentPagesCheckoutSessionTaxId.fromJson(
  1. Object? json
)

Implementation

factory PaymentPagesCheckoutSessionTaxId.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentPagesCheckoutSessionTaxId(
    type: InvoicesResourceInvoiceTaxIdType.fromJson(map['type']),
    value: map['value'] == null ? null : (map['value'] as String),
  );
}