VirtualNodeSpec.fromJson constructor
VirtualNodeSpec.fromJson(
- Map<String, dynamic> json
)
Implementation
factory VirtualNodeSpec.fromJson(Map<String, dynamic> json) {
return VirtualNodeSpec(
backendDefaults: json['backendDefaults'] != null
? BackendDefaults.fromJson(
json['backendDefaults'] as Map<String, dynamic>)
: null,
backends: (json['backends'] as List?)
?.whereNotNull()
.map((e) => Backend.fromJson(e as Map<String, dynamic>))
.toList(),
listeners: (json['listeners'] as List?)
?.whereNotNull()
.map((e) => Listener.fromJson(e as Map<String, dynamic>))
.toList(),
logging: json['logging'] != null
? Logging.fromJson(json['logging'] as Map<String, dynamic>)
: null,
serviceDiscovery: json['serviceDiscovery'] != null
? ServiceDiscovery.fromJson(
json['serviceDiscovery'] as Map<String, dynamic>)
: null,
);
}