UrlMap.fromJson constructor

UrlMap.fromJson(
  1. Map json_
)

Implementation

UrlMap.fromJson(core.Map json_)
    : this(
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        defaultRouteAction: json_.containsKey('defaultRouteAction')
            ? HttpRouteAction.fromJson(json_['defaultRouteAction']
                as core.Map<core.String, core.dynamic>)
            : null,
        defaultService: json_.containsKey('defaultService')
            ? json_['defaultService'] as core.String
            : null,
        defaultUrlRedirect: json_.containsKey('defaultUrlRedirect')
            ? HttpRedirectAction.fromJson(json_['defaultUrlRedirect']
                as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        headerAction: json_.containsKey('headerAction')
            ? HttpHeaderAction.fromJson(
                json_['headerAction'] as core.Map<core.String, core.dynamic>)
            : null,
        hostRules: json_.containsKey('hostRules')
            ? (json_['hostRules'] as core.List)
                .map((value) => HostRule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        pathMatchers: json_.containsKey('pathMatchers')
            ? (json_['pathMatchers'] as core.List)
                .map((value) => PathMatcher.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        tests: json_.containsKey('tests')
            ? (json_['tests'] as core.List)
                .map((value) => UrlMapTest.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );