toJson method

Map<String, dynamic> toJson()

Implementation

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