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