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

com.geotab.model.serialization.serdes.SourceSerializer Maven / Gradle / Ivy

package com.geotab.model.serialization.serdes;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.geotab.model.entity.source.Source;
import java.io.IOException;

public class SourceSerializer extends JsonSerializer {

  @Override
  public void serialize(Source source, JsonGenerator jsonGenerator,
      SerializerProvider serializerProvider) throws IOException {
    jsonGenerator.writeString(source.getId().getId());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy