DescribeChain constructor

DescribeChain({
  1. ChainRef? chain,
  2. ChainStatus? status,
  3. Iterable<NodeDetails>? nodes,
  4. Iterable<String>? supportedMethods,
  5. Iterable<String>? excludedMethods,
  6. Iterable<Capabilities>? capabilities,
  7. Iterable<String>? supportedSubscriptions,
})

Implementation

factory DescribeChain({
  $0.ChainRef? chain,
  ChainStatus? status,
  $core.Iterable<NodeDetails>? nodes,
  $core.Iterable<$core.String>? supportedMethods,
  $core.Iterable<$core.String>? excludedMethods,
  $core.Iterable<Capabilities>? capabilities,
  $core.Iterable<$core.String>? supportedSubscriptions,
}) {
  final result = create();
  if (chain != null) result.chain = chain;
  if (status != null) result.status = status;
  if (nodes != null) result.nodes.addAll(nodes);
  if (supportedMethods != null)
    result.supportedMethods.addAll(supportedMethods);
  if (excludedMethods != null) result.excludedMethods.addAll(excludedMethods);
  if (capabilities != null) result.capabilities.addAll(capabilities);
  if (supportedSubscriptions != null)
    result.supportedSubscriptions.addAll(supportedSubscriptions);
  return result;
}