toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  return {
    "default": defaultEnvironment?._toJson(),
    "development": developmentEnvironment?._toJson(),
    "production": productionEnvironment?._toJson(),
    "site": site?.name,
    "inProduction": inProduction,
    "urlAllowList": urlAllowList,
    "urlAllowListScopeOpenUrl": urlAllowListScopeOpenUrl,
    "urlAllowListScopeJavaScriptInterface":
        urlAllowListScopeJavaScriptInterface,
    "isChannelCreationDelayEnabled": isChannelCreationDelayEnabled,
    "initialConfigUrl": initialConfigUrl,
    "enabledFeatures": enabledFeatures == null
        ? null
        : AirshipUtils.toFeatureStringList(enabledFeatures!),
    "isChannelCaptureEnabled": isChannelCaptureEnabled,
    "autoPauseInAppAutomationOnLaunch": autoPauseInAppAutomationOnLaunch,
    "ios": iosConfig?._toJson(),
    "android": androidConfig?._toJson(),
  };
}