Person.PersonSerializer

public static class PersonSerializer implements JsonSerializer<Person>

Implementation of the JsonSerializer interface for the Person class. It represents the person as its ID.

Methods

serialize

public JsonElement serialize(Person src, Type typeOfSrc, JsonSerializationContext context)