HttpRule.fromJson constructor
HttpRule.fromJson(
- Map json_
Implementation
HttpRule.fromJson(core.Map json_)
: this(
additionalBindings: json_.containsKey('additionalBindings')
? (json_['additionalBindings'] as core.List)
.map((value) => HttpRule.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
body: json_.containsKey('body') ? json_['body'] as core.String : null,
custom: json_.containsKey('custom')
? CustomHttpPattern.fromJson(
json_['custom'] as core.Map<core.String, core.dynamic>)
: null,
delete: json_.containsKey('delete')
? json_['delete'] as core.String
: null,
get: json_.containsKey('get') ? json_['get'] as core.String : null,
patch:
json_.containsKey('patch') ? json_['patch'] as core.String : null,
post: json_.containsKey('post') ? json_['post'] as core.String : null,
put: json_.containsKey('put') ? json_['put'] as core.String : null,
responseBody: json_.containsKey('responseBody')
? json_['responseBody'] as core.String
: null,
selector: json_.containsKey('selector')
? json_['selector'] as core.String
: null,
);