# 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
#' Data20 Class
#'
#' @field kind
#' @field server
#' @field inline
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
Data20 <- R6::R6Class(
'Data20',
public = list(
`kind` = NULL,
`server` = NULL,
`inline` = NULL,
initialize = function(`kind`, `server`, `inline`){
if (!missing(`kind`)) {
stopifnot(is.character(`kind`), length(`kind`) == 1)
self$`kind` <- `kind`
}
if (!missing(`server`)) {
stopifnot(is.character(`server`), length(`server`) == 1)
self$`server` <- `server`
}
if (!missing(`inline`)) {
stopifnot(R6::is.R6(`inline`))
self$`inline` <- `inline`
}
},
toJSON = function() {
Data20Object <- list()
if (!is.null(self$`kind`)) {
Data20Object[['kind']] <- self$`kind`
}
if (!is.null(self$`server`)) {
Data20Object[['server']] <- self$`server`
}
if (!is.null(self$`inline`)) {
Data20Object[['inline']] <- self$`inline`$toJSON()
}
Data20Object
},
fromJSON = function(Data20Json) {
Data20Object <- jsonlite::fromJSON(Data20Json)
if (!is.null(Data20Object$`kind`)) {
self$`kind` <- Data20Object$`kind`
}
if (!is.null(Data20Object$`server`)) {
self$`server` <- Data20Object$`server`
}
if (!is.null(Data20Object$`inline`)) {
inlineObject <- UserProfile$new()
inlineObject$fromJSON(jsonlite::toJSON(Data20Object$inline, auto_unbox = TRUE))
self$`inline` <- inlineObject
}
},
toJSONString = function() {
sprintf(
'{
"kind": %s,
"server": %s,
"inline": %s
}',
self$`kind`,
self$`server`,
self$`inline`$toJSON()
)
},
fromJSONString = function(Data20Json) {
Data20Object <- jsonlite::fromJSON(Data20Json)
self$`kind` <- Data20Object$`kind`
self$`server` <- Data20Object$`server`
UserProfileObject <- UserProfile$new()
self$`inline` <- UserProfileObject$fromJSON(jsonlite::toJSON(Data20Object$inline, auto_unbox = TRUE))
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.