toJson method

Map<String, dynamic> toJson()

Converts the VideoSegment for JSON parsing.

Implementation

Map<String, dynamic> toJson() =>
    {"videoUri": videoUri, "startTime": startTime, "endTime": endTime};