Interface JsonSerializable

All Known Implementing Classes:
Circle, CustomLayer, Ellipse, Fill, Icon, Layer, Marker, MultiPolygon, MultiPolyline, Option, Options, PlayersLayer, Point, Polygon, Polyline, Popup, Rectangle, SimpleLayer, SpawnLayer, Stroke, Tooltip, Vector, WorldBorderLayer, WorldLayer

public interface JsonSerializable
Represents an object that can be serialized into a json element.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull com.google.gson.JsonElement
    Jsonify this object.
  • Method Details

    • toJson

      @NotNull @NotNull com.google.gson.JsonElement toJson()
      Jsonify this object.
      Returns:
      object as json element