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