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