Response constructor

Response({
  1. Hello? hello,
  2. ConnectRoomResponse? connectRoomResponse,
  3. CreateTransportOnClient? createTransportOnClient,
  4. ProduceResponse? produceResponse,
  5. ProduceDataResponse? produceDataResponse,
  6. SyncMeetingStateResponse? syncMeetingStateResponse,
  7. ConsumeResponse? consumeResponse,
  8. CloseProducerSuccess? closeProducerSuccess,
  9. CloseConsumerSuccess? closeConsumerSuccess,
  10. ConnectTransportResponse? connectTransportResponse,
  11. RestartTransportIceResponse? restartTransportIceResponse,
  12. NewPeerJoined? newPeerJoined,
  13. NewLobbyPeer? newLobbyPeer,
  14. NewPermissions? newPermissions,
  15. NewRoomControls? newRoomControls,
  16. NewPeerRole? newPeerRole,
  17. ReceiveData? receiveData,
  18. PeerMetadataUpdated? peerMetadataUpdated,
  19. RoomMetadataUpdated? roomMetadataUpdated,
  20. RoomClosedProducers? roomClosedProducers,
  21. PeerLeft? peerLeft,
  22. LobbyPeerLeft? lobbyPeerLeft,
  23. WaitingRoom? waitingRoom,
  24. Error? error,
  25. ConsumeDataResponse? consumeDataResponse,
})

Implementation

factory Response({
  Hello? hello,
  ConnectRoomResponse? connectRoomResponse,
  CreateTransportOnClient? createTransportOnClient,
  ProduceResponse? produceResponse,
  ProduceDataResponse? produceDataResponse,
  SyncMeetingStateResponse? syncMeetingStateResponse,
  ConsumeResponse? consumeResponse,
  CloseProducerSuccess? closeProducerSuccess,
  CloseConsumerSuccess? closeConsumerSuccess,
  ConnectTransportResponse? connectTransportResponse,
  RestartTransportIceResponse? restartTransportIceResponse,
  NewPeerJoined? newPeerJoined,
  NewLobbyPeer? newLobbyPeer,
  NewPermissions? newPermissions,
  NewRoomControls? newRoomControls,
  NewPeerRole? newPeerRole,
  ReceiveData? receiveData,
  PeerMetadataUpdated? peerMetadataUpdated,
  RoomMetadataUpdated? roomMetadataUpdated,
  RoomClosedProducers? roomClosedProducers,
  PeerLeft? peerLeft,
  LobbyPeerLeft? lobbyPeerLeft,
  WaitingRoom? waitingRoom,
  Error? error,
  ConsumeDataResponse? consumeDataResponse,
}) {
  final $result = create();
  if (hello != null) {
    $result.hello = hello;
  }
  if (connectRoomResponse != null) {
    $result.connectRoomResponse = connectRoomResponse;
  }
  if (createTransportOnClient != null) {
    $result.createTransportOnClient = createTransportOnClient;
  }
  if (produceResponse != null) {
    $result.produceResponse = produceResponse;
  }
  if (produceDataResponse != null) {
    $result.produceDataResponse = produceDataResponse;
  }
  if (syncMeetingStateResponse != null) {
    $result.syncMeetingStateResponse = syncMeetingStateResponse;
  }
  if (consumeResponse != null) {
    $result.consumeResponse = consumeResponse;
  }
  if (closeProducerSuccess != null) {
    $result.closeProducerSuccess = closeProducerSuccess;
  }
  if (closeConsumerSuccess != null) {
    $result.closeConsumerSuccess = closeConsumerSuccess;
  }
  if (connectTransportResponse != null) {
    $result.connectTransportResponse = connectTransportResponse;
  }
  if (restartTransportIceResponse != null) {
    $result.restartTransportIceResponse = restartTransportIceResponse;
  }
  if (newPeerJoined != null) {
    $result.newPeerJoined = newPeerJoined;
  }
  if (newLobbyPeer != null) {
    $result.newLobbyPeer = newLobbyPeer;
  }
  if (newPermissions != null) {
    $result.newPermissions = newPermissions;
  }
  if (newRoomControls != null) {
    $result.newRoomControls = newRoomControls;
  }
  if (newPeerRole != null) {
    $result.newPeerRole = newPeerRole;
  }
  if (receiveData != null) {
    $result.receiveData = receiveData;
  }
  if (peerMetadataUpdated != null) {
    $result.peerMetadataUpdated = peerMetadataUpdated;
  }
  if (roomMetadataUpdated != null) {
    $result.roomMetadataUpdated = roomMetadataUpdated;
  }
  if (roomClosedProducers != null) {
    $result.roomClosedProducers = roomClosedProducers;
  }
  if (peerLeft != null) {
    $result.peerLeft = peerLeft;
  }
  if (lobbyPeerLeft != null) {
    $result.lobbyPeerLeft = lobbyPeerLeft;
  }
  if (waitingRoom != null) {
    $result.waitingRoom = waitingRoom;
  }
  if (error != null) {
    $result.error = error;
  }
  if (consumeDataResponse != null) {
    $result.consumeDataResponse = consumeDataResponse;
  }
  return $result;
}