HttpRouteRouteRule.fromJson constructor

HttpRouteRouteRule.fromJson(
  1. Map json_
)

Implementation

HttpRouteRouteRule.fromJson(core.Map json_)
    : this(
        action: json_.containsKey('action')
            ? HttpRouteRouteAction.fromJson(
                json_['action'] as core.Map<core.String, core.dynamic>)
            : null,
        matches: json_.containsKey('matches')
            ? (json_['matches'] as core.List)
                .map((value) => HttpRouteRouteMatch.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );