AutomaticTax.fromJson constructor

AutomaticTax.fromJson(
  1. Object? json
)

Implementation

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