org.mockserver.dashboard.serializers.DescriptionSerializer Maven / Gradle / Ivy
package org.mockserver.dashboard.serializers;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
import java.io.IOException;
public class DescriptionSerializer extends StdSerializer {
public DescriptionSerializer() {
super(Description.class);
}
@Override
public void serialize(Description value, JsonGenerator gen, SerializerProvider provider) throws IOException {
gen.writeObject(value.toObject());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy