#' DoubleProperty
#'
#' @export
#' @format \code{\link{R6Class}} object, super class \code{\link{Property}}.
#' @field name of type String inherited from super class \code{\link{Property}}.
#' @field description of type String inherited from super class \code{\link{Property}}.
#' @field defaultValue of type double.
DoubleProperty <- R6::R6Class("DoubleProperty", inherit = Property, public = list(defaultValue = NULL,
initialize = function(json = NULL) {
super$initialize(json = json)
}, init = function() {
super$init()
self$defaultValue = 0
}, initJson = function(json) {
super$initJson(json)
self$defaultValue = as.double(json$defaultValue)
}, toTson = function() {
m = super$toTson()
m$kind = tson.scalar("DoubleProperty")
m$defaultValue = tson.scalar(self$defaultValue)
return(m)
}))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.