BackendServiceCdnPolicy.fromJson constructor

BackendServiceCdnPolicy.fromJson(
  1. Map json_
)

Implementation

BackendServiceCdnPolicy.fromJson(core.Map json_)
    : this(
        bypassCacheOnRequestHeaders: (json_['bypassCacheOnRequestHeaders']
                as core.List?)
            ?.map((value) =>
                BackendServiceCdnPolicyBypassCacheOnRequestHeader.fromJson(
                    value as core.Map<core.String, core.dynamic>))
            .toList(),
        cacheKeyPolicy: json_.containsKey('cacheKeyPolicy')
            ? CacheKeyPolicy.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) =>
                BackendServiceCdnPolicyNegativeCachingPolicy.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(),
      );