JoinRequest constructor

JoinRequest({
  1. String? token,
  2. String? sessionId,
  3. String? subscriberSdp,
  4. ClientDetails? clientDetails,
  5. @Deprecated('This field is deprecated.') Migration? migration,
  6. @Deprecated('This field is deprecated.') bool? fastReconnect,
  7. 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;
}