Leaderboard constructor

Leaderboard({
  1. String? id,
  2. int? sortOrder,
  3. Operator? operator,
  4. int? prevReset,
  5. int? nextReset,
  6. String? metadata,
  7. Timestamp? createTime,
  8. bool? authoritative,
})

Implementation

factory Leaderboard({
  $core.String? id,
  $core.int? sortOrder,
  Operator? operator,
  $core.int? prevReset,
  $core.int? nextReset,
  $core.String? metadata,
  $0.Timestamp? createTime,
  $core.bool? authoritative,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (sortOrder != null) {
    _result.sortOrder = sortOrder;
  }
  if (operator != null) {
    _result.operator = operator;
  }
  if (prevReset != null) {
    _result.prevReset = prevReset;
  }
  if (nextReset != null) {
    _result.nextReset = nextReset;
  }
  if (metadata != null) {
    _result.metadata = metadata;
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  if (authoritative != null) {
    _result.authoritative = authoritative;
  }
  return _result;
}