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