CacheKeyPolicy.fromJson constructor
CacheKeyPolicy.fromJson(
- Map json_
Implementation
CacheKeyPolicy.fromJson(core.Map json_)
: this(
includeHost: json_.containsKey('includeHost')
? json_['includeHost'] as core.bool
: null,
includeHttpHeaders: json_.containsKey('includeHttpHeaders')
? (json_['includeHttpHeaders'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
includeNamedCookies: json_.containsKey('includeNamedCookies')
? (json_['includeNamedCookies'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
includeProtocol: json_.containsKey('includeProtocol')
? json_['includeProtocol'] as core.bool
: null,
includeQueryString: json_.containsKey('includeQueryString')
? json_['includeQueryString'] as core.bool
: null,
queryStringBlacklist: json_.containsKey('queryStringBlacklist')
? (json_['queryStringBlacklist'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
queryStringWhitelist: json_.containsKey('queryStringWhitelist')
? (json_['queryStringWhitelist'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);