AutomaticTaxLiability.fromJson constructor

AutomaticTaxLiability.fromJson(
  1. Object? json
)

Implementation

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