class UnsupportedTypeError implements CommandError, ComparableByContent<UnsupportedTypeError> {

    private final int typeId;

    public UnsupportedTypeError(int typeId) {
        this.typeId = typeId;
    }

    public int getTypeId() {
        return typeId;
    }

    @Override
    public RuntimeException asException() {
        return new UnsupportedTypeException(typeId);
    }

    @Override
    public boolean equalsByContent(UnsupportedTypeError other) {
        return other.typeId == typeId;
    }

    public static SerializationHandle<UnsupportedTypeError> SERIALIZATION_HANDLE = new SerializationHandle<UnsupportedTypeError>() {
        @Override
        public <S> UnsupportedTypeError deserialize(DeserializationAdapter<S> adapter, S input) throws IOException {
            int formatNumber = adapter.readInt(input);
            Versions.check(formatNumber, v_7_0_0, v_7_0_0);

            int typeId = adapter.readInt(input);
            return new UnsupportedTypeError(typeId);
        }

        @Override
        public <O> void serialize(SerializationAdapter<O> adapter, O output, UnsupportedTypeError error, Version backwardCompatibilityVersion, Scope scope) throws IOException {
            adapter.writeInt(output, v_7_0_0.getNumber());
            adapter.writeInt(output, error.typeId);
        }

        @Override
        public int getTypeId() {
            return 16;
        }

        @Override
        public Class<UnsupportedTypeError> getSerializedType() {
            return (Class) UnsupportedTypeError.class;
        }

        @Override
        public UnsupportedTypeError fromJsonCompatibleSnapshot(Map<String, Object> snapshot) throws IOException {<FILL_FUNCTION_BODY>}

        @Override
        public Map<String, Object> toJsonCompatibleSnapshot(UnsupportedTypeError error, Version backwardCompatibilityVersion, Scope scope) throws IOException {
            Map<String, Object> result = new HashMap<>();
            result.put("version", v_7_0_0.getNumber());
            result.put("typeId", error.typeId);
            return result;
        }

        @Override
        public String getTypeName() {
            return "UnsupportedTypeError";
        }

    };

}

            int formatNumber = readIntValue(snapshot, "version");
            Versions.check(formatNumber, v_7_0_0, v_7_0_0);
            int typeId = readIntValue(snapshot, "typeId");
            return new UnsupportedTypeError(typeId);
        
<no_super_class>