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