# Agave Platform Science API
#
# Power your digital lab and reduce the time from theory to discovery using the Agave Science-as-a-Service API Platform. Agave provides hosted services that allow researchers to manage data, conduct experiments, and publish and share results from anywhere at any time.
#
# Agave Platform version: 2.2.14
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' TransformEncoder Class
#'
#'
#'
#' @field description The description of what this encoder is and what it does.
#' @field name The encoder name.
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
TransformEncoder <- R6::R6Class(
'TransformEncoder',
public = list(
`description` = NULL,
`name` = NULL,
initialize = function(`description`, `name`){
if (!missing(`description`)) {
stopifnot(is.character(`description`), length(`description`) == 1)
self$`description` <- `description`
}
if (!missing(`name`)) {
stopifnot(is.character(`name`), length(`name`) == 1)
self$`name` <- `name`
}
},
asJSON = function() {
self$toJSON()
},
toJSON = function() {
TransformEncoderObject <- list()
if (!is.null(self$`description`)) {
TransformEncoderObject[['description']] <- self$`description`
}
else {
TransformEncoderObject[['description']] <- NULL
}
if (!is.null(self$`name`)) {
TransformEncoderObject[['name']] <- self$`name`
}
else {
TransformEncoderObject[['name']] <- NULL
}
TransformEncoderObject
},
fromJSON = function(TransformEncoderObject) {
if (is.character(TransformEncoderObject)) {
TransformEncoderObject <- jsonlite::fromJSON(TransformEncoderJson)
}
if ("result" %in% names(TransformEncoderObject)) {
TransformEncoderObject <- TransformEncoderObject$result
}
if (!is.null(TransformEncoderObject$`description`)) {
self$`description` <- TransformEncoderObject$`description`
}
if (!is.null(TransformEncoderObject$`name`)) {
self$`name` <- TransformEncoderObject$`name`
}
},
toJSONString = function() {
sprintf(
'{
"description": %s,
"name": %s
}',
ifelse( is.null(self$`description`),"null",paste0(c('"', self$`description`, '"'))),
ifelse( is.null(self$`name`),"null",paste0(c('"', self$`name`, '"')))
)
},
fromJSONString = function(TransformEncoderJson) {
TransformEncoderObject <- jsonlite::fromJSON(TransformEncoderJson)
self::fromJSON(TransformEncoderObject)
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.