RemoteStatisticsEntity.fromJson constructor

RemoteStatisticsEntity.fromJson(
  1. dynamic data
)

Implementation

RemoteStatisticsEntity.fromJson(data) {
  Map<String, dynamic> json =
      data is Map ? data.cast<String, dynamic>() : jsonDecode(data);
  userId = json['userId'];
  finalLoss = json['finalLoss'];
  width = json['width'];
  height = json['height'];
  frameRate = json['frameRate'];
  videoBitrate = json['videoBitrate'];
  audioSampleRate = json['audioSampleRate'];
  audioBitrate = json['audioBitrate'];
  jitterBufferDelay = json['jitterBufferDelay'];
  streamType = StreamTypeTool.getByInt(json['streamType']);
}