Match constructor

Match({
  1. String? matchId,
  2. bool? authoritative,
  3. StringValue? label,
  4. int? size,
  5. Iterable<UserPresence>? presences,
  6. UserPresence? self,
})

Implementation

factory Match({
  $core.String? matchId,
  $core.bool? authoritative,
  $1.StringValue? label,
  $core.int? size,
  $core.Iterable<UserPresence>? presences,
  UserPresence? self,
}) {
  final _result = create();
  if (matchId != null) {
    _result.matchId = matchId;
  }
  if (authoritative != null) {
    _result.authoritative = authoritative;
  }
  if (label != null) {
    _result.label = label;
  }
  if (size != null) {
    _result.size = size;
  }
  if (presences != null) {
    _result.presences.addAll(presences);
  }
  if (self != null) {
    _result.self = self;
  }
  return _result;
}