All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.intercom.api.CustomAttributeSerializer Maven / Gradle / Ivy

The newest version!
package io.intercom.api;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;

import java.io.IOException;

class CustomAttributeSerializer extends StdSerializer {

    public CustomAttributeSerializer() {
        super(CustomAttribute.class);
    }

    @Override
    public void serialize(CustomAttribute value, JsonGenerator jgen, SerializerProvider provider)
        throws IOException {
        // the field name has already been written
        jgen.writeObject(value.getValue());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy