toMap method

Map<String, dynamic> toMap()

Converts instance to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    "accessibilityIgnoresInvertColors": accessibilityIgnoresInvertColors,
    "algorithmicDarkeningAllowed": algorithmicDarkeningAllowed,
    "allowBackgroundAudioPlaying": allowBackgroundAudioPlaying,
    "allowContentAccess": allowContentAccess,
    "allowFileAccess": allowFileAccess,
    "allowFileAccessFromFileURLs": allowFileAccessFromFileURLs,
    "allowUniversalAccessFromFileURLs": allowUniversalAccessFromFileURLs,
    "allowingReadAccessTo": allowingReadAccessTo?.toString(),
    "allowsAirPlayForMediaPlayback": allowsAirPlayForMediaPlayback,
    "allowsBackForwardNavigationGestures":
        allowsBackForwardNavigationGestures,
    "allowsInlineMediaPlayback": allowsInlineMediaPlayback,
    "allowsLinkPreview": allowsLinkPreview,
    "allowsPictureInPictureMediaPlayback":
        allowsPictureInPictureMediaPlayback,
    "alwaysBounceHorizontal": alwaysBounceHorizontal,
    "alwaysBounceVertical": alwaysBounceVertical,
    "appCachePath": appCachePath,
    "applePayAPIEnabled": applePayAPIEnabled,
    "applicationNameForUserAgent": applicationNameForUserAgent,
    "automaticallyAdjustsScrollIndicatorInsets":
        automaticallyAdjustsScrollIndicatorInsets,
    "blockNetworkImage": blockNetworkImage,
    "blockNetworkLoads": blockNetworkLoads,
    "builtInZoomControls": builtInZoomControls,
    "cacheEnabled": cacheEnabled,
    "cacheMode": cacheMode?.toNativeValue(),
    "contentBlockers": contentBlockers?.map((e) => e.toMap()).toList(),
    "contentInsetAdjustmentBehavior":
        contentInsetAdjustmentBehavior?.toNativeValue(),
    "cursiveFontFamily": cursiveFontFamily,
    "dataDetectorTypes":
        dataDetectorTypes?.map((e) => e.toNativeValue()).toList(),
    "databaseEnabled": databaseEnabled,
    "decelerationRate": decelerationRate?.toNativeValue(),
    "defaultFixedFontSize": defaultFixedFontSize,
    "defaultFontSize": defaultFontSize,
    "defaultTextEncodingName": defaultTextEncodingName,
    "defaultVideoPoster": defaultVideoPoster,
    "disableContextMenu": disableContextMenu,
    "disableDefaultErrorPage": disableDefaultErrorPage,
    "disableHorizontalScroll": disableHorizontalScroll,
    "disableInputAccessoryView": disableInputAccessoryView,
    "disableLongPressContextMenuOnLinks": disableLongPressContextMenuOnLinks,
    "disableVerticalScroll": disableVerticalScroll,
    "disabledActionModeMenuItems":
        disabledActionModeMenuItems?.toNativeValue(),
    "disallowOverScroll": disallowOverScroll,
    "displayZoomControls": displayZoomControls,
    "domStorageEnabled": domStorageEnabled,
    "enableViewportScale": enableViewportScale,
    "enterpriseAuthenticationAppLinkPolicyEnabled":
        enterpriseAuthenticationAppLinkPolicyEnabled,
    "fantasyFontFamily": fantasyFontFamily,
    "fixedFontFamily": fixedFontFamily,
    "forceDark": forceDark?.toNativeValue(),
    "forceDarkStrategy": forceDarkStrategy?.toNativeValue(),
    "geolocationEnabled": geolocationEnabled,
    "hardwareAcceleration": hardwareAcceleration,
    "horizontalScrollBarEnabled": horizontalScrollBarEnabled,
    "horizontalScrollbarThumbColor": horizontalScrollbarThumbColor?.toHex(),
    "horizontalScrollbarTrackColor": horizontalScrollbarTrackColor?.toHex(),
    "iframeAllow": iframeAllow,
    "iframeAllowFullscreen": iframeAllowFullscreen,
    "iframeCsp": iframeCsp,
    "iframeName": iframeName,
    "iframeReferrerPolicy": iframeReferrerPolicy?.toNativeValue(),
    "iframeSandbox": iframeSandbox?.map((e) => e.toNativeValue()).toList(),
    "ignoresViewportScaleLimits": ignoresViewportScaleLimits,
    "incognito": incognito,
    "initialScale": initialScale,
    "interceptOnlyAsyncAjaxRequests": interceptOnlyAsyncAjaxRequests,
    "isDirectionalLockEnabled": isDirectionalLockEnabled,
    "isElementFullscreenEnabled": isElementFullscreenEnabled,
    "isFindInteractionEnabled": isFindInteractionEnabled,
    "isFraudulentWebsiteWarningEnabled": isFraudulentWebsiteWarningEnabled,
    "isInspectable": isInspectable,
    "isPagingEnabled": isPagingEnabled,
    "isSiteSpecificQuirksModeEnabled": isSiteSpecificQuirksModeEnabled,
    "isTextInteractionEnabled": isTextInteractionEnabled,
    "javaScriptCanOpenWindowsAutomatically":
        javaScriptCanOpenWindowsAutomatically,
    "javaScriptEnabled": javaScriptEnabled,
    "layoutAlgorithm": layoutAlgorithm?.toNativeValue(),
    "limitsNavigationsToAppBoundDomains": limitsNavigationsToAppBoundDomains,
    "loadWithOverviewMode": loadWithOverviewMode,
    "loadsImagesAutomatically": loadsImagesAutomatically,
    "maximumViewportInset": maximumViewportInset?.toMap(),
    "maximumZoomScale": maximumZoomScale,
    "mediaPlaybackRequiresUserGesture": mediaPlaybackRequiresUserGesture,
    "mediaType": mediaType,
    "minimumFontSize": minimumFontSize,
    "minimumLogicalFontSize": minimumLogicalFontSize,
    "minimumViewportInset": minimumViewportInset?.toMap(),
    "minimumZoomScale": minimumZoomScale,
    "mixedContentMode": mixedContentMode?.toNativeValue(),
    "needInitialFocus": needInitialFocus,
    "networkAvailable": networkAvailable,
    "offscreenPreRaster": offscreenPreRaster,
    "overScrollMode": overScrollMode?.toNativeValue(),
    "pageZoom": pageZoom,
    "preferredContentMode": preferredContentMode?.toNativeValue(),
    "regexToCancelSubFramesLoading": regexToCancelSubFramesLoading,
    "rendererPriorityPolicy": rendererPriorityPolicy?.toMap(),
    "requestedWithHeaderOriginAllowList":
        requestedWithHeaderOriginAllowList?.toList(),
    "resourceCustomSchemes": resourceCustomSchemes,
    "safeBrowsingEnabled": safeBrowsingEnabled,
    "sansSerifFontFamily": sansSerifFontFamily,
    "saveFormData": saveFormData,
    "scrollBarDefaultDelayBeforeFade": scrollBarDefaultDelayBeforeFade,
    "scrollBarFadeDuration": scrollBarFadeDuration,
    "scrollBarStyle": scrollBarStyle?.toNativeValue(),
    "scrollbarFadingEnabled": scrollbarFadingEnabled,
    "scrollsToTop": scrollsToTop,
    "selectionGranularity": selectionGranularity?.toNativeValue(),
    "serifFontFamily": serifFontFamily,
    "sharedCookiesEnabled": sharedCookiesEnabled,
    "shouldPrintBackgrounds": shouldPrintBackgrounds,
    "standardFontFamily": standardFontFamily,
    "supportMultipleWindows": supportMultipleWindows,
    "supportZoom": supportZoom,
    "suppressesIncrementalRendering": suppressesIncrementalRendering,
    "textZoom": textZoom,
    "thirdPartyCookiesEnabled": thirdPartyCookiesEnabled,
    "transparentBackground": transparentBackground,
    "underPageBackgroundColor": underPageBackgroundColor?.toHex(),
    "upgradeKnownHostsToHTTPS": upgradeKnownHostsToHTTPS,
    "useHybridComposition": useHybridComposition,
    "useOnDownloadStart": useOnDownloadStart,
    "useOnLoadResource": useOnLoadResource,
    "useOnNavigationResponse": useOnNavigationResponse,
    "useOnRenderProcessGone": useOnRenderProcessGone,
    "useShouldInterceptAjaxRequest": useShouldInterceptAjaxRequest,
    "useShouldInterceptFetchRequest": useShouldInterceptFetchRequest,
    "useShouldInterceptRequest": useShouldInterceptRequest,
    "useShouldOverrideUrlLoading": useShouldOverrideUrlLoading,
    "useWideViewPort": useWideViewPort,
    "userAgent": userAgent,
    "verticalScrollBarEnabled": verticalScrollBarEnabled,
    "verticalScrollbarPosition": verticalScrollbarPosition?.toNativeValue(),
    "verticalScrollbarThumbColor": verticalScrollbarThumbColor?.toHex(),
    "verticalScrollbarTrackColor": verticalScrollbarTrackColor?.toHex(),
    "webViewAssetLoader": webViewAssetLoader?.toMap(),
  };
}