MatexCountryMetadata class

Represents metadata associated with a country, such as VAT rates and currency.

Provides functionality to handle metadata like VAT rates and currency. It also allows for cloning, copying with modifications, and merging operations.

Inheritance
  • Object
  • TModel
  • MatexCountryMetadata

Constructors

MatexCountryMetadata({required String id, required String currency, required String code, List<double>? vatRates})
Constructs a country's metadata.
const
MatexCountryMetadata.fromJson(String id, Map<String, dynamic> json)
Creates a MatexCountryMetadata instance from a JSON map.
factory

Properties

code String
The country's code.
final
currency String
Currency used in the country.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Identifier for the metadata.
final
props List<Object?>
Represents the properties used for identifying the uniqueness of the object.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
vatRates List<double>?
A list of VAT rates applicable in the country.
final

Methods

assignValue<T>(T? value, {T? defaultValue, bool loose = true}) → T?
inherited
clone() MatexCountryMetadata
Returns a cloned instance of the current object.
override
copyWith({List<double>? vatRates, String? currency, String? code, String? id}) MatexCountryMetadata
Returns a copy of the current object with modified properties.
override
copyWithDefaults() → TModel
inherited
merge(covariant MatexCountryMetadata model) MatexCountryMetadata
Merges the current object with another MatexCountryMetadata model.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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