write = (value, syrupWriter) => {
    syrupWriter.enterRecord();
    if (labelType === 'selector') {
      syrupWriter.writeSelectorFromString(label);
    } else if (labelType === 'string') {
      syrupWriter.writeString(label);
    } else if (labelType === 'bytestring') {
      syrupWriter.writeBytestring(textEncoder.encode(label));
    }
    writeBody(value, syrupWriter);
    syrupWriter.exitRecord();
  }
@param {any} value
@param {SyrupWriter} syrupWriter