PaymentPagesCheckoutSessionAutomaticTax.fromJson constructor

PaymentPagesCheckoutSessionAutomaticTax.fromJson(
  1. Object? json
)

Implementation

factory PaymentPagesCheckoutSessionAutomaticTax.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentPagesCheckoutSessionAutomaticTax(
    enabled: (map['enabled'] as bool),
    liability: map['liability'] == null
        ? null
        : ConnectAccountReference.fromJson(map['liability']),
    status: map['status'] == null
        ? null
        : AutomaticTaxStatus.fromJson(map['status']),
  );
}