toJson method

Map<String, dynamic> toJson()

Implementation

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