1212# ' @field code integer [optional]
1313# ' @field type character [optional]
1414# ' @field message character [optional]
15- # ' @field _field_list a list of fields list(character)
16- # ' @field additional_properties additional properties list(character) [optional]
1715# ' @importFrom R6 R6Class
1816# ' @importFrom jsonlite fromJSON toJSON
1917# ' @export
@@ -25,8 +23,6 @@ AllofTagApiResponse <- R6::R6Class(
2523 `code` = NULL ,
2624 `type` = NULL ,
2725 `message` = NULL ,
28- `_field_list` = c(" id" , " name" , " code" , " type" , " message" ),
29- `additional_properties` = list (),
3026
3127 # ' @description
3228 # ' Initialize a new AllofTagApiResponse class.
@@ -36,9 +32,8 @@ AllofTagApiResponse <- R6::R6Class(
3632 # ' @param code code
3733 # ' @param type type
3834 # ' @param message message
39- # ' @param additional_properties additional properties (optional)
4035 # ' @param ... Other optional arguments.
41- initialize = function (`id` = NULL , `name` = NULL , `code` = NULL , `type` = NULL , `message` = NULL , additional_properties = NULL , ... ) {
36+ initialize = function (`id` = NULL , `name` = NULL , `code` = NULL , `type` = NULL , `message` = NULL , ... ) {
4237 if (! is.null(`id` )) {
4338 if (! (is.numeric(`id` ) && length(`id` ) == 1 )) {
4439 stop(paste(" Error! Invalid data for `id`. Must be an integer:" , `id` ))
@@ -69,11 +64,6 @@ AllofTagApiResponse <- R6::R6Class(
6964 }
7065 self $ `message` <- `message`
7166 }
72- if (! is.null(additional_properties )) {
73- for (key in names(additional_properties )) {
74- self $ additional_properties [[key ]] <- additional_properties [[key ]]
75- }
76- }
7767 },
7868
7969 # ' @description
@@ -127,10 +117,6 @@ AllofTagApiResponse <- R6::R6Class(
127117 AllofTagApiResponseObject [[" message" ]] <-
128118 self $ `message`
129119 }
130- for (key in names(self $ additional_properties )) {
131- AllofTagApiResponseObject [[key ]] <- self $ additional_properties [[key ]]
132- }
133-
134120 return (AllofTagApiResponseObject )
135121 },
136122
@@ -156,13 +142,6 @@ AllofTagApiResponse <- R6::R6Class(
156142 if (! is.null(this_object $ `message` )) {
157143 self $ `message` <- this_object $ `message`
158144 }
159- # process additional properties/fields in the payload
160- for (key in names(this_object )) {
161- if (! (key %in% self $ `_field_list` )) { # json key not in list of fields
162- self $ additional_properties [[key ]] <- this_object [[key ]]
163- }
164- }
165-
166145 self
167146 },
168147
@@ -173,9 +152,6 @@ AllofTagApiResponse <- R6::R6Class(
173152 # ' @return AllofTagApiResponse in JSON format
174153 toJSONString = function (... ) {
175154 simple <- self $ toSimpleType()
176- for (key in names(self $ additional_properties )) {
177- simple [[key ]] <- self $ additional_properties [[key ]]
178- }
179155 json <- jsonlite :: toJSON(simple , auto_unbox = TRUE , digits = NA , ... )
180156 return (as.character(jsonlite :: minify(json )))
181157 },
@@ -192,13 +168,6 @@ AllofTagApiResponse <- R6::R6Class(
192168 self $ `code` <- this_object $ `code`
193169 self $ `type` <- this_object $ `type`
194170 self $ `message` <- this_object $ `message`
195- # process additional properties/fields in the payload
196- for (key in names(this_object )) {
197- if (! (key %in% self $ `_field_list` )) { # json key not in list of fields
198- self $ additional_properties [[key ]] <- this_object [[key ]]
199- }
200- }
201-
202171 self
203172 },
204173
0 commit comments