TcpRouteAction.fromJson constructor

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

Implementation

factory TcpRouteAction.fromJson(Map<String, dynamic> json) {
  return TcpRouteAction(
    weightedTargets: (json['weightedTargets'] as List)
        .whereNotNull()
        .map((e) => WeightedTarget.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}