RemoteVideoStats.fromMap constructor Null safety

RemoteVideoStats.fromMap(
  1. Map map
)

Implementation

factory RemoteVideoStats.fromMap(Map<dynamic, dynamic> map) {
  return RemoteVideoStats(
      width: map['width'],
      height: map['height'],
      videoLossRate: map['videoLossRate'],
      receivedKBitrate: map['receivedKBitrate'],
      decoderOutputFrameRate: map['decoderOutputFrameRate'],
      renderOutputFrameRate: map['renderOutputFrameRate'],
      stallCount: map['stallCount'],
      stallDuration: map['stallDuration'],
      e2eDelay: map['e2eDelay'],
      isScreen: map['isScreen'],
      statsInterval: map['statsInterval'],
      rtt: map['rtt'],
      frozenRate: map['frozenRate'],
      codecType: (map['codecType'] as int).videoCodecType,
      videoIndex: map['videoIndex']);
}