ImageSettings.fromJson constructor

ImageSettings.fromJson(
  1. Map json_
)

Implementation

ImageSettings.fromJson(core.Map json_)
    : this(
        backgroundImageUrl: json_.containsKey('backgroundImageUrl')
            ? LocalizedProperty.fromJson(json_['backgroundImageUrl']
                as core.Map<core.String, core.dynamic>)
            : null,
        bannerExternalUrl: json_.containsKey('bannerExternalUrl')
            ? json_['bannerExternalUrl'] as core.String
            : null,
        bannerImageUrl: json_.containsKey('bannerImageUrl')
            ? json_['bannerImageUrl'] as core.String
            : null,
        bannerMobileExtraHdImageUrl:
            json_.containsKey('bannerMobileExtraHdImageUrl')
                ? json_['bannerMobileExtraHdImageUrl'] as core.String
                : null,
        bannerMobileHdImageUrl: json_.containsKey('bannerMobileHdImageUrl')
            ? json_['bannerMobileHdImageUrl'] as core.String
            : null,
        bannerMobileImageUrl: json_.containsKey('bannerMobileImageUrl')
            ? json_['bannerMobileImageUrl'] as core.String
            : null,
        bannerMobileLowImageUrl: json_.containsKey('bannerMobileLowImageUrl')
            ? json_['bannerMobileLowImageUrl'] as core.String
            : null,
        bannerMobileMediumHdImageUrl:
            json_.containsKey('bannerMobileMediumHdImageUrl')
                ? json_['bannerMobileMediumHdImageUrl'] as core.String
                : null,
        bannerTabletExtraHdImageUrl:
            json_.containsKey('bannerTabletExtraHdImageUrl')
                ? json_['bannerTabletExtraHdImageUrl'] as core.String
                : null,
        bannerTabletHdImageUrl: json_.containsKey('bannerTabletHdImageUrl')
            ? json_['bannerTabletHdImageUrl'] as core.String
            : null,
        bannerTabletImageUrl: json_.containsKey('bannerTabletImageUrl')
            ? json_['bannerTabletImageUrl'] as core.String
            : null,
        bannerTabletLowImageUrl: json_.containsKey('bannerTabletLowImageUrl')
            ? json_['bannerTabletLowImageUrl'] as core.String
            : null,
        bannerTvHighImageUrl: json_.containsKey('bannerTvHighImageUrl')
            ? json_['bannerTvHighImageUrl'] as core.String
            : null,
        bannerTvImageUrl: json_.containsKey('bannerTvImageUrl')
            ? json_['bannerTvImageUrl'] as core.String
            : null,
        bannerTvLowImageUrl: json_.containsKey('bannerTvLowImageUrl')
            ? json_['bannerTvLowImageUrl'] as core.String
            : null,
        bannerTvMediumImageUrl: json_.containsKey('bannerTvMediumImageUrl')
            ? json_['bannerTvMediumImageUrl'] as core.String
            : null,
        largeBrandedBannerImageImapScript:
            json_.containsKey('largeBrandedBannerImageImapScript')
                ? LocalizedProperty.fromJson(
                    json_['largeBrandedBannerImageImapScript']
                        as core.Map<core.String, core.dynamic>)
                : null,
        largeBrandedBannerImageUrl: json_
                .containsKey('largeBrandedBannerImageUrl')
            ? LocalizedProperty.fromJson(json_['largeBrandedBannerImageUrl']
                as core.Map<core.String, core.dynamic>)
            : null,
        smallBrandedBannerImageImapScript:
            json_.containsKey('smallBrandedBannerImageImapScript')
                ? LocalizedProperty.fromJson(
                    json_['smallBrandedBannerImageImapScript']
                        as core.Map<core.String, core.dynamic>)
                : null,
        smallBrandedBannerImageUrl: json_
                .containsKey('smallBrandedBannerImageUrl')
            ? LocalizedProperty.fromJson(json_['smallBrandedBannerImageUrl']
                as core.Map<core.String, core.dynamic>)
            : null,
        trackingImageUrl: json_.containsKey('trackingImageUrl')
            ? json_['trackingImageUrl'] as core.String
            : null,
        watchIconImageUrl: json_.containsKey('watchIconImageUrl')
            ? json_['watchIconImageUrl'] as core.String
            : null,
      );