toJson method
Converts the network configuration to a JSON map.
Implementation
Map<String, dynamic> toJson() => {
'listenAddresses': listenAddresses,
'bootstrapPeers': bootstrapPeers,
'maxConnections': maxConnections,
'connectionTimeoutSeconds': connectionTimeout.inSeconds,
'enableNatTraversal': enableNatTraversal,
'enableMDNS': enableMDNS,
'nodeId': nodeId,
'delegatedRoutingEndpoint': delegatedRoutingEndpoint,
};