WeightedTarget.fromJson constructor

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

Implementation

factory WeightedTarget.fromJson(Map<String, dynamic> json) {
  return WeightedTarget(
    virtualNode: json['virtualNode'] as String?,
    weight: json['weight'] as int?,
  );
}