Location.LocationSerializer

public static class LocationSerializer implements JsonSerializer<Location>

Implementation of the JsonSerializer interface for the Location class. It represents the location as its ID.

Methods

serialize

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