toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'name': name,
'pausedState': pausedState,
'playState': playState,
'playbackRate': playbackRate,
'startTime': startTime,
'currentTime': currentTime,
'type': type,
if (source != null) 'source': source!.toJson(),
if (cssId != null) 'cssId': cssId,
if (viewOrScrollTimeline != null)
'viewOrScrollTimeline': viewOrScrollTimeline!.toJson(),
};
}