# Binance Public Spot API
#
# OpenAPI Specifications for the Binance Public Spot API API documents: - [https://github.com/binance/binance-spot-api-docs](https://github.com/binance/binance-spot-api-docs) - [https://binance-docs.github.io/apidocs/spot/en](https://binance-docs.github.io/apidocs/spot/en)
#
# The version of the OpenAPI document: 1.0
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title InlineResponse20061
#'
#' @description InlineResponse20061 Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field email character
#'
#' @field isMarginEnabled character
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
InlineResponse20061 <- R6::R6Class(
'InlineResponse20061',
public = list(
`email` = NULL,
`isMarginEnabled` = NULL,
initialize = function(
`email`, `isMarginEnabled`, ...
) {
local.optional.var <- list(...)
if (!missing(`email`)) {
stopifnot(is.character(`email`), length(`email`) == 1)
self$`email` <- `email`
}
if (!missing(`isMarginEnabled`)) {
stopifnot(is.logical(`isMarginEnabled`), length(`isMarginEnabled`) == 1)
self$`isMarginEnabled` <- `isMarginEnabled`
}
},
toJSON = function() {
InlineResponse20061Object <- list()
if (!is.null(self$`email`)) {
InlineResponse20061Object[['email']] <-
self$`email`
}
if (!is.null(self$`isMarginEnabled`)) {
InlineResponse20061Object[['isMarginEnabled']] <-
self$`isMarginEnabled`
}
InlineResponse20061Object
},
fromJSON = function(InlineResponse20061Json) {
InlineResponse20061Object <- jsonlite::fromJSON(InlineResponse20061Json)
if (!is.null(InlineResponse20061Object$`email`)) {
self$`email` <- InlineResponse20061Object$`email`
}
if (!is.null(InlineResponse20061Object$`isMarginEnabled`)) {
self$`isMarginEnabled` <- InlineResponse20061Object$`isMarginEnabled`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`email`)) {
sprintf(
'"email":
"%s"
',
self$`email`
)},
if (!is.null(self$`isMarginEnabled`)) {
sprintf(
'"isMarginEnabled":
%s
',
tolower(self$`isMarginEnabled`)
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(InlineResponse20061Json) {
InlineResponse20061Object <- jsonlite::fromJSON(InlineResponse20061Json)
self$`email` <- InlineResponse20061Object$`email`
self$`isMarginEnabled` <- InlineResponse20061Object$`isMarginEnabled`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.