SubscriptionItem_ constructor

SubscriptionItem_({
  1. TopicItem_? item,
  2. Discontinuity_? discontinuity,
  3. Heartbeat_? heartbeat,
})

Implementation

factory SubscriptionItem_({
  TopicItem_? item,
  Discontinuity_? discontinuity,
  Heartbeat_? heartbeat,
}) {
  final $result = create();
  if (item != null) {
    $result.item = item;
  }
  if (discontinuity != null) {
    $result.discontinuity = discontinuity;
  }
  if (heartbeat != null) {
    $result.heartbeat = heartbeat;
  }
  return $result;
}