code: @Override
      public JsonElement serialize(Date src, Type typeOfSrc, JsonSerializationContext context) {
          if (src == null) {
              return JsonNull.INSTANCE;
          } else {
              return new JsonPrimitive(apiClient.formatDatetime(src));
          }
      }
docs: Serialize
  
  @param src Date
  @param typeOfSrc Type
  @param context Json Serialization Context
  @return Json Element