BackendServiceCdnPolicy.fromJson constructor
BackendServiceCdnPolicy.fromJson(
- Map json_
Implementation
BackendServiceCdnPolicy.fromJson(core.Map json_)
: this(
bypassCacheOnRequestHeaders:
json_.containsKey('bypassCacheOnRequestHeaders')
? (json_['bypassCacheOnRequestHeaders'] as core.List)
.map((value) =>
BackendServiceCdnPolicyBypassCacheOnRequestHeader
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
cacheKeyPolicy: json_.containsKey('cacheKeyPolicy')
? CacheKeyPolicy.fromJson(json_['cacheKeyPolicy']
as core.Map<core.String, core.dynamic>)
: null,
cacheMode: json_.containsKey('cacheMode')
? json_['cacheMode'] as core.String
: null,
clientTtl: json_.containsKey('clientTtl')
? json_['clientTtl'] as core.int
: null,
defaultTtl: json_.containsKey('defaultTtl')
? json_['defaultTtl'] as core.int
: null,
maxTtl:
json_.containsKey('maxTtl') ? json_['maxTtl'] as core.int : null,
negativeCaching: json_.containsKey('negativeCaching')
? json_['negativeCaching'] as core.bool
: null,
negativeCachingPolicy: json_.containsKey('negativeCachingPolicy')
? (json_['negativeCachingPolicy'] as core.List)
.map((value) =>
BackendServiceCdnPolicyNegativeCachingPolicy.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
requestCoalescing: json_.containsKey('requestCoalescing')
? json_['requestCoalescing'] as core.bool
: null,
serveWhileStale: json_.containsKey('serveWhileStale')
? json_['serveWhileStale'] as core.int
: null,
signedUrlCacheMaxAgeSec: json_.containsKey('signedUrlCacheMaxAgeSec')
? json_['signedUrlCacheMaxAgeSec'] as core.String
: null,
signedUrlKeyNames: json_.containsKey('signedUrlKeyNames')
? (json_['signedUrlKeyNames'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);