# Dkube api server
#
# No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
#
# OpenAPI spec version: 2.2.1.11
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' InlineResponse20011 Class
#'
#' @field members
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
InlineResponse20011 <- R6::R6Class(
'InlineResponse20011',
public = list(
`members` = NULL,
initialize = function(`members`){
if (!missing(`members`)) {
stopifnot(is.list(`members`), length(`members`) != 0)
lapply(`members`, function(x) stopifnot(is.character(x)))
self$`members` <- `members`
}
},
toJSON = function() {
InlineResponse20011Object <- list()
if (!is.null(self$`members`)) {
InlineResponse20011Object[['members']] <- self$`members`
}
InlineResponse20011Object
},
fromJSON = function(InlineResponse20011Json) {
InlineResponse20011Object <- jsonlite::fromJSON(InlineResponse20011Json)
if (!is.null(InlineResponse20011Object$`members`)) {
self$`members` <- InlineResponse20011Object$`members`
}
},
toJSONString = function() {
sprintf(
'{
"members": [%s]
}',
lapply(self$`members`, function(x) paste(paste0('"', x, '"'), sep=","))
)
},
fromJSONString = function(InlineResponse20011Json) {
InlineResponse20011Object <- jsonlite::fromJSON(InlineResponse20011Json)
self$`members` <- InlineResponse20011Object$`members`
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.