LeaderboardRecord constructor

const LeaderboardRecord({
  1. String? leaderboardId,
  2. String? ownerId,
  3. String? username,
  4. @JsonKey(fromJson: _stringToInt) int? score,
  5. @JsonKey(fromJson: _stringToInt) int? subscore,
  6. @Default(0) int numScore,
  7. String? metadata,
  8. DateTime? createTime,
  9. DateTime? updateTime,
  10. DateTime? expiryTime,
  11. @JsonKey(fromJson: _stringToInt) int? rank,
  12. @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;