GameProfileModel class

Constructors

GameProfileModel({String? id, required String userId, String? companyId, int totalXp = 0, int level = 1, int currentLevelXp = 0, int xpToNextLevel = 100, int streak = 0, DateTime? lastActivityDate, DateTime? createdAt, DateTime? updatedAt})
GameProfileModel.fromJson(Map<String, dynamic> json)
factory

Properties

box → BoxBase?
Get the box in which this object is stored. Returns null if object has not been added to a box yet.
no setterinherited
companyId String?
final
createdAt DateTime?
final
currentLevelXp int
final
hashCode int
The hash code for this object.
no setterinherited
id String?
final
isInBox bool
Returns whether this object is currently stored in a box.
no setterinherited
key → dynamic
Get the key associated with this object. Returns null if object has not been added to a box yet.
no setterinherited
lastActivityDate DateTime?
final
level int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streak int
final
totalXp int
final
updatedAt DateTime?
final
userId String
final
xpToNextLevel int
final

Methods

delete() Future<void>
Deletes this object from the box it is stored in.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Persists this object.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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