WsSub constructor

WsSub({
  1. bool? isUnsub,
  2. WsSubBlocks? blocks,
  3. WsSubScript? script,
  4. WsSubTokenId? tokenId,
  5. WsSubLokadId? lokadId,
  6. WsPlugin? plugin,
  7. WsSubTxId? txid,
  8. WsSubTxs? txs,
})

Implementation

factory WsSub({
  $core.bool? isUnsub,
  WsSubBlocks? blocks,
  WsSubScript? script,
  WsSubTokenId? tokenId,
  WsSubLokadId? lokadId,
  WsPlugin? plugin,
  WsSubTxId? txid,
  WsSubTxs? txs,
}) {
  final result = create();
  if (isUnsub != null) result.isUnsub = isUnsub;
  if (blocks != null) result.blocks = blocks;
  if (script != null) result.script = script;
  if (tokenId != null) result.tokenId = tokenId;
  if (lokadId != null) result.lokadId = lokadId;
  if (plugin != null) result.plugin = plugin;
  if (txid != null) result.txid = txid;
  if (txs != null) result.txs = txs;
  return result;
}