WsMsg constructor

WsMsg({
  1. Error? error,
  2. MsgBlock? block,
  3. MsgTx? tx,
})

Implementation

factory WsMsg({
  Error? error,
  MsgBlock? block,
  MsgTx? tx,
}) {
  final result = create();
  if (error != null) result.error = error;
  if (block != null) result.block = block;
  if (tx != null) result.tx = tx;
  return result;
}