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