toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final virtualNode = this.virtualNode;
  final weight = this.weight;
  return {
    'virtualNode': virtualNode,
    'weight': weight,
  };
}