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;
}