# LocationIQ
#
# LocationIQ provides flexible enterprise-grade location based solutions. We work with developers, startups and enterprises worldwide serving billions of requests everyday. This page provides an overview of the technical aspects of our API and will help you get started.
#
# The version of the OpenAPI document: 1.1.0
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title Namedetails
#' @description Namedetails Class
#' @format An \code{R6Class} generator object
#' @field name character [optional]
#'
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
Namedetails <- R6::R6Class(
'Namedetails',
public = list(
`name` = NULL,
initialize = function(`name`=NULL, ...){
local.optional.var <- list(...)
if (!is.null(`name`)) {
stopifnot(is.character(`name`), length(`name`) == 1)
self$`name` <- `name`
}
},
toJSON = function() {
NamedetailsObject <- list()
if (!is.null(self$`name`)) {
NamedetailsObject[['name']] <-
self$`name`
}
NamedetailsObject
},
fromJSON = function(NamedetailsJson) {
NamedetailsObject <- jsonlite::fromJSON(NamedetailsJson)
if (!is.null(NamedetailsObject$`name`)) {
self$`name` <- NamedetailsObject$`name`
}
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`name`)) {
sprintf(
'"name":
"%s"
',
self$`name`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(NamedetailsJson) {
NamedetailsObject <- jsonlite::fromJSON(NamedetailsJson)
self$`name` <- NamedetailsObject$`name`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.