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