Role.RoleSerializer

public static class RoleSerializer implements JsonSerializer<Role>

Implementation of the JsonSerializer interface for the Role class. It represents the role as its ID.

Methods

serialize

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