LeaderboardRecord constructor
const
LeaderboardRecord({
- String? leaderboardId,
- String? ownerId,
- String? username,
- @JsonKey(fromJson: _stringToInt) int? score,
- @JsonKey(fromJson: _stringToInt) int? subscore,
- @Default(0) int numScore,
- String? metadata,
- DateTime? createTime,
- DateTime? updateTime,
- DateTime? expiryTime,
- @JsonKey(fromJson: _stringToInt) int? rank,
- @Default(0) int maxNumScore,
Implementation
const factory LeaderboardRecord({
String? leaderboardId,
String? ownerId,
String? username,
@JsonKey(fromJson: _stringToInt) int? score,
@JsonKey(fromJson: _stringToInt) int? subscore,
@Default(0) int numScore,
String? metadata,
DateTime? createTime,
DateTime? updateTime,
DateTime? expiryTime,
@JsonKey(fromJson: _stringToInt) int? rank,
@Default(0) int maxNumScore,
}) = _LeaderboardRecord;