DefaultNodeInfo constructor

DefaultNodeInfo({
  1. ProtocolVersion? protocolVersion,
  2. String? defaultNodeId,
  3. String? listenAddr,
  4. String? network,
  5. String? version,
  6. List<int>? channels,
  7. String? moniker,
  8. DefaultNodeInfoOther? other,
})

Implementation

factory DefaultNodeInfo({
  ProtocolVersion? protocolVersion,
  $core.String? defaultNodeId,
  $core.String? listenAddr,
  $core.String? network,
  $core.String? version,
  $core.List<$core.int>? channels,
  $core.String? moniker,
  DefaultNodeInfoOther? other,
}) {
  final _result = create();
  if (protocolVersion != null) {
    _result.protocolVersion = protocolVersion;
  }
  if (defaultNodeId != null) {
    _result.defaultNodeId = defaultNodeId;
  }
  if (listenAddr != null) {
    _result.listenAddr = listenAddr;
  }
  if (network != null) {
    _result.network = network;
  }
  if (version != null) {
    _result.version = version;
  }
  if (channels != null) {
    _result.channels = channels;
  }
  if (moniker != null) {
    _result.moniker = moniker;
  }
  if (other != null) {
    _result.other = other;
  }
  return _result;
}