toJson method
Implementation
Map<String, dynamic> toJson() => {
'type': kType,
if (targetStableId != null) 'target_stable_id': targetStableId,
if (targetIdentifier != null) 'target_identifier': targetIdentifier,
if (bounds != null) 'bounds': bounds,
if (durationMs != null) 'duration_ms': durationMs,
if (align != null) 'align': align,
if (clear) 'clear': true,
};