88
99# ' @docType class
1010# ' @title AllofTagApiResponse
11- # '
1211# ' @description AllofTagApiResponse Class
13- # '
1412# ' @format An \code{R6Class} generator object
15- # '
1613# ' @field id integer [optional]
17- # '
1814# ' @field name character [optional]
19- # '
2015# ' @field code integer [optional]
21- # '
2216# ' @field type character [optional]
23- # '
2417# ' @field message character [optional]
25- # '
2618# ' @importFrom R6 R6Class
2719# ' @importFrom jsonlite fromJSON toJSON
2820# ' @export
@@ -34,6 +26,18 @@ AllofTagApiResponse <- R6::R6Class(
3426 `code` = NULL ,
3527 `type` = NULL ,
3628 `message` = NULL ,
29+ # ' Initialize a new AllofTagApiResponse class.
30+ # '
31+ # ' @description
32+ # ' Initialize a new AllofTagApiResponse class.
33+ # '
34+ # ' @param id id
35+ # ' @param name name
36+ # ' @param code code
37+ # ' @param type type
38+ # ' @param message message
39+ # ' @param ... Other optional arguments.
40+ # ' @export
3741 initialize = function (
3842 `id` = NULL , `name` = NULL , `code` = NULL , `type` = NULL , `message` = NULL , ...
3943 ) {
@@ -58,6 +62,13 @@ AllofTagApiResponse <- R6::R6Class(
5862 self $ `message` <- `message`
5963 }
6064 },
65+ # ' To JSON string
66+ # '
67+ # ' @description
68+ # ' To JSON String
69+ # '
70+ # ' @return AllofTagApiResponse in JSON format
71+ # ' @export
6172 toJSON = function () {
6273 AllofTagApiResponseObject <- list ()
6374 if (! is.null(self $ `id` )) {
@@ -83,6 +94,14 @@ AllofTagApiResponse <- R6::R6Class(
8394
8495 AllofTagApiResponseObject
8596 },
97+ # ' Deserialize JSON string into an instance of AllofTagApiResponse
98+ # '
99+ # ' @description
100+ # ' Deserialize JSON string into an instance of AllofTagApiResponse
101+ # '
102+ # ' @param AllofTagApiResponseJson the JSON input
103+ # ' @return the instance of AllofTagApiResponse
104+ # ' @export
86105 fromJSON = function (AllofTagApiResponseJson ) {
87106 AllofTagApiResponseObject <- jsonlite :: fromJSON(AllofTagApiResponseJson )
88107 if (! is.null(AllofTagApiResponseObject $ `id` )) {
@@ -102,6 +121,13 @@ AllofTagApiResponse <- R6::R6Class(
102121 }
103122 self
104123 },
124+ # ' To JSON string
125+ # '
126+ # ' @description
127+ # ' To JSON String
128+ # '
129+ # ' @return AllofTagApiResponse in JSON format
130+ # ' @export
105131 toJSONString = function () {
106132 jsoncontent <- c(
107133 if (! is.null(self $ `id` )) {
@@ -143,6 +169,14 @@ AllofTagApiResponse <- R6::R6Class(
143169 jsoncontent <- paste(jsoncontent , collapse = " ," )
144170 paste(' {' , jsoncontent , ' }' , sep = " " )
145171 },
172+ # ' Deserialize JSON string into an instance of AllofTagApiResponse
173+ # '
174+ # ' @description
175+ # ' Deserialize JSON string into an instance of AllofTagApiResponse
176+ # '
177+ # ' @param AllofTagApiResponseJson the JSON input
178+ # ' @return the instance of AllofTagApiResponse
179+ # ' @export
146180 fromJSONString = function (AllofTagApiResponseJson ) {
147181 AllofTagApiResponseObject <- jsonlite :: fromJSON(AllofTagApiResponseJson )
148182 self $ `id` <- AllofTagApiResponseObject $ `id`
@@ -152,6 +186,13 @@ AllofTagApiResponse <- R6::R6Class(
152186 self $ `message` <- AllofTagApiResponseObject $ `message`
153187 self
154188 },
189+ # ' Validate JSON input with respect to AllofTagApiResponse
190+ # '
191+ # ' @description
192+ # ' Validate JSON input with respect to AllofTagApiResponse and throw an exception if invalid
193+ # '
194+ # ' @param input the JSON input
195+ # ' @export
155196 validateJSON = function (input ) {
156197 input_json <- jsonlite :: fromJSON(input )
157198 }
0 commit comments