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