class Pinnacle::InboundLocationMessageCoordinates

def self.from_json(json_object:)

Returns:
  • (Pinnacle::InboundLocationMessageCoordinates) -

Parameters:
  • json_object (String) --
def self.from_json(json_object:)
  struct = JSON.parse(json_object, object_class: OpenStruct)
  parsed_json = JSON.parse(json_object)
  lat = parsed_json["lat"]
  lng = parsed_json["lng"]
  new(
    lat: lat,
    lng: lng,
    additional_properties: struct
  )
end

def self.validate_raw(obj:)

Returns:
  • (Void) -

Parameters:
  • obj (Object) --
def self.validate_raw(obj:)
  obj.lat.is_a?(Float) != false || raise("Passed value for field obj.lat is not the expected type, validation failed.")
  obj.lng.is_a?(Float) != false || raise("Passed value for field obj.lng is not the expected type, validation failed.")
end

def initialize(lat:, lng:, additional_properties: nil)

Returns:
  • (Pinnacle::InboundLocationMessageCoordinates) -

Parameters:
  • additional_properties (OpenStruct) -- Additional properties unmapped to the current class definition
  • lng (Float) --
  • lat (Float) --
def initialize(lat:, lng:, additional_properties: nil)
  @lat = lat
  @lng = lng
  @additional_properties = additional_properties
  @_field_set = { "lat": lat, "lng": lng }
end

def to_json(*_args)

Returns:
  • (String) -
def to_json(*_args)
  @_field_set&.to_json
end