# sunagriAPI
#
# An instance of OpenSILEX WebService
#
# OpenAPI spec version: 3.3.0
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' Ask Class
#'
#' @field exist
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
Ask <- R6::R6Class(
'Ask',
public = list(
`exist` = NULL,
initialize = function(`exist`){
if (!missing(`exist`)) {
self$`exist` <- `exist`
}
},
toJSON = function() {
AskObject <- list()
if (!is.null(self$`exist`)) {
AskObject[['exist']] <- self$`exist`
}
AskObject
},
fromJSON = function(AskJson) {
AskObject <- jsonlite::fromJSON(AskJson)
if (!is.null(AskObject$`exist`)) {
self$`exist` <- AskObject$`exist`
}
},
fromJSONObject = function(AskObject) {
if (!is.null(AskObject$`exist`)) {
self$`exist` <- AskObject$`exist`
}
},
toJSONString = function() {
sprintf(
'{
"exist": %s
}',
jsonlite::toJSON(self$`exist`,auto_unbox=TRUE, null = "null")
)
},
fromJSONString = function(AskJson) {
AskObject <- jsonlite::fromJSON(AskJson)
self$`exist` <- AskObject$`exist`
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.