toJson method
Must include path; the rest is whatever the plugin needs.
Implementation
@override
Map<String, Object?> toJson() => {
...super.toJson(),
if (directory != null) 'directory': directory,
if (languages != null) 'languages': languages,
if (captureScale != null) 'captureScale': captureScale,
if (time case var time?) 'time': time.name,
if (time case ScenarioTimeReal(:var animations)) 'animations': animations,
};