public JsonElement a(UserCacheEntry usercacheentry, Type type, JsonSerializationContext jsonserializationcontext) { JsonObject jsonobject = new JsonObject(); jsonobject.addProperty("name", usercacheentry.a().getName()); UUID uuid = usercacheentry.a().getId(); jsonobject.addProperty("uuid", uuid == null ? "" : uuid.toString()); jsonobject.addProperty("expiresOn", UserCache.a.format(usercacheentry.b())); return jsonobject; }
public JsonElement a(JsonListEntry jsonlistentry, Type type, JsonSerializationContext jsonserializationcontext) { JsonObject jsonobject = new JsonObject(); jsonlistentry.a(jsonobject); return jsonobject; }
public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) { return this.a((JsonListEntry) object, type, jsonserializationcontext); }
public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) { return this.a((UserCacheEntry) object, type, jsonserializationcontext); }