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