ContextRule.fromJson constructor
ContextRule.fromJson(
- Map json_
Implementation
ContextRule.fromJson(core.Map json_)
: this(
allowedRequestExtensions:
json_.containsKey('allowedRequestExtensions')
? (json_['allowedRequestExtensions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
allowedResponseExtensions:
json_.containsKey('allowedResponseExtensions')
? (json_['allowedResponseExtensions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
provided: json_.containsKey('provided')
? (json_['provided'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
requested: json_.containsKey('requested')
? (json_['requested'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
selector: json_.containsKey('selector')
? json_['selector'] as core.String
: null,
);