JoinRequest constructor
JoinRequest({
- String? token,
- String? sessionId,
- String? subscriberSdp,
- ClientDetails? clientDetails,
- @Deprecated('This field is deprecated.') Migration? migration,
- @Deprecated('This field is deprecated.') bool? fastReconnect,
- ReconnectDetails? reconnectDetails,
Implementation
factory JoinRequest({
$core.String? token,
$core.String? sessionId,
$core.String? subscriberSdp,
$0.ClientDetails? clientDetails,
@$core.Deprecated('This field is deprecated.')
Migration? migration,
@$core.Deprecated('This field is deprecated.')
$core.bool? fastReconnect,
ReconnectDetails? reconnectDetails,
}) {
final $result = create();
if (token != null) {
$result.token = token;
}
if (sessionId != null) {
$result.sessionId = sessionId;
}
if (subscriberSdp != null) {
$result.subscriberSdp = subscriberSdp;
}
if (clientDetails != null) {
$result.clientDetails = clientDetails;
}
if (migration != null) {
// ignore: deprecated_member_use_from_same_package
$result.migration = migration;
}
if (fastReconnect != null) {
// ignore: deprecated_member_use_from_same_package
$result.fastReconnect = fastReconnect;
}
if (reconnectDetails != null) {
$result.reconnectDetails = reconnectDetails;
}
return $result;
}