toJson method

Map<String, dynamic> toJson()

Implementation

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