Tournament constructor

Tournament({
  1. String? id,
  2. String? title,
  3. String? description,
  4. int? category,
  5. int? sortOrder,
  6. int? size,
  7. int? maxSize,
  8. int? maxNumScore,
  9. bool? canEnter,
  10. int? endActive,
  11. int? nextReset,
  12. String? metadata,
  13. Timestamp? createTime,
  14. Timestamp? startTime,
  15. Timestamp? endTime,
  16. int? duration,
  17. int? startActive,
  18. int? prevReset,
  19. Operator? operator,
})

Implementation

factory Tournament({
  $core.String? id,
  $core.String? title,
  $core.String? description,
  $core.int? category,
  $core.int? sortOrder,
  $core.int? size,
  $core.int? maxSize,
  $core.int? maxNumScore,
  $core.bool? canEnter,
  $core.int? endActive,
  $core.int? nextReset,
  $core.String? metadata,
  $0.Timestamp? createTime,
  $0.Timestamp? startTime,
  $0.Timestamp? endTime,
  $core.int? duration,
  $core.int? startActive,
  $core.int? prevReset,
  Operator? operator,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (title != null) {
    _result.title = title;
  }
  if (description != null) {
    _result.description = description;
  }
  if (category != null) {
    _result.category = category;
  }
  if (sortOrder != null) {
    _result.sortOrder = sortOrder;
  }
  if (size != null) {
    _result.size = size;
  }
  if (maxSize != null) {
    _result.maxSize = maxSize;
  }
  if (maxNumScore != null) {
    _result.maxNumScore = maxNumScore;
  }
  if (canEnter != null) {
    _result.canEnter = canEnter;
  }
  if (endActive != null) {
    _result.endActive = endActive;
  }
  if (nextReset != null) {
    _result.nextReset = nextReset;
  }
  if (metadata != null) {
    _result.metadata = metadata;
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  if (startTime != null) {
    _result.startTime = startTime;
  }
  if (endTime != null) {
    _result.endTime = endTime;
  }
  if (duration != null) {
    _result.duration = duration;
  }
  if (startActive != null) {
    _result.startActive = startActive;
  }
  if (prevReset != null) {
    _result.prevReset = prevReset;
  }
  if (operator != null) {
    _result.operator = operator;
  }
  return _result;
}