TcpRoute.fromJson constructor

TcpRoute.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TcpRoute.fromJson(Map<String, dynamic> json) {
  return TcpRoute(
    action: TcpRouteAction.fromJson(json['action'] as Map<String, dynamic>),
    timeout: json['timeout'] != null
        ? TcpTimeout.fromJson(json['timeout'] as Map<String, dynamic>)
        : null,
  );
}