AchievementProgress class
Represents the data transfer object (DTO) for a user's achievement progress from an API response.
Constructors
-
AchievementProgress({String? name, String? description, String? type, int? count, List<
TierAnchor> ? tiers, AchievementTier? currentTier, AchievementTier? nextTier, int? nextTierTripsRequired, int? remainingTrips}) -
const
-
AchievementProgress.fromJson(Map<
String, dynamic> json) -
Factory constructor to parse from JSON.
factory
Properties
- count → int?
-
The user's current progress count towards the achievement.
final
- currentTier → AchievementTier?
-
The tier the user has currently achieved.
final
- description → String?
-
A description of the achievement.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
The name of the achievement.
final
- nextTier → AchievementTier?
-
The next tier the user can achieve.
final
- nextTierTripsRequired → int?
-
The total number of trips required to reach the next tier.
final
- remainingTrips → int?
-
The number of trips remaining for the user to reach the next tier.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tiers
→ List<
TierAnchor> ? -
A list of all possible tier anchors for this achievement.
final
- type → String?
-
The type or category of the achievement.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the object to JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited