TaxRateOrId.fromJson constructor

TaxRateOrId.fromJson(
  1. Object? json
)

Implementation

factory TaxRateOrId.fromJson(Object? json) {
  if (json is String) {
    return TaxRateId(id: json);
  }
  return TaxRate.fromJson(json);
}