Party constructor
Party({
- String? partyId,
- bool? open,
- int? maxSize,
- UserPresence? self,
- UserPresence? leader,
- 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;
}