BackendBucketCdnPolicy.fromJson constructor

BackendBucketCdnPolicy.fromJson(
  1. Map json_
)

Implementation

BackendBucketCdnPolicy.fromJson(core.Map json_)
    : this(
        bypassCacheOnRequestHeaders:
            (json_['bypassCacheOnRequestHeaders'] as core.List?)
                ?.map((value) =>
                    BackendBucketCdnPolicyBypassCacheOnRequestHeader.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList(),
        cacheKeyPolicy: json_.containsKey('cacheKeyPolicy')
            ? BackendBucketCdnPolicyCacheKeyPolicy.fromJson(
                json_['cacheKeyPolicy']
                    as core.Map<core.String, core.dynamic>)
            : null,
        cacheMode: json_['cacheMode'] as core.String?,
        clientTtl: json_['clientTtl'] as core.int?,
        defaultTtl: json_['defaultTtl'] as core.int?,
        maxTtl: json_['maxTtl'] as core.int?,
        negativeCaching: json_['negativeCaching'] as core.bool?,
        negativeCachingPolicy: (json_['negativeCachingPolicy'] as core.List?)
            ?.map((value) =>
                BackendBucketCdnPolicyNegativeCachingPolicy.fromJson(
                    value as core.Map<core.String, core.dynamic>))
            .toList(),
        requestCoalescing: json_['requestCoalescing'] as core.bool?,
        serveWhileStale: json_['serveWhileStale'] as core.int?,
        signedUrlCacheMaxAgeSec:
            json_['signedUrlCacheMaxAgeSec'] as core.String?,
        signedUrlKeyNames: (json_['signedUrlKeyNames'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
      );