HttpRouteRule.fromJson constructor

HttpRouteRule.fromJson(
  1. Map json_
)

Implementation

HttpRouteRule.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        headerAction: json_.containsKey('headerAction')
            ? HttpHeaderAction.fromJson(
                json_['headerAction'] as core.Map<core.String, core.dynamic>)
            : null,
        matchRules: json_.containsKey('matchRules')
            ? (json_['matchRules'] as core.List)
                .map((value) => HttpRouteRuleMatch.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        priority: json_.containsKey('priority')
            ? json_['priority'] as core.int
            : null,
        routeAction: json_.containsKey('routeAction')
            ? HttpRouteAction.fromJson(
                json_['routeAction'] as core.Map<core.String, core.dynamic>)
            : null,
        service: json_.containsKey('service')
            ? json_['service'] as core.String
            : null,
        urlRedirect: json_.containsKey('urlRedirect')
            ? HttpRedirectAction.fromJson(
                json_['urlRedirect'] as core.Map<core.String, core.dynamic>)
            : null,
      );