TierAnchor class
Represents a data transfer object (DTO) for a tier anchor from an API response.
The name represents the achievement tier, and threshold indicates the required value to reach this tier.
Constructors
- TierAnchor({AchievementTier? name, int? threshold})
-
const
-
TierAnchor.fromJson(Map<
String, dynamic> json) -
Factory constructor to parse from JSON.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → AchievementTier?
-
The name of the achievement tier.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- threshold → int?
-
The threshold value required to reach this tier.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the object back to JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited