UrlMapTest.fromJson constructor
UrlMapTest.fromJson(
- Map json_
Implementation
UrlMapTest.fromJson(core.Map json_)
: this(
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
expectedOutputUrl: json_.containsKey('expectedOutputUrl')
? json_['expectedOutputUrl'] as core.String
: null,
expectedRedirectResponseCode:
json_.containsKey('expectedRedirectResponseCode')
? json_['expectedRedirectResponseCode'] as core.int
: null,
headers: json_.containsKey('headers')
? (json_['headers'] as core.List)
.map((value) => UrlMapTestHeader.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
host: json_.containsKey('host') ? json_['host'] as core.String : null,
path: json_.containsKey('path') ? json_['path'] as core.String : null,
service: json_.containsKey('service')
? json_['service'] as core.String
: null,
);