# 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
#' InlineResponse20029Data Class
#'
#' @field datum
#' @field version
#' @field run
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
InlineResponse20029Data <- R6::R6Class(
'InlineResponse20029Data',
public = list(
`datum` = NULL,
`version` = NULL,
`run` = NULL,
initialize = function(`datum`, `version`, `run`){
if (!missing(`datum`)) {
stopifnot(R6::is.R6(`datum`))
self$`datum` <- `datum`
}
if (!missing(`version`)) {
stopifnot(R6::is.R6(`version`))
self$`version` <- `version`
}
if (!missing(`run`)) {
stopifnot(R6::is.R6(`run`))
self$`run` <- `run`
}
},
toJSON = function() {
InlineResponse20029DataObject <- list()
if (!is.null(self$`datum`)) {
InlineResponse20029DataObject[['datum']] <- self$`datum`$toJSON()
}
if (!is.null(self$`version`)) {
InlineResponse20029DataObject[['version']] <- self$`version`$toJSON()
}
if (!is.null(self$`run`)) {
InlineResponse20029DataObject[['run']] <- self$`run`$toJSON()
}
InlineResponse20029DataObject
},
fromJSON = function(InlineResponse20029DataJson) {
InlineResponse20029DataObject <- jsonlite::fromJSON(InlineResponse20029DataJson)
if (!is.null(InlineResponse20029DataObject$`datum`)) {
datumObject <- DatumModel$new()
datumObject$fromJSON(jsonlite::toJSON(InlineResponse20029DataObject$datum, auto_unbox = TRUE))
self$`datum` <- datumObject
}
if (!is.null(InlineResponse20029DataObject$`version`)) {
versionObject <- VersionModel$new()
versionObject$fromJSON(jsonlite::toJSON(InlineResponse20029DataObject$version, auto_unbox = TRUE))
self$`version` <- versionObject
}
if (!is.null(InlineResponse20029DataObject$`run`)) {
runObject <- JobModel$new()
runObject$fromJSON(jsonlite::toJSON(InlineResponse20029DataObject$run, auto_unbox = TRUE))
self$`run` <- runObject
}
},
toJSONString = function() {
sprintf(
'{
"datum": %s,
"version": %s,
"run": %s
}',
self$`datum`$toJSON(),
self$`version`$toJSON(),
self$`run`$toJSON()
)
},
fromJSONString = function(InlineResponse20029DataJson) {
InlineResponse20029DataObject <- jsonlite::fromJSON(InlineResponse20029DataJson)
DatumModelObject <- DatumModel$new()
self$`datum` <- DatumModelObject$fromJSON(jsonlite::toJSON(InlineResponse20029DataObject$datum, auto_unbox = TRUE))
VersionModelObject <- VersionModel$new()
self$`version` <- VersionModelObject$fromJSON(jsonlite::toJSON(InlineResponse20029DataObject$version, auto_unbox = TRUE))
JobModelObject <- JobModel$new()
self$`run` <- JobModelObject$fromJSON(jsonlite::toJSON(InlineResponse20029DataObject$run, auto_unbox = TRUE))
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.