Tax1 class

Constructors

Tax1({String? country, String? state, String? postcode, String? city, String? rate, String? name, int? priority, bool? compound, bool? shipping, int? order, Tax1Class_Enum? class_, List<String> postcodes = const [], List<String> cities = const []})
Returns a new Tax1 instance.

Properties

cities List<String>
List of city names. Introduced in WooCommerce 5.3.
getter/setter pair
city String?
City name, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'cities' should be used instead.
getter/setter pair
class_ Tax1Class_Enum?
Tax class.
getter/setter pair
compound bool?
Whether or not this is a compound rate.
getter/setter pair
country String?
Country ISO 3166 code.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
name String?
Tax rate name.
getter/setter pair
order int?
Indicates the order that will appear in queries.
getter/setter pair
postcode String?
Postcode/ZIP, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'postcodes' should be used instead.
getter/setter pair
postcodes List<String>
List of postcodes / ZIPs. Introduced in WooCommerce 5.3.
getter/setter pair
priority int?
Tax priority.
getter/setter pair
rate String?
Tax rate.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shipping bool?
Whether or not this tax rate also gets applied to shipping.
getter/setter pair
state String?
State code.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(dynamic value) Tax1?
Returns a new Tax1 instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<Tax1>
mapFromJson(dynamic json) Map<String, Tax1>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<Tax1>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.