TcpRouteRouteRule.fromJson constructor

TcpRouteRouteRule.fromJson(
  1. Map json_
)

Implementation

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