LatestStats constructor

const LatestStats({
  1. double? receiveBitsPerSecond,
  2. double? sendBitsPerSecond,
  3. double? timestamp,
  4. @JsonKey(name: 'videoRecvBitsPerSecond') double? videoReceiveBitsPerSecond,
  5. double? videoSendBitsPerSecond,
  6. @JsonKey(name: 'videoRecvPacketLoss') double? videoReceivePacketLoss,
  7. double? videoSendPacketLoss,
  8. @JsonKey(name: 'totalRecvPacketLoss') double? totalReceivePacketLoss,
  9. double? totalSendPacketLoss,
})

Implementation

const factory LatestStats({
  /// The total (audio + video) amount of bits per second, received over the network.
  double? receiveBitsPerSecond,

  /// The total (audio + video) amount of bits per second, sent over the network.
  double? sendBitsPerSecond,

  /// A timestamp of when this calculation was created.
  double? timestamp,

  /// The total number of bits per second, received for video streams.
  @JsonKey(name: 'videoRecvBitsPerSecond') double? videoReceiveBitsPerSecond,

  /// The total number of bits per second, sent for video streams.
  double? videoSendBitsPerSecond,

  /// The total amount of video packet loss on the receive side of the network.
  @JsonKey(name: 'videoRecvPacketLoss') double? videoReceivePacketLoss,

  /// The total amount of video packet loss on the send side of the network.
  double? videoSendPacketLoss,

  /// The total amount (video + audio) of packet loss on the receive side of the network.
  @JsonKey(name: 'totalRecvPacketLoss') double? totalReceivePacketLoss,

  /// The total amount (video + audio) of packet loss on the send side of the network.
  double? totalSendPacketLoss,
}) = _LatestStats;