ChangeFee class

Constructors

ChangeFee({ChangeFeeTypeEnum? type, Money? amount, num? percent, Money? min, Money? max})
Returns a new ChangeFee instance.

Properties

amount ↔ Money?
The fee, for fixed; null for percent.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
max ↔ Money?
The most a percent fee charges; null when unset.
getter/setter pair
min ↔ Money?
The least a percent fee charges; null when unset.
getter/setter pair
percent ↔ num?
The percent of what the change costs, for percent; null for fixed.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ ChangeFeeTypeEnum?
fixed or percent.
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) → ChangeFee?
Returns a new ChangeFee instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ChangeFee>
mapFromJson(dynamic json) → Map<String, ChangeFee>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ChangeFee>>

Constants

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