class TileSizeSaver implements ElementTypeAdapter<TileSize> {

  @Override
  public JsonElement serialize(TileSize src, JsonSerializationContext context) {
    JsonArray array = new JsonArray(2);
    array.add(src.getWidth());
    array.add(src.getHeight());
    return array;
  }

}