RecorderPayload constructor

RecorderPayload({
  1. String? id,
  2. String? roomId,
  3. String? sessionId,
  4. Iterable<RecordingFile>? files,
  5. Iterable<RecordingStream>? streams,
  6. String? cid,
  7. String? ipfsUrl,
  8. bool? uploadToIpfs,
})

Implementation

factory RecorderPayload({
  $core.String? id,
  $core.String? roomId,
  $core.String? sessionId,
  $core.Iterable<RecordingFile>? files,
  $core.Iterable<RecordingStream>? streams,
  $core.String? cid,
  $core.String? ipfsUrl,
  $core.bool? uploadToIpfs,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (roomId != null) {
    $result.roomId = roomId;
  }
  if (sessionId != null) {
    $result.sessionId = sessionId;
  }
  if (files != null) {
    $result.files.addAll(files);
  }
  if (streams != null) {
    $result.streams.addAll(streams);
  }
  if (cid != null) {
    $result.cid = cid;
  }
  if (ipfsUrl != null) {
    $result.ipfsUrl = ipfsUrl;
  }
  if (uploadToIpfs != null) {
    $result.uploadToIpfs = uploadToIpfs;
  }
  return $result;
}