TcpRouteRouteAction.fromJson constructor

TcpRouteRouteAction.fromJson(
  1. Map json_
)

Implementation

TcpRouteRouteAction.fromJson(core.Map json_)
    : this(
        destinations: json_.containsKey('destinations')
            ? (json_['destinations'] as core.List)
                .map((value) => TcpRouteRouteDestination.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        idleTimeout: json_.containsKey('idleTimeout')
            ? json_['idleTimeout'] as core.String
            : null,
        originalDestination: json_.containsKey('originalDestination')
            ? json_['originalDestination'] as core.bool
            : null,
      );