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