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