Class LocationShapeDistance

java.lang.Object
io.voucherify.client.model.LocationShapeDistance

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LocationShapeDistance extends Object
Defines the parameters for the circle.
  • Field Details

  • Constructor Details

    • LocationShapeDistance

      public LocationShapeDistance()
  • Method Details

    • center

      public LocationShapeDistance center(String center)
    • getCenter

      @Nullable public String getCenter()
      Center of the circle identified by GPS coordinates in decimal degrees.
      Returns:
      center
    • setCenter

      public void setCenter(String center)
    • radius

      public LocationShapeDistance radius(String radius)
    • getRadius

      @Nullable public String getRadius()
      Defines the radius of the circle.
      Returns:
      radius
    • setRadius

      public void setRadius(String radius)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static LocationShapeDistance fromJson(String jsonString) throws IOException
      Create an instance of LocationShapeDistance given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of LocationShapeDistance
      Throws:
      IOException - if the JSON string is invalid with respect to LocationShapeDistance
    • toJson

      public String toJson()
      Convert an instance of LocationShapeDistance to an JSON string
      Returns:
      JSON string