core.Map<core.String, core.dynamic> toJson() => { if (scriptPath != null) 'scriptPath': scriptPath!, };