LeaderboardRecord constructor
LeaderboardRecord({})
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;
}