# FireCloud
#
# FireCloud API
#
# The version of the OpenAPI document: 0.1
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title LabelsResponse
#'
#' @description LabelsResponse Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field id character
#'
#' @field labels character
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
LabelsResponse <- R6::R6Class(
'LabelsResponse',
public = list(
`id` = NULL,
`labels` = NULL,
initialize = function(
`id`, `labels`, ...
) {
local.optional.var <- list(...)
if (!missing(`id`)) {
stopifnot(is.character(`id`), length(`id`) == 1)
self$`id` <- `id`
}
if (!missing(`labels`)) {
stopifnot(is.character(`labels`), length(`labels`) == 1)
self$`labels` <- `labels`
}
},
toJSON = function() {
LabelsResponseObject <- list()
if (!is.null(self$`id`)) {
LabelsResponseObject[['id']] <-
self$`id`
}
if (!is.null(self$`labels`)) {
LabelsResponseObject[['labels']] <-
self$`labels`
}
LabelsResponseObject
},
fromJSON = function(LabelsResponseJson) {
LabelsResponseObject <- jsonlite::fromJSON(LabelsResponseJson)
if (!is.null(LabelsResponseObject$`id`)) {
self$`id` <- LabelsResponseObject$`id`
}
if (!is.null(LabelsResponseObject$`labels`)) {
self$`labels` <- LabelsResponseObject$`labels`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`id`)) {
sprintf(
'"id":
"%s"
',
self$`id`
)},
if (!is.null(self$`labels`)) {
sprintf(
'"labels":
"%s"
',
self$`labels`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(LabelsResponseJson) {
LabelsResponseObject <- jsonlite::fromJSON(LabelsResponseJson)
self$`id` <- LabelsResponseObject$`id`
self$`labels` <- LabelsResponseObject$`labels`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.