class SnackSerializer<T> implements Serializer<T> {
    Options options = Options.serialize().add(Feature.EnumUsingName);
    @Override
    public byte[] serialize(T t) throws SerializationException {<FILL_FUNCTION_BODY>}
}

        ONode oNode = ONode.loadObj(t, options);
        oNode.remove(options.getTypePropertyName());

        String json = oNode.toJson();
        return json.getBytes(StandardCharsets.UTF_8);
    
<no_super_class>