Migration constructor

Migration({
  1. String? fromSfuId,
  2. Iterable<TrackInfo>? announcedTracks,
  3. Iterable<TrackSubscriptionDetails>? subscriptions,
})

Implementation

factory Migration({
  $core.String? fromSfuId,
  $core.Iterable<$0.TrackInfo>? announcedTracks,
  $core.Iterable<$1.TrackSubscriptionDetails>? subscriptions,
}) {
  final $result = create();
  if (fromSfuId != null) {
    $result.fromSfuId = fromSfuId;
  }
  if (announcedTracks != null) {
    $result.announcedTracks.addAll(announcedTracks);
  }
  if (subscriptions != null) {
    $result.subscriptions.addAll(subscriptions);
  }
  return $result;
}