VideoFrameEntity.fromJson constructor

VideoFrameEntity.fromJson(
  1. 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'];
}