decode static method

Implementation

static XdrContractEvent decode(XdrDataInputStream stream) {
  XdrExtensionPoint ext = XdrExtensionPoint.decode(stream);
  XdrHash? hash;
  int hashPresent = stream.readInt();
  if (hashPresent != 0) {
    hash = XdrHash.decode(stream);
  }

  XdrContractEventType type = XdrContractEventType.decode(stream);
  XdrContractEventBody body = XdrContractEventBody.decode(stream);
  return XdrContractEvent(ext, hash, type, body);
}