LeaderboardRecord constructor

LeaderboardRecord({
  1. String? leaderboardId,
  2. String? ownerId,
  3. StringValue? username,
  4. Int64? score,
  5. Int64? subscore,
  6. int? numScore,
  7. String? metadata,
  8. Timestamp? createTime,
  9. Timestamp? updateTime,
  10. Timestamp? expiryTime,
  11. Int64? rank,
  12. int? maxNumScore,
})

Implementation

factory LeaderboardRecord({
  $core.String? leaderboardId,
  $core.String? ownerId,
  $1.StringValue? username,
  $fixnum.Int64? score,
  $fixnum.Int64? subscore,
  $core.int? numScore,
  $core.String? metadata,
  $0.Timestamp? createTime,
  $0.Timestamp? updateTime,
  $0.Timestamp? expiryTime,
  $fixnum.Int64? rank,
  $core.int? maxNumScore,
}) {
  final _result = create();
  if (leaderboardId != null) {
    _result.leaderboardId = leaderboardId;
  }
  if (ownerId != null) {
    _result.ownerId = ownerId;
  }
  if (username != null) {
    _result.username = username;
  }
  if (score != null) {
    _result.score = score;
  }
  if (subscore != null) {
    _result.subscore = subscore;
  }
  if (numScore != null) {
    _result.numScore = numScore;
  }
  if (metadata != null) {
    _result.metadata = metadata;
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  if (updateTime != null) {
    _result.updateTime = updateTime;
  }
  if (expiryTime != null) {
    _result.expiryTime = expiryTime;
  }
  if (rank != null) {
    _result.rank = rank;
  }
  if (maxNumScore != null) {
    _result.maxNumScore = maxNumScore;
  }
  return _result;
}