HttpRouteAction.fromJson constructor

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

Implementation

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