GetNodeInfoResponse constructor

GetNodeInfoResponse({
  1. String? moniker,
  2. String? agent,
  3. String? peerId,
  4. Int64? startedAt,
  5. String? reachability,
  6. int? services,
  7. String? servicesNames,
  8. Iterable<String>? localAddrs,
  9. Iterable<String>? protocols,
  10. double? clockOffset,
  11. ConnectionInfo? connectionInfo,
  12. Iterable<ZMQPublisherInfo>? zmqPublishers,
})

Implementation

factory GetNodeInfoResponse({
  $core.String? moniker,
  $core.String? agent,
  $core.String? peerId,
  $fixnum.Int64? startedAt,
  $core.String? reachability,
  $core.int? services,
  $core.String? servicesNames,
  $core.Iterable<$core.String>? localAddrs,
  $core.Iterable<$core.String>? protocols,
  $core.double? clockOffset,
  ConnectionInfo? connectionInfo,
  $core.Iterable<ZMQPublisherInfo>? zmqPublishers,
}) {
  final _result = create();
  if (moniker != null) {
    _result.moniker = moniker;
  }
  if (agent != null) {
    _result.agent = agent;
  }
  if (peerId != null) {
    _result.peerId = peerId;
  }
  if (startedAt != null) {
    _result.startedAt = startedAt;
  }
  if (reachability != null) {
    _result.reachability = reachability;
  }
  if (services != null) {
    _result.services = services;
  }
  if (servicesNames != null) {
    _result.servicesNames = servicesNames;
  }
  if (localAddrs != null) {
    _result.localAddrs.addAll(localAddrs);
  }
  if (protocols != null) {
    _result.protocols.addAll(protocols);
  }
  if (clockOffset != null) {
    _result.clockOffset = clockOffset;
  }
  if (connectionInfo != null) {
    _result.connectionInfo = connectionInfo;
  }
  if (zmqPublishers != null) {
    _result.zmqPublishers.addAll(zmqPublishers);
  }
  return _result;
}