toArgMap method
Implementation
Map<String, Object?> toArgMap() => {
if (cacheMode != null) 'cache_mode': cacheMode!.terraformValue,
if (clientTtl != null) 'client_ttl': clientTtl!.toTfJson(),
if (defaultTtl != null) 'default_ttl': defaultTtl!.toTfJson(),
if (maxTtl != null) 'max_ttl': maxTtl!.toTfJson(),
if (negativeCaching != null)
'negative_caching': negativeCaching!.toTfJson(),
if (requestCoalescing != null)
'request_coalescing': requestCoalescing!.toTfJson(),
if (serveWhileStale != null)
'serve_while_stale': serveWhileStale!.toTfJson(),
if (signedUrlCacheMaxAgeSec != null)
'signed_url_cache_max_age_sec': signedUrlCacheMaxAgeSec!.toTfJson(),
if (bypassCacheOnRequestHeaders != null)
'bypass_cache_on_request_headers': bypassCacheOnRequestHeaders!
.map((h) => h.toArgMap())
.toList(),
if (cacheKeyPolicy != null)
'cache_key_policy': [cacheKeyPolicy!.toArgMap()],
if (negativeCachingPolicy != null)
'negative_caching_policy': negativeCachingPolicy!
.map((p) => p.toArgMap())
.toList(),
};