toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['videoPath'] = videoPath;
  data['UUID'] = UUID;
  data['videoSize'] = videoSize;
  data['duration'] = duration;
  data['snapshotPath'] = snapshotPath;
  data['snapshotUUID'] = snapshotUUID;
  data['snapshotSize'] = snapshotSize;
  data['snapshotWidth'] = snapshotWidth;
  data['snapshotHeight'] = snapshotHeight;
  data['videoUrl'] = videoUrl;
  data['snapshotUrl'] = snapshotUrl;
  if (nextElem != null) {
    data['nextElem'] = nextElem;
  }
  return data;
}