PaymentLinksResourceAutomaticTax.fromJson constructor

PaymentLinksResourceAutomaticTax.fromJson(
  1. Object? json
)

Implementation

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