Party constructor

Party({
  1. String? partyId,
  2. bool? open,
  3. int? maxSize,
  4. UserPresence? self,
  5. UserPresence? leader,
  6. Iterable<UserPresence>? presences,
})

Implementation

factory Party({
  $core.String? partyId,
  $core.bool? open,
  $core.int? maxSize,
  UserPresence? self,
  UserPresence? leader,
  $core.Iterable<UserPresence>? presences,
}) {
  final _result = create();
  if (partyId != null) {
    _result.partyId = partyId;
  }
  if (open != null) {
    _result.open = open;
  }
  if (maxSize != null) {
    _result.maxSize = maxSize;
  }
  if (self != null) {
    _result.self = self;
  }
  if (leader != null) {
    _result.leader = leader;
  }
  if (presences != null) {
    _result.presences.addAll(presences);
  }
  return _result;
}