serialize

JsonElement serialize(T src, Type typeOfSrc, JsonSerializationContext context)