PathRule.fromJson constructor

PathRule.fromJson(
  1. Map json_
)

Implementation

PathRule.fromJson(core.Map json_)
    : this(
        paths: json_.containsKey('paths')
            ? (json_['paths'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : 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,
      );