# TileDB Storage Platform API
#
# TileDB Storage Platform REST API
#
# The version of the OpenAPI document: 2.2.19
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title ArrayType
#'
#' @description ArrayType Class
#'
#' @format An \code{R6Class} generator object
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
ArrayType <- R6::R6Class(
"ArrayType",
public = list(
initialize = function(...) {
local.optional.var <- list(...)
val <- unlist(local.optional.var)
# MANUAL EDIT AFTER OPENAPI AUTOGEN
.check_openapi_enum("ArrayType", val, .parse_ArrayType())
private$value <- val
},
toJSON = function() {
jsonlite::toJSON(private$value, auto_unbox = TRUE)
},
fromJSON = function(ArrayTypeJson) {
private$value <- jsonlite::fromJSON(ArrayTypeJson,
simplifyVector = FALSE)
self
},
toJSONString = function() {
as.character(jsonlite::toJSON(private$value,
auto_unbox = TRUE))
},
fromJSONString = function(ArrayTypeJson) {
private$value <- jsonlite::fromJSON(ArrayTypeJson,
simplifyVector = FALSE)
self
}
),
private = list(
value = NULL
)
)
# add to utils.R
.parse_ArrayType <- function(vals) {
res <- gsub("^\\[|\\]$", "",
"[dense, sparse]"
)
unlist(strsplit(res, ", "))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.