DescribeChain constructor
DescribeChain({
- ChainRef? chain,
- ChainStatus? status,
- Iterable<
NodeDetails> ? nodes, - Iterable<
String> ? supportedMethods, - Iterable<
String> ? excludedMethods, - Iterable<
Capabilities> ? capabilities, - 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;
}