Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
17test cases
17files differ
14modified
3new
0deleted
4,420changed lines
+4,265 −155insertions / deletions
Base ad8b31d287a58174cc2bf00ec0203006898ff6b9 · PR merge a3827c71cdd593a42a4473ed17bd0526ec38ef71 · Head fad93b144e7ab17676a5bd86726237082a5b620f · raw patch
Test case

test/inputs/json/misc/29f47.json

1 generated file · +3 −3
Mkotlin-jacksondefault / TopLevel.kt+3 −3
@@ -299,9 +299,9 @@ sealed class Edited {
299299
300300 companion object {
301301 fun fromJson(jn: JsonNode): Edited = when (jn) {
302- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
303- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
304- else -> throw IllegalArgumentException()
302+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
303+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
304+ else -> throw IllegalArgumentException()
305305 }
306306 }
307307 }
Test case

test/inputs/json/misc/a0496.json

1 generated file · +4 −4
Mkotlin-jacksondefault / TopLevel.kt+4 −4
@@ -107,10 +107,10 @@ sealed class Datum {
107107
108108 companion object {
109109 fun fromJson(jn: JsonNode): Datum = when (jn) {
110- is TextNode -> DateValue(mapper.treeToValue(jn))
111- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
112- null -> NullValue()
113- else -> throw IllegalArgumentException()
110+ is TextNode -> DateValue(mapper.treeToValue(jn))
111+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
112+ null -> NullValue()
113+ else -> throw IllegalArgumentException()
114114 }
115115 }
116116 }
Test case

test/inputs/json/priority/combinations1.json

1 generated file · +31 −31
Mkotlin-jacksondefault / TopLevel.kt+31 −31
@@ -346,9 +346,9 @@ sealed class Clinodome {
346346
347347 companion object {
348348 fun fromJson(jn: JsonNode): Clinodome = when (jn) {
349- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
350- is TextNode -> StringValue(mapper.treeToValue(jn))
351- else -> throw IllegalArgumentException()
349+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
350+ is TextNode -> StringValue(mapper.treeToValue(jn))
351+ else -> throw IllegalArgumentException()
352352 }
353353 }
354354 }
@@ -364,9 +364,9 @@ sealed class CoadjustElement {
364364
365365 companion object {
366366 fun fromJson(jn: JsonNode): CoadjustElement = when (jn) {
367- is ObjectNode -> CoadjustClassValue(mapper.treeToValue(jn))
368- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
369- else -> throw IllegalArgumentException()
367+ is ObjectNode -> CoadjustClassValue(mapper.treeToValue(jn))
368+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
369+ else -> throw IllegalArgumentException()
370370 }
371371 }
372372 }
@@ -425,9 +425,9 @@ sealed class Consilience {
425425
426426 companion object {
427427 fun fromJson(jn: JsonNode): Consilience = when (jn) {
428- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
429- is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
430- else -> throw IllegalArgumentException()
428+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
429+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
430+ else -> throw IllegalArgumentException()
431431 }
432432 }
433433 }
@@ -674,10 +674,10 @@ sealed class Eleutheromania {
674674
675675 companion object {
676676 fun fromJson(jn: JsonNode): Eleutheromania = when (jn) {
677- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
678- is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
679- is TextNode -> StringValue(mapper.treeToValue(jn))
680- else -> throw IllegalArgumentException()
677+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
678+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
679+ is TextNode -> StringValue(mapper.treeToValue(jn))
680+ else -> throw IllegalArgumentException()
681681 }
682682 }
683683 }
@@ -744,9 +744,9 @@ sealed class Epipaleolithic {
744744
745745 companion object {
746746 fun fromJson(jn: JsonNode): Epipaleolithic = when (jn) {
747- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
748- is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
749- else -> throw IllegalArgumentException()
747+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
748+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
749+ else -> throw IllegalArgumentException()
750750 }
751751 }
752752 }
@@ -764,10 +764,10 @@ sealed class Expropriable {
764764
765765 companion object {
766766 fun fromJson(jn: JsonNode): Expropriable = when (jn) {
767- is ObjectNode -> CimeliaClassValue(mapper.treeToValue(jn))
768- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
769- is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
770- else -> throw IllegalArgumentException()
767+ is ObjectNode -> CimeliaClassValue(mapper.treeToValue(jn))
768+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
769+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
770+ else -> throw IllegalArgumentException()
771771 }
772772 }
773773 }
@@ -783,9 +783,9 @@ sealed class FagginglyElement {
783783
784784 companion object {
785785 fun fromJson(jn: JsonNode): FagginglyElement = when (jn) {
786- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
787- is ObjectNode -> FagginglyClassValue(mapper.treeToValue(jn))
788- else -> throw IllegalArgumentException()
786+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
787+ is ObjectNode -> FagginglyClassValue(mapper.treeToValue(jn))
788+ else -> throw IllegalArgumentException()
789789 }
790790 }
791791 }
@@ -888,10 +888,10 @@ sealed class FlagmakingElement {
888888
889889 companion object {
890890 fun fromJson(jn: JsonNode): FlagmakingElement = when (jn) {
891- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
892- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
893- is ObjectNode -> FlagmakingClassValue(mapper.treeToValue(jn))
894- else -> throw IllegalArgumentException()
891+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
892+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
893+ is ObjectNode -> FlagmakingClassValue(mapper.treeToValue(jn))
894+ else -> throw IllegalArgumentException()
895895 }
896896 }
897897 }
@@ -1196,10 +1196,10 @@ sealed class Intentiveness {
11961196
11971197 companion object {
11981198 fun fromJson(jn: JsonNode): Intentiveness = when (jn) {
1199- is ObjectNode -> CimeliaClassValue(mapper.treeToValue(jn))
1200- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1201- is TextNode -> StringValue(mapper.treeToValue(jn))
1202- else -> throw IllegalArgumentException()
1199+ is ObjectNode -> CimeliaClassValue(mapper.treeToValue(jn))
1200+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1201+ is TextNode -> StringValue(mapper.treeToValue(jn))
1202+ else -> throw IllegalArgumentException()
12031203 }
12041204 }
12051205 }
Test case

test/inputs/json/priority/combinations2.json

1 generated file · +1,202 −0
Akotlin-jacksondefault / TopLevel.kt+1,202 −0
@@ -0,0 +1,1202 @@
1+// To parse the JSON, install jackson-module-kotlin and do:
2+//
3+// val topLevel = TopLevel.fromJson(jsonString)
4+
5+package quicktype
6+
7+import com.fasterxml.jackson.annotation.*
8+import com.fasterxml.jackson.core.*
9+import com.fasterxml.jackson.databind.*
10+import com.fasterxml.jackson.databind.deser.std.StdDeserializer
11+import com.fasterxml.jackson.databind.module.SimpleModule
12+import com.fasterxml.jackson.databind.node.*
13+import com.fasterxml.jackson.databind.ser.std.StdSerializer
14+import com.fasterxml.jackson.module.kotlin.*
15+
16+
17+@Suppress("UNCHECKED_CAST")
18+private fun <T> ObjectMapper.convert(k: kotlin.reflect.KClass<*>, fromJson: (JsonNode) -> T, toJson: (T) -> String, isUnion: Boolean = false) = registerModule(SimpleModule().apply {
19+ addSerializer(k.java as Class<T>, object : StdSerializer<T>(k.java as Class<T>) {
20+ override fun serialize(value: T, gen: JsonGenerator, provider: SerializerProvider) = gen.writeRawValue(toJson(value))
21+ })
22+ addDeserializer(k.java as Class<T>, object : StdDeserializer<T>(k.java as Class<T>) {
23+ override fun deserialize(p: JsonParser, ctxt: DeserializationContext) = fromJson(p.readValueAsTree())
24+ })
25+})
26+
27+val mapper = jacksonObjectMapper().apply {
28+ propertyNamingStrategy = PropertyNamingStrategy.LOWER_CAMEL_CASE
29+ setSerializationInclusion(JsonInclude.Include.NON_NULL)
30+ convert(Abranchiata::class, { Abranchiata.fromJson(it) }, { it.toJson() }, true)
31+ convert(Academe::class, { Academe.fromJson(it) }, { it.toJson() }, true)
32+ convert(Acquirable::class, { Acquirable.fromJson(it) }, { it.toJson() }, true)
33+ convert(Aerometry::class, { Aerometry.fromJson(it) }, { it.toJson() }, true)
34+ convert(Alexin::class, { Alexin.fromJson(it) }, { it.toJson() }, true)
35+ convert(AlleviateElement::class, { AlleviateElement.fromJson(it) }, { it.toJson() }, true)
36+ convert(Amaa::class, { Amaa.fromJson(it) }, { it.toJson() }, true)
37+ convert(Ambassage::class, { Ambassage.fromJson(it) }, { it.toJson() }, true)
38+ convert(AnkeeElement::class, { AnkeeElement.fromJson(it) }, { it.toJson() }, true)
39+ convert(AnsarieElement::class, { AnsarieElement.fromJson(it) }, { it.toJson() }, true)
40+ convert(Aphasia::class, { Aphasia.fromJson(it) }, { it.toJson() }, true)
41+ convert(Asprawl::class, { Asprawl.fromJson(it) }, { it.toJson() }, true)
42+ convert(Bedesman::class, { Bedesman.fromJson(it) }, { it.toJson() }, true)
43+ convert(Belard::class, { Belard.fromJson(it) }, { it.toJson() }, true)
44+ convert(Bocking::class, { Bocking.fromJson(it) }, { it.toJson() }, true)
45+ convert(Brawlingly::class, { Brawlingly.fromJson(it) }, { it.toJson() }, true)
46+ convert(Brookie::class, { Brookie.fromJson(it) }, { it.toJson() }, true)
47+ convert(Bumboatman::class, { Bumboatman.fromJson(it) }, { it.toJson() }, true)
48+ convert(Calaverite::class, { Calaverite.fromJson(it) }, { it.toJson() }, true)
49+ convert(Catallactic::class, { Catallactic.fromJson(it) }, { it.toJson() }, true)
50+ convert(Cemental::class, { Cemental.fromJson(it) }, { it.toJson() }, true)
51+ convert(ChytridiaceaeElement::class, { ChytridiaceaeElement.fromJson(it) }, { it.toJson() }, true)
52+ convert(DiscordiaElement::class, { DiscordiaElement.fromJson(it) }, { it.toJson() }, true)
53+ convert(Endomyce::class, { Endomyce.fromJson(it) }, { it.toJson() }, true)
54+ convert(Epinephelidae::class, { Epinephelidae.fromJson(it) }, { it.toJson() }, true)
55+ convert(Eupatorium::class, { Eupatorium.fromJson(it) }, { it.toJson() }, true)
56+ convert(GryphosaurusElement::class, { GryphosaurusElement.fromJson(it) }, { it.toJson() }, true)
57+ convert(Koryak::class, { Koryak.fromJson(it) }, { it.toJson() }, true)
58+ convert(LaviniaElement::class, { LaviniaElement.fromJson(it) }, { it.toJson() }, true)
59+ convert(OskarElement::class, { OskarElement.fromJson(it) }, { it.toJson() }, true)
60+ convert(RebeccaElement::class, { RebeccaElement.fromJson(it) }, { it.toJson() }, true)
61+ convert(Rhomboganoidei::class, { Rhomboganoidei.fromJson(it) }, { it.toJson() }, true)
62+ convert(Ruellia::class, { Ruellia.fromJson(it) }, { it.toJson() }, true)
63+ convert(School::class, { School.fromJson(it) }, { it.toJson() }, true)
64+ convert(Shakespearolater::class, { Shakespearolater.fromJson(it) }, { it.toJson() }, true)
65+}
66+
67+data class TopLevel (
68+ @get:JsonProperty("Abranchiata", required=true)@field:JsonProperty("Abranchiata", required=true)
69+ val abranchiata: List<Abranchiata>,
70+
71+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
72+ val academe: List<Academe>,
73+
74+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
75+ val acquirable: List<Acquirable>,
76+
77+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
78+ val aerometry: List<Aerometry>,
79+
80+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
81+ val alexin: List<Alexin>,
82+
83+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
84+ val alleviate: List<AlleviateElement>,
85+
86+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
87+ val amaas: List<Amaa>,
88+
89+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
90+ val ambassage: List<Ambassage>,
91+
92+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
93+ val amphithyron: List<Amphithyron?>,
94+
95+ @get:JsonProperty("Andriana", required=true)@field:JsonProperty("Andriana", required=true)
96+ val andriana: List<String?>,
97+
98+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
99+ val ankee: List<AnkeeElement>,
100+
101+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
102+ val annihilator: List<Map<String, Long?>?>,
103+
104+ val annulose: Any? = null,
105+
106+ @get:JsonProperty("Ansarie", required=true)@field:JsonProperty("Ansarie", required=true)
107+ val ansarie: List<AnsarieElement>,
108+
109+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
110+ val aphasia: List<Aphasia>,
111+
112+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
113+ val asprawl: List<Asprawl>,
114+
115+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
116+ val attractive: List<Boolean?>,
117+
118+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
119+ val barksome: Map<String, Long>,
120+
121+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
122+ val bedesman: List<Bedesman>,
123+
124+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
125+ val belard: List<Belard>,
126+
127+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
128+ val bocking: List<Bocking>,
129+
130+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
131+ val brawlingly: List<Brawlingly>,
132+
133+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
134+ val brookie: List<Brookie>,
135+
136+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
137+ val bumboatman: List<Bumboatman>,
138+
139+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
140+ val bystreet: List<Any?>,
141+
142+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
143+ val calaverite: List<Calaverite>,
144+
145+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
146+ val catallactic: List<Catallactic>,
147+
148+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
149+ val cemental: List<Cemental>,
150+
151+ @get:JsonProperty("Chytridiaceae", required=true)@field:JsonProperty("Chytridiaceae", required=true)
152+ val chytridiaceae: List<ChytridiaceaeElement>,
153+
154+ @get:JsonProperty("Discordia", required=true)@field:JsonProperty("Discordia", required=true)
155+ val discordia: List<DiscordiaElement>,
156+
157+ @get:JsonProperty("Endomyces", required=true)@field:JsonProperty("Endomyces", required=true)
158+ val endomyces: List<Endomyce>,
159+
160+ @get:JsonProperty("Epinephelidae", required=true)@field:JsonProperty("Epinephelidae", required=true)
161+ val epinephelidae: List<Epinephelidae>,
162+
163+ @get:JsonProperty("Eupatorium", required=true)@field:JsonProperty("Eupatorium", required=true)
164+ val eupatorium: List<Eupatorium>,
165+
166+ @get:JsonProperty("Gryphosaurus", required=true)@field:JsonProperty("Gryphosaurus", required=true)
167+ val gryphosaurus: List<GryphosaurusElement>,
168+
169+ @get:JsonProperty("Koryak", required=true)@field:JsonProperty("Koryak", required=true)
170+ val koryak: List<Koryak>,
171+
172+ @get:JsonProperty("Lavinia", required=true)@field:JsonProperty("Lavinia", required=true)
173+ val lavinia: List<LaviniaElement>,
174+
175+ @get:JsonProperty("Oskar", required=true)@field:JsonProperty("Oskar", required=true)
176+ val oskar: List<OskarElement>,
177+
178+ @get:JsonProperty("Rebecca", required=true)@field:JsonProperty("Rebecca", required=true)
179+ val rebecca: List<RebeccaElement>,
180+
181+ @get:JsonProperty("Rhomboganoidei", required=true)@field:JsonProperty("Rhomboganoidei", required=true)
182+ val rhomboganoidei: List<Rhomboganoidei>,
183+
184+ @get:JsonProperty("Rigsmal", required=true)@field:JsonProperty("Rigsmal", required=true)
185+ val rigsmal: Boolean,
186+
187+ @get:JsonProperty("Ruellia", required=true)@field:JsonProperty("Ruellia", required=true)
188+ val ruellia: List<Ruellia>,
189+
190+ @get:JsonProperty("School", required=true)@field:JsonProperty("School", required=true)
191+ val school: List<School>,
192+
193+ @get:JsonProperty("Shakespearolater", required=true)@field:JsonProperty("Shakespearolater", required=true)
194+ val shakespearolater: List<Shakespearolater>,
195+
196+ @get:JsonProperty("Svan", required=true)@field:JsonProperty("Svan", required=true)
197+ val svan: List<Double>,
198+
199+ @get:JsonProperty("Wayao", required=true)@field:JsonProperty("Wayao", required=true)
200+ val wayao: Map<String, Double>
201+) {
202+ fun toJson() = mapper.writeValueAsString(this)
203+
204+ companion object {
205+ fun fromJson(json: String) = mapper.readValue<TopLevel>(json)
206+ }
207+}
208+
209+sealed class Abranchiata {
210+ class IntegerArrayValue(val value: List<Long>) : Abranchiata()
211+ class IntegerValue(val value: Long) : Abranchiata()
212+ class NullValue() : Abranchiata()
213+
214+ fun toJson(): String = mapper.writeValueAsString(when (this) {
215+ is IntegerArrayValue -> this.value
216+ is IntegerValue -> this.value
217+ is NullValue -> "null"
218+ })
219+
220+ companion object {
221+ fun fromJson(jn: JsonNode): Abranchiata = when (jn) {
222+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
223+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
224+ null -> NullValue()
225+ else -> throw IllegalArgumentException()
226+ }
227+ }
228+}
229+
230+sealed class Academe {
231+ class IntegerArrayValue(val value: List<Long>) : Academe()
232+ class IntegerMapValue(val value: Map<String, Long>) : Academe()
233+ class IntegerValue(val value: Long) : Academe()
234+
235+ fun toJson(): String = mapper.writeValueAsString(when (this) {
236+ is IntegerArrayValue -> this.value
237+ is IntegerMapValue -> this.value
238+ is IntegerValue -> this.value
239+ })
240+
241+ companion object {
242+ fun fromJson(jn: JsonNode): Academe = when (jn) {
243+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
244+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
245+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
246+ else -> throw IllegalArgumentException()
247+ }
248+ }
249+}
250+
251+sealed class Acquirable {
252+ class IntegerMapValue(val value: Map<String, Long>) : Acquirable()
253+ class UnionArrayValue(val value: List<Long?>) : Acquirable()
254+
255+ fun toJson(): String = mapper.writeValueAsString(when (this) {
256+ is IntegerMapValue -> this.value
257+ is UnionArrayValue -> this.value
258+ })
259+
260+ companion object {
261+ fun fromJson(jn: JsonNode): Acquirable = when (jn) {
262+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
263+ is ArrayNode -> UnionArrayValue(mapper.treeToValue(jn))
264+ else -> throw IllegalArgumentException()
265+ }
266+ }
267+}
268+
269+sealed class Aerometry {
270+ class BoolValue(val value: Boolean) : Aerometry()
271+ class DoubleValue(val value: Double) : Aerometry()
272+
273+ fun toJson(): String = mapper.writeValueAsString(when (this) {
274+ is BoolValue -> this.value
275+ is DoubleValue -> this.value
276+ })
277+
278+ companion object {
279+ fun fromJson(jn: JsonNode): Aerometry = when (jn) {
280+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
281+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
282+ else -> throw IllegalArgumentException()
283+ }
284+ }
285+}
286+
287+sealed class Alexin {
288+ class BoolValue(val value: Boolean) : Alexin()
289+ class IntegerArrayValue(val value: List<Long>) : Alexin()
290+
291+ fun toJson(): String = mapper.writeValueAsString(when (this) {
292+ is BoolValue -> this.value
293+ is IntegerArrayValue -> this.value
294+ })
295+
296+ companion object {
297+ fun fromJson(jn: JsonNode): Alexin = when (jn) {
298+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
299+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
300+ else -> throw IllegalArgumentException()
301+ }
302+ }
303+}
304+
305+sealed class AlleviateElement {
306+ class AlleviateClassValue(val value: AlleviateClass) : AlleviateElement()
307+ class UnionArrayValue(val value: List<Long?>) : AlleviateElement()
308+
309+ fun toJson(): String = mapper.writeValueAsString(when (this) {
310+ is AlleviateClassValue -> this.value
311+ is UnionArrayValue -> this.value
312+ })
313+
314+ companion object {
315+ fun fromJson(jn: JsonNode): AlleviateElement = when (jn) {
316+ is ObjectNode -> AlleviateClassValue(mapper.treeToValue(jn))
317+ is ArrayNode -> UnionArrayValue(mapper.treeToValue(jn))
318+ else -> throw IllegalArgumentException()
319+ }
320+ }
321+}
322+
323+data class AlleviateClass (
324+ val apriori: Any? = null,
325+ val beggarer: Any? = null,
326+ val brokenheartedly: Any? = null,
327+ val debilitation: Any? = null,
328+ val frike: Any? = null,
329+ val gastrolith: Any? = null,
330+
331+ @get:JsonProperty("Hulsean")@field:JsonProperty("Hulsean")
332+ val hulsean: Any? = null,
333+
334+ val orthocentric: Any? = null,
335+ val petaly: Any? = null,
336+ val probudgeting: Any? = null,
337+ val reacquire: Any? = null,
338+ val scow: Any? = null,
339+ val shutoff: Any? = null,
340+ val subcontiguous: Any? = null,
341+ val suffumigate: Any? = null,
342+ val transformable: Any? = null,
343+ val uncoroneted: Any? = null,
344+ val unparking: Any? = null,
345+ val unvarnishedness: Any? = null,
346+ val wherewithal: Any? = null
347+)
348+
349+sealed class Amaa {
350+ class BoolValue(val value: Boolean) : Amaa()
351+ class IntegerValue(val value: Long) : Amaa()
352+ class RebeccaValue(val value: Rebecca) : Amaa()
353+
354+ fun toJson(): String = mapper.writeValueAsString(when (this) {
355+ is BoolValue -> this.value
356+ is IntegerValue -> this.value
357+ is RebeccaValue -> this.value
358+ })
359+
360+ companion object {
361+ fun fromJson(jn: JsonNode): Amaa = when (jn) {
362+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
363+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
364+ is ObjectNode -> RebeccaValue(mapper.treeToValue(jn))
365+ else -> throw IllegalArgumentException()
366+ }
367+ }
368+}
369+
370+data class Rebecca (
371+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
372+ val catharticalness: Double,
373+
374+ @get:JsonProperty("Chirotherium", required=true)@field:JsonProperty("Chirotherium", required=true)
375+ val chirotherium: Long,
376+
377+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
378+ val disdiapason: String,
379+
380+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
381+ val homocerc: Boolean,
382+
383+ val nonbookish: Any? = null
384+)
385+
386+sealed class Ambassage {
387+ class NullArrayValue(val value: List<Any?>) : Ambassage()
388+ class StringValue(val value: String) : Ambassage()
389+
390+ fun toJson(): String = mapper.writeValueAsString(when (this) {
391+ is NullArrayValue -> this.value
392+ is StringValue -> this.value
393+ })
394+
395+ companion object {
396+ fun fromJson(jn: JsonNode): Ambassage = when (jn) {
397+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
398+ is TextNode -> StringValue(mapper.treeToValue(jn))
399+ else -> throw IllegalArgumentException()
400+ }
401+ }
402+}
403+
404+data class Amphithyron (
405+ val akroasis: Long? = null,
406+ val antiphonical: Long? = null,
407+ val basebred: Long? = null,
408+ val catharticalness: Double? = null,
409+
410+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
411+ val chirotherium: Long? = null,
412+
413+ val conductometric: Long? = null,
414+ val disdiapason: String? = null,
415+ val ensilation: Long? = null,
416+ val eyebolt: Long? = null,
417+ val fistulated: Long? = null,
418+ val heteropod: Long? = null,
419+ val homocerc: Boolean? = null,
420+
421+ @get:JsonProperty("Juniperus")@field:JsonProperty("Juniperus")
422+ val juniperus: Long? = null,
423+
424+ val labyrinthically: Long? = null,
425+ val martyrization: Long? = null,
426+ val mispolicy: Long? = null,
427+ val multipara: Long? = null,
428+
429+ @get:JsonProperty("Nazirite")@field:JsonProperty("Nazirite")
430+ val nazirite: Long? = null,
431+
432+ val nonbookish: Any? = null,
433+ val possessorial: Long? = null,
434+ val shamed: Long? = null,
435+ val shelfworn: Long? = null,
436+ val stagnum: Long? = null,
437+
438+ @get:JsonProperty("Those")@field:JsonProperty("Those")
439+ val those: Long? = null,
440+
441+ val undecimal: Long? = null
442+)
443+
444+sealed class AnkeeElement {
445+ class AnkeeClassValue(val value: AnkeeClass) : AnkeeElement()
446+ class IntegerArrayValue(val value: List<Long>) : AnkeeElement()
447+ class IntegerValue(val value: Long) : AnkeeElement()
448+
449+ fun toJson(): String = mapper.writeValueAsString(when (this) {
450+ is AnkeeClassValue -> this.value
451+ is IntegerArrayValue -> this.value
452+ is IntegerValue -> this.value
453+ })
454+
455+ companion object {
456+ fun fromJson(jn: JsonNode): AnkeeElement = when (jn) {
457+ is ObjectNode -> AnkeeClassValue(mapper.treeToValue(jn))
458+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
459+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
460+ else -> throw IllegalArgumentException()
461+ }
462+ }
463+}
464+
465+data class AnkeeClass (
466+ @get:JsonProperty("Anomoean")@field:JsonProperty("Anomoean")
467+ val anomoean: Any? = null,
468+
469+ val barleyhood: Any? = null,
470+ val befriender: Any? = null,
471+ val brutishness: Any? = null,
472+ val cephalalgy: Any? = null,
473+ val cirurgian: Any? = null,
474+ val conventionally: Any? = null,
475+ val jackshay: Any? = null,
476+ val milammeter: Any? = null,
477+
478+ @get:JsonProperty("Naja")@field:JsonProperty("Naja")
479+ val naja: Any? = null,
480+
481+ val ombrological: Any? = null,
482+ val phonasthenia: Any? = null,
483+ val retrievableness: Any? = null,
484+ val snakily: Any? = null,
485+ val swot: Any? = null,
486+ val tartlet: Any? = null,
487+ val thiofuran: Any? = null,
488+ val tracheophone: Any? = null,
489+ val tuglike: Any? = null,
490+ val unscratchingly: Any? = null
491+)
492+
493+sealed class AnsarieElement {
494+ class AnsarieClassValue(val value: AnsarieClass) : AnsarieElement()
495+ class IntegerArrayValue(val value: List<Long>) : AnsarieElement()
496+ class NullValue() : AnsarieElement()
497+
498+ fun toJson(): String = mapper.writeValueAsString(when (this) {
499+ is AnsarieClassValue -> this.value
500+ is IntegerArrayValue -> this.value
501+ is NullValue -> "null"
502+ })
503+
504+ companion object {
505+ fun fromJson(jn: JsonNode): AnsarieElement = when (jn) {
506+ is ObjectNode -> AnsarieClassValue(mapper.treeToValue(jn))
507+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
508+ null -> NullValue()
509+ else -> throw IllegalArgumentException()
510+ }
511+ }
512+}
513+
514+data class AnsarieClass (
515+ val accension: Any? = null,
516+
517+ @get:JsonProperty("Alida")@field:JsonProperty("Alida")
518+ val alida: Any? = null,
519+
520+ val asteria: Any? = null,
521+ val beriberic: Any? = null,
522+ val edgebone: Any? = null,
523+ val gastrodialysis: Any? = null,
524+ val geographic: Any? = null,
525+
526+ @get:JsonProperty("Ictonyx")@field:JsonProperty("Ictonyx")
527+ val ictonyx: Any? = null,
528+
529+ val metrocele: Any? = null,
530+ val misgraft: Any? = null,
531+ val monteith: Any? = null,
532+ val notcher: Any? = null,
533+ val prorestriction: Any? = null,
534+
535+ @get:JsonProperty("Ramist")@field:JsonProperty("Ramist")
536+ val ramist: Any? = null,
537+
538+ val throatlet: Any? = null,
539+ val unfair: Any? = null,
540+ val unsynonymous: Any? = null,
541+ val water: Any? = null,
542+ val zestfully: Any? = null,
543+ val zincic: Any? = null
544+)
545+
546+sealed class Aphasia {
547+ class IntegerArrayValue(val value: List<Long>) : Aphasia()
548+ class IntegerValue(val value: Long) : Aphasia()
549+
550+ fun toJson(): String = mapper.writeValueAsString(when (this) {
551+ is IntegerArrayValue -> this.value
552+ is IntegerValue -> this.value
553+ })
554+
555+ companion object {
556+ fun fromJson(jn: JsonNode): Aphasia = when (jn) {
557+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
558+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
559+ else -> throw IllegalArgumentException()
560+ }
561+ }
562+}
563+
564+sealed class Asprawl {
565+ class DoubleValue(val value: Double) : Asprawl()
566+ class StringValue(val value: String) : Asprawl()
567+
568+ fun toJson(): String = mapper.writeValueAsString(when (this) {
569+ is DoubleValue -> this.value
570+ is StringValue -> this.value
571+ })
572+
573+ companion object {
574+ fun fromJson(jn: JsonNode): Asprawl = when (jn) {
575+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
576+ is TextNode -> StringValue(mapper.treeToValue(jn))
577+ else -> throw IllegalArgumentException()
578+ }
579+ }
580+}
581+
582+sealed class Bedesman {
583+ class BoolValue(val value: Boolean) : Bedesman()
584+ class DoubleValue(val value: Double) : Bedesman()
585+ class StringValue(val value: String) : Bedesman()
586+
587+ fun toJson(): String = mapper.writeValueAsString(when (this) {
588+ is BoolValue -> this.value
589+ is DoubleValue -> this.value
590+ is StringValue -> this.value
591+ })
592+
593+ companion object {
594+ fun fromJson(jn: JsonNode): Bedesman = when (jn) {
595+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
596+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
597+ is TextNode -> StringValue(mapper.treeToValue(jn))
598+ else -> throw IllegalArgumentException()
599+ }
600+ }
601+}
602+
603+sealed class Belard {
604+ class DoubleValue(val value: Double) : Belard()
605+ class IntegerArrayValue(val value: List<Long>) : Belard()
606+ class RebeccaValue(val value: Rebecca) : Belard()
607+
608+ fun toJson(): String = mapper.writeValueAsString(when (this) {
609+ is DoubleValue -> this.value
610+ is IntegerArrayValue -> this.value
611+ is RebeccaValue -> this.value
612+ })
613+
614+ companion object {
615+ fun fromJson(jn: JsonNode): Belard = when (jn) {
616+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
617+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
618+ is ObjectNode -> RebeccaValue(mapper.treeToValue(jn))
619+ else -> throw IllegalArgumentException()
620+ }
621+ }
622+}
623+
624+sealed class Bocking {
625+ class BoolValue(val value: Boolean) : Bocking()
626+ class IntegerArrayValue(val value: List<Long>) : Bocking()
627+ class IntegerMapValue(val value: Map<String, Long>) : Bocking()
628+
629+ fun toJson(): String = mapper.writeValueAsString(when (this) {
630+ is BoolValue -> this.value
631+ is IntegerArrayValue -> this.value
632+ is IntegerMapValue -> this.value
633+ })
634+
635+ companion object {
636+ fun fromJson(jn: JsonNode): Bocking = when (jn) {
637+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
638+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
639+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
640+ else -> throw IllegalArgumentException()
641+ }
642+ }
643+}
644+
645+sealed class Brawlingly {
646+ class NullArrayValue(val value: List<Any?>) : Brawlingly()
647+ class UnionMapValue(val value: Map<String, Long?>) : Brawlingly()
648+
649+ fun toJson(): String = mapper.writeValueAsString(when (this) {
650+ is NullArrayValue -> this.value
651+ is UnionMapValue -> this.value
652+ })
653+
654+ companion object {
655+ fun fromJson(jn: JsonNode): Brawlingly = when (jn) {
656+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
657+ is ObjectNode -> UnionMapValue(mapper.treeToValue(jn))
658+ else -> throw IllegalArgumentException()
659+ }
660+ }
661+}
662+
663+sealed class Brookie {
664+ class IntegerArrayValue(val value: List<Long>) : Brookie()
665+ class RebeccaValue(val value: Rebecca) : Brookie()
666+
667+ fun toJson(): String = mapper.writeValueAsString(when (this) {
668+ is IntegerArrayValue -> this.value
669+ is RebeccaValue -> this.value
670+ })
671+
672+ companion object {
673+ fun fromJson(jn: JsonNode): Brookie = when (jn) {
674+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
675+ is ObjectNode -> RebeccaValue(mapper.treeToValue(jn))
676+ else -> throw IllegalArgumentException()
677+ }
678+ }
679+}
680+
681+sealed class Bumboatman {
682+ class NullArrayValue(val value: List<Any?>) : Bumboatman()
683+ class StringValue(val value: String) : Bumboatman()
684+ class NullValue() : Bumboatman()
685+
686+ fun toJson(): String = mapper.writeValueAsString(when (this) {
687+ is NullArrayValue -> this.value
688+ is StringValue -> this.value
689+ is NullValue -> "null"
690+ })
691+
692+ companion object {
693+ fun fromJson(jn: JsonNode): Bumboatman = when (jn) {
694+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
695+ is TextNode -> StringValue(mapper.treeToValue(jn))
696+ null -> NullValue()
697+ else -> throw IllegalArgumentException()
698+ }
699+ }
700+}
701+
702+sealed class Calaverite {
703+ class IntegerArrayValue(val value: List<Long>) : Calaverite()
704+ class StringValue(val value: String) : Calaverite()
705+
706+ fun toJson(): String = mapper.writeValueAsString(when (this) {
707+ is IntegerArrayValue -> this.value
708+ is StringValue -> this.value
709+ })
710+
711+ companion object {
712+ fun fromJson(jn: JsonNode): Calaverite = when (jn) {
713+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
714+ is TextNode -> StringValue(mapper.treeToValue(jn))
715+ else -> throw IllegalArgumentException()
716+ }
717+ }
718+}
719+
720+sealed class Catallactic {
721+ class BoolValue(val value: Boolean) : Catallactic()
722+ class IntegerMapValue(val value: Map<String, Long>) : Catallactic()
723+ class NullArrayValue(val value: List<Any?>) : Catallactic()
724+
725+ fun toJson(): String = mapper.writeValueAsString(when (this) {
726+ is BoolValue -> this.value
727+ is IntegerMapValue -> this.value
728+ is NullArrayValue -> this.value
729+ })
730+
731+ companion object {
732+ fun fromJson(jn: JsonNode): Catallactic = when (jn) {
733+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
734+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
735+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
736+ else -> throw IllegalArgumentException()
737+ }
738+ }
739+}
740+
741+sealed class Cemental {
742+ class DoubleValue(val value: Double) : Cemental()
743+ class IntegerArrayValue(val value: List<Long>) : Cemental()
744+ class IntegerMapValue(val value: Map<String, Long>) : Cemental()
745+
746+ fun toJson(): String = mapper.writeValueAsString(when (this) {
747+ is DoubleValue -> this.value
748+ is IntegerArrayValue -> this.value
749+ is IntegerMapValue -> this.value
750+ })
751+
752+ companion object {
753+ fun fromJson(jn: JsonNode): Cemental = when (jn) {
754+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
755+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
756+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
757+ else -> throw IllegalArgumentException()
758+ }
759+ }
760+}
761+
762+sealed class ChytridiaceaeElement {
763+ class BoolValue(val value: Boolean) : ChytridiaceaeElement()
764+ class ChytridiaceaeClassValue(val value: ChytridiaceaeClass) : ChytridiaceaeElement()
765+ class NullValue() : ChytridiaceaeElement()
766+
767+ fun toJson(): String = mapper.writeValueAsString(when (this) {
768+ is BoolValue -> this.value
769+ is ChytridiaceaeClassValue -> this.value
770+ is NullValue -> "null"
771+ })
772+
773+ companion object {
774+ fun fromJson(jn: JsonNode): ChytridiaceaeElement = when (jn) {
775+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
776+ is ObjectNode -> ChytridiaceaeClassValue(mapper.treeToValue(jn))
777+ null -> NullValue()
778+ else -> throw IllegalArgumentException()
779+ }
780+ }
781+}
782+
783+data class ChytridiaceaeClass (
784+ @get:JsonProperty("Batidaceae")@field:JsonProperty("Batidaceae")
785+ val batidaceae: Any? = null,
786+
787+ @get:JsonProperty("Brechites")@field:JsonProperty("Brechites")
788+ val brechites: Any? = null,
789+
790+ val codespairer: Any? = null,
791+
792+ @get:JsonProperty("Emery")@field:JsonProperty("Emery")
793+ val emery: Any? = null,
794+
795+ val enervative: Any? = null,
796+ val excriminate: Any? = null,
797+ val goshenite: Any? = null,
798+ val grime: Any? = null,
799+ val gritten: Any? = null,
800+ val hectorly: Any? = null,
801+ val intermediation: Any? = null,
802+ val meeterly: Any? = null,
803+
804+ @get:JsonProperty("Narraganset")@field:JsonProperty("Narraganset")
805+ val narraganset: Any? = null,
806+
807+ val onymatic: Any? = null,
808+ val paddlecock: Any? = null,
809+ val thana: Any? = null,
810+ val thornily: Any? = null,
811+ val uckia: Any? = null,
812+ val unmettle: Any? = null,
813+ val vorticellid: Any? = null
814+)
815+
816+sealed class DiscordiaElement {
817+ class DiscordiaClassValue(val value: DiscordiaClass) : DiscordiaElement()
818+ class IntegerArrayValue(val value: List<Long>) : DiscordiaElement()
819+
820+ fun toJson(): String = mapper.writeValueAsString(when (this) {
821+ is DiscordiaClassValue -> this.value
822+ is IntegerArrayValue -> this.value
823+ })
824+
825+ companion object {
826+ fun fromJson(jn: JsonNode): DiscordiaElement = when (jn) {
827+ is ObjectNode -> DiscordiaClassValue(mapper.treeToValue(jn))
828+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
829+ else -> throw IllegalArgumentException()
830+ }
831+ }
832+}
833+
834+data class DiscordiaClass (
835+ @get:JsonProperty("Altaic")@field:JsonProperty("Altaic")
836+ val altaic: Long? = null,
837+
838+ val amoristic: Long? = null,
839+ val blennophthalmia: Long? = null,
840+ val catharticalness: Double? = null,
841+
842+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
843+ val chirotherium: Long? = null,
844+
845+ val disciplinability: Long? = null,
846+ val disdiapason: String? = null,
847+ val goofer: Long? = null,
848+ val homocerc: Boolean? = null,
849+ val laryngograph: Long? = null,
850+ val leucitis: Long? = null,
851+ val lymphocyst: Long? = null,
852+ val microcosmology: Long? = null,
853+ val nauseation: Long? = null,
854+ val nonbookish: Any? = null,
855+
856+ @get:JsonProperty("Patarin")@field:JsonProperty("Patarin")
857+ val patarin: Long? = null,
858+
859+ val preliberal: Long? = null,
860+ val prettifier: Long? = null,
861+ val rangework: Long? = null,
862+ val redient: Long? = null,
863+ val subfusiform: Long? = null,
864+ val suicidical: Long? = null,
865+ val swow: Long? = null,
866+ val wastrel: Long? = null,
867+ val wingle: Long? = null
868+)
869+
870+sealed class Endomyce {
871+ class IntegerValue(val value: Long) : Endomyce()
872+ class StringValue(val value: String) : Endomyce()
873+
874+ fun toJson(): String = mapper.writeValueAsString(when (this) {
875+ is IntegerValue -> this.value
876+ is StringValue -> this.value
877+ })
878+
879+ companion object {
880+ fun fromJson(jn: JsonNode): Endomyce = when (jn) {
881+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
882+ is TextNode -> StringValue(mapper.treeToValue(jn))
883+ else -> throw IllegalArgumentException()
884+ }
885+ }
886+}
887+
888+sealed class Epinephelidae {
889+ class BoolValue(val value: Boolean) : Epinephelidae()
890+ class IntegerValue(val value: Long) : Epinephelidae()
891+ class StringValue(val value: String) : Epinephelidae()
892+
893+ fun toJson(): String = mapper.writeValueAsString(when (this) {
894+ is BoolValue -> this.value
895+ is IntegerValue -> this.value
896+ is StringValue -> this.value
897+ })
898+
899+ companion object {
900+ fun fromJson(jn: JsonNode): Epinephelidae = when (jn) {
901+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
902+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
903+ is TextNode -> StringValue(mapper.treeToValue(jn))
904+ else -> throw IllegalArgumentException()
905+ }
906+ }
907+}
908+
909+sealed class Eupatorium {
910+ class IntegerMapValue(val value: Map<String, Long>) : Eupatorium()
911+ class NullArrayValue(val value: List<Any?>) : Eupatorium()
912+
913+ fun toJson(): String = mapper.writeValueAsString(when (this) {
914+ is IntegerMapValue -> this.value
915+ is NullArrayValue -> this.value
916+ })
917+
918+ companion object {
919+ fun fromJson(jn: JsonNode): Eupatorium = when (jn) {
920+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
921+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
922+ else -> throw IllegalArgumentException()
923+ }
924+ }
925+}
926+
927+sealed class GryphosaurusElement {
928+ class GryphosaurusClassValue(val value: GryphosaurusClass) : GryphosaurusElement()
929+ class IntegerArrayValue(val value: List<Long>) : GryphosaurusElement()
930+ class StringValue(val value: String) : GryphosaurusElement()
931+
932+ fun toJson(): String = mapper.writeValueAsString(when (this) {
933+ is GryphosaurusClassValue -> this.value
934+ is IntegerArrayValue -> this.value
935+ is StringValue -> this.value
936+ })
937+
938+ companion object {
939+ fun fromJson(jn: JsonNode): GryphosaurusElement = when (jn) {
940+ is ObjectNode -> GryphosaurusClassValue(mapper.treeToValue(jn))
941+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
942+ is TextNode -> StringValue(mapper.treeToValue(jn))
943+ else -> throw IllegalArgumentException()
944+ }
945+ }
946+}
947+
948+data class GryphosaurusClass (
949+ val amissibility: Any? = null,
950+
951+ @get:JsonProperty("Burushaski")@field:JsonProperty("Burushaski")
952+ val burushaski: Any? = null,
953+
954+ val citronin: Any? = null,
955+ val coplaintiff: Any? = null,
956+ val disquisitionary: Any? = null,
957+ val enoplan: Any? = null,
958+ val faintness: Any? = null,
959+ val hebetomy: Any? = null,
960+
961+ @get:JsonProperty("islandry")@field:JsonProperty("islandry")
962+ val islandry: Any? = null,
963+
964+ val lameduck: Any? = null,
965+ val overbattle: Any? = null,
966+ val overinterested: Any? = null,
967+ val phrenologic: Any? = null,
968+ val rainband: Any? = null,
969+ val shiningly: Any? = null,
970+ val stamineous: Any? = null,
971+ val subscapularis: Any? = null,
972+
973+ @get:JsonProperty("Tahami")@field:JsonProperty("Tahami")
974+ val tahami: Any? = null,
975+
976+ val undaubed: Any? = null,
977+ val underntime: Any? = null
978+)
979+
980+sealed class Koryak {
981+ class StringValue(val value: String) : Koryak()
982+ class UnionMapValue(val value: Map<String, Long?>) : Koryak()
983+
984+ fun toJson(): String = mapper.writeValueAsString(when (this) {
985+ is StringValue -> this.value
986+ is UnionMapValue -> this.value
987+ })
988+
989+ companion object {
990+ fun fromJson(jn: JsonNode): Koryak = when (jn) {
991+ is TextNode -> StringValue(mapper.treeToValue(jn))
992+ is ObjectNode -> UnionMapValue(mapper.treeToValue(jn))
993+ else -> throw IllegalArgumentException()
994+ }
995+ }
996+}
997+
998+sealed class LaviniaElement {
999+ class LaviniaClassValue(val value: LaviniaClass) : LaviniaElement()
1000+ class StringValue(val value: String) : LaviniaElement()
1001+
1002+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1003+ is LaviniaClassValue -> this.value
1004+ is StringValue -> this.value
1005+ })
1006+
1007+ companion object {
1008+ fun fromJson(jn: JsonNode): LaviniaElement = when (jn) {
1009+ is ObjectNode -> LaviniaClassValue(mapper.treeToValue(jn))
1010+ is TextNode -> StringValue(mapper.treeToValue(jn))
1011+ else -> throw IllegalArgumentException()
1012+ }
1013+ }
1014+}
1015+
1016+data class LaviniaClass (
1017+ val agitable: Long? = null,
1018+ val asininity: Long? = null,
1019+ val benefiter: Long? = null,
1020+ val bronzelike: Long? = null,
1021+ val catharticalness: Double? = null,
1022+
1023+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
1024+ val chirotherium: Long? = null,
1025+
1026+ val cholesteatomatous: Long? = null,
1027+ val deprivement: Long? = null,
1028+ val disdiapason: String? = null,
1029+ val flippantness: Long? = null,
1030+ val fogproof: Long? = null,
1031+ val homocerc: Boolean? = null,
1032+ val merrymeeting: Long? = null,
1033+ val nonbookish: Any? = null,
1034+ val overcareful: Long? = null,
1035+ val panaris: Long? = null,
1036+ val preacceptance: Long? = null,
1037+ val quinoxaline: Long? = null,
1038+ val sig: Long? = null,
1039+ val superconfusion: Long? = null,
1040+
1041+ @get:JsonProperty("Tacana")@field:JsonProperty("Tacana")
1042+ val tacana: Long? = null,
1043+
1044+ val tillotter: Long? = null,
1045+ val tranquillize: Long? = null,
1046+ val unquestionable: Long? = null,
1047+ val uproute: Long? = null
1048+)
1049+
1050+sealed class OskarElement {
1051+ class IntegerArrayValue(val value: List<Long>) : OskarElement()
1052+ class OskarClassValue(val value: OskarClass) : OskarElement()
1053+
1054+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1055+ is IntegerArrayValue -> this.value
1056+ is OskarClassValue -> this.value
1057+ })
1058+
1059+ companion object {
1060+ fun fromJson(jn: JsonNode): OskarElement = when (jn) {
1061+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
1062+ is ObjectNode -> OskarClassValue(mapper.treeToValue(jn))
1063+ else -> throw IllegalArgumentException()
1064+ }
1065+ }
1066+}
1067+
1068+data class OskarClass (
1069+ @get:JsonProperty("Acrobates")@field:JsonProperty("Acrobates")
1070+ val acrobates: Any? = null,
1071+
1072+ val beanshooter: Any? = null,
1073+ val bearhound: Any? = null,
1074+
1075+ @get:JsonProperty("Cayuga")@field:JsonProperty("Cayuga")
1076+ val cayuga: Any? = null,
1077+
1078+ val guarneri: Any? = null,
1079+ val hypochondriacism: Any? = null,
1080+ val indication: Any? = null,
1081+ val jaculative: Any? = null,
1082+ val nagana: Any? = null,
1083+
1084+ @get:JsonProperty("Netherlandish")@field:JsonProperty("Netherlandish")
1085+ val netherlandish: Any? = null,
1086+
1087+ val noctivagous: Any? = null,
1088+ val nonphysiological: Any? = null,
1089+ val praxis: Any? = null,
1090+ val provision: Any? = null,
1091+ val subterhuman: Any? = null,
1092+ val sunlit: Any? = null,
1093+ val syncraniate: Any? = null,
1094+ val teachment: Any? = null,
1095+ val unmutinous: Any? = null,
1096+ val unstoppable: Any? = null
1097+)
1098+
1099+sealed class RebeccaElement {
1100+ class IntegerValue(val value: Long) : RebeccaElement()
1101+ class RebeccaValue(val value: Rebecca) : RebeccaElement()
1102+ class StringValue(val value: String) : RebeccaElement()
1103+
1104+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1105+ is IntegerValue -> this.value
1106+ is RebeccaValue -> this.value
1107+ is StringValue -> this.value
1108+ })
1109+
1110+ companion object {
1111+ fun fromJson(jn: JsonNode): RebeccaElement = when (jn) {
1112+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
1113+ is ObjectNode -> RebeccaValue(mapper.treeToValue(jn))
1114+ is TextNode -> StringValue(mapper.treeToValue(jn))
1115+ else -> throw IllegalArgumentException()
1116+ }
1117+ }
1118+}
1119+
1120+sealed class Rhomboganoidei {
1121+ class IntegerArrayValue(val value: List<Long>) : Rhomboganoidei()
1122+ class RebeccaValue(val value: Rebecca) : Rhomboganoidei()
1123+ class StringValue(val value: String) : Rhomboganoidei()
1124+
1125+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1126+ is IntegerArrayValue -> this.value
1127+ is RebeccaValue -> this.value
1128+ is StringValue -> this.value
1129+ })
1130+
1131+ companion object {
1132+ fun fromJson(jn: JsonNode): Rhomboganoidei = when (jn) {
1133+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
1134+ is ObjectNode -> RebeccaValue(mapper.treeToValue(jn))
1135+ is TextNode -> StringValue(mapper.treeToValue(jn))
1136+ else -> throw IllegalArgumentException()
1137+ }
1138+ }
1139+}
1140+
1141+sealed class Ruellia {
1142+ class BoolValue(val value: Boolean) : Ruellia()
1143+ class RebeccaValue(val value: Rebecca) : Ruellia()
1144+ class StringValue(val value: String) : Ruellia()
1145+
1146+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1147+ is BoolValue -> this.value
1148+ is RebeccaValue -> this.value
1149+ is StringValue -> this.value
1150+ })
1151+
1152+ companion object {
1153+ fun fromJson(jn: JsonNode): Ruellia = when (jn) {
1154+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1155+ is ObjectNode -> RebeccaValue(mapper.treeToValue(jn))
1156+ is TextNode -> StringValue(mapper.treeToValue(jn))
1157+ else -> throw IllegalArgumentException()
1158+ }
1159+ }
1160+}
1161+
1162+sealed class School {
1163+ class IntegerMapValue(val value: Map<String, Long>) : School()
1164+ class IntegerValue(val value: Long) : School()
1165+ class NullValue() : School()
1166+
1167+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1168+ is IntegerMapValue -> this.value
1169+ is IntegerValue -> this.value
1170+ is NullValue -> "null"
1171+ })
1172+
1173+ companion object {
1174+ fun fromJson(jn: JsonNode): School = when (jn) {
1175+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
1176+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
1177+ null -> NullValue()
1178+ else -> throw IllegalArgumentException()
1179+ }
1180+ }
1181+}
1182+
1183+sealed class Shakespearolater {
1184+ class DoubleValue(val value: Double) : Shakespearolater()
1185+ class IntegerArrayValue(val value: List<Long>) : Shakespearolater()
1186+ class StringValue(val value: String) : Shakespearolater()
1187+
1188+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1189+ is DoubleValue -> this.value
1190+ is IntegerArrayValue -> this.value
1191+ is StringValue -> this.value
1192+ })
1193+
1194+ companion object {
1195+ fun fromJson(jn: JsonNode): Shakespearolater = when (jn) {
1196+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1197+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
1198+ is TextNode -> StringValue(mapper.treeToValue(jn))
1199+ else -> throw IllegalArgumentException()
1200+ }
1201+ }
1202+}
Test case

test/inputs/json/priority/combinations3.json

1 generated file · +1,323 −0
Akotlin-jacksondefault / TopLevel.kt+1,323 −0
@@ -0,0 +1,1323 @@
1+// To parse the JSON, install jackson-module-kotlin and do:
2+//
3+// val topLevel = TopLevel.fromJson(jsonString)
4+
5+package quicktype
6+
7+import com.fasterxml.jackson.annotation.*
8+import com.fasterxml.jackson.core.*
9+import com.fasterxml.jackson.databind.*
10+import com.fasterxml.jackson.databind.deser.std.StdDeserializer
11+import com.fasterxml.jackson.databind.module.SimpleModule
12+import com.fasterxml.jackson.databind.node.*
13+import com.fasterxml.jackson.databind.ser.std.StdSerializer
14+import com.fasterxml.jackson.module.kotlin.*
15+
16+
17+@Suppress("UNCHECKED_CAST")
18+private fun <T> ObjectMapper.convert(k: kotlin.reflect.KClass<*>, fromJson: (JsonNode) -> T, toJson: (T) -> String, isUnion: Boolean = false) = registerModule(SimpleModule().apply {
19+ addSerializer(k.java as Class<T>, object : StdSerializer<T>(k.java as Class<T>) {
20+ override fun serialize(value: T, gen: JsonGenerator, provider: SerializerProvider) = gen.writeRawValue(toJson(value))
21+ })
22+ addDeserializer(k.java as Class<T>, object : StdDeserializer<T>(k.java as Class<T>) {
23+ override fun deserialize(p: JsonParser, ctxt: DeserializationContext) = fromJson(p.readValueAsTree())
24+ })
25+})
26+
27+val mapper = jacksonObjectMapper().apply {
28+ propertyNamingStrategy = PropertyNamingStrategy.LOWER_CAMEL_CASE
29+ setSerializationInclusion(JsonInclude.Include.NON_NULL)
30+ convert(JurorElement::class, { JurorElement.fromJson(it) }, { it.toJson() }, true)
31+ convert(Kongoni::class, { Kongoni.fromJson(it) }, { it.toJson() }, true)
32+ convert(LadronismElement::class, { LadronismElement.fromJson(it) }, { it.toJson() }, true)
33+ convert(LandlubberlyElement::class, { LandlubberlyElement.fromJson(it) }, { it.toJson() }, true)
34+ convert(Listener::class, { Listener.fromJson(it) }, { it.toJson() }, true)
35+ convert(LupusElement::class, { LupusElement.fromJson(it) }, { it.toJson() }, true)
36+ convert(MonaziteElement::class, { MonaziteElement.fromJson(it) }, { it.toJson() }, true)
37+ convert(Monoliteral::class, { Monoliteral.fromJson(it) }, { it.toJson() }, true)
38+ convert(MonotheisticallyElement::class, { MonotheisticallyElement.fromJson(it) }, { it.toJson() }, true)
39+ convert(Montage::class, { Montage.fromJson(it) }, { it.toJson() }, true)
40+ convert(Moralness::class, { Moralness.fromJson(it) }, { it.toJson() }, true)
41+ convert(Mulishly::class, { Mulishly.fromJson(it) }, { it.toJson() }, true)
42+ convert(Myoscope::class, { Myoscope.fromJson(it) }, { it.toJson() }, true)
43+ convert(Neuromastic::class, { Neuromastic.fromJson(it) }, { it.toJson() }, true)
44+ convert(Nonnervous::class, { Nonnervous.fromJson(it) }, { it.toJson() }, true)
45+ convert(Nonvaluation::class, { Nonvaluation.fromJson(it) }, { it.toJson() }, true)
46+ convert(OccupationalistElement::class, { OccupationalistElement.fromJson(it) }, { it.toJson() }, true)
47+ convert(OutrivalElement::class, { OutrivalElement.fromJson(it) }, { it.toJson() }, true)
48+ convert(Paleographically::class, { Paleographically.fromJson(it) }, { it.toJson() }, true)
49+ convert(Pamphletwise::class, { Pamphletwise.fromJson(it) }, { it.toJson() }, true)
50+ convert(Pediatric::class, { Pediatric.fromJson(it) }, { it.toJson() }, true)
51+ convert(PiaculumElement::class, { PiaculumElement.fromJson(it) }, { it.toJson() }, true)
52+ convert(Piccadilly::class, { Piccadilly.fromJson(it) }, { it.toJson() }, true)
53+ convert(Piffler::class, { Piffler.fromJson(it) }, { it.toJson() }, true)
54+ convert(Pithful::class, { Pithful.fromJson(it) }, { it.toJson() }, true)
55+ convert(Placuntiti::class, { Placuntiti.fromJson(it) }, { it.toJson() }, true)
56+ convert(Plectopterous::class, { Plectopterous.fromJson(it) }, { it.toJson() }, true)
57+ convert(Poliorcetic::class, { Poliorcetic.fromJson(it) }, { it.toJson() }, true)
58+ convert(Poormaster::class, { Poormaster.fromJson(it) }, { it.toJson() }, true)
59+ convert(PotwhiskyElement::class, { PotwhiskyElement.fromJson(it) }, { it.toJson() }, true)
60+ convert(Practicalizer::class, { Practicalizer.fromJson(it) }, { it.toJson() }, true)
61+ convert(PrefreshmanElement::class, { PrefreshmanElement.fromJson(it) }, { it.toJson() }, true)
62+ convert(Prehensility::class, { Prehensility.fromJson(it) }, { it.toJson() }, true)
63+ convert(Prevoidance::class, { Prevoidance.fromJson(it) }, { it.toJson() }, true)
64+ convert(Protext::class, { Protext.fromJson(it) }, { it.toJson() }, true)
65+}
66+
67+data class TopLevel (
68+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
69+ val juror: List<JurorElement>,
70+
71+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
72+ val kongoni: List<Kongoni>,
73+
74+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
75+ val ladronism: List<LadronismElement>,
76+
77+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
78+ val landlubberly: List<LandlubberlyElement>,
79+
80+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
81+ val listener: List<Listener>,
82+
83+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
84+ val lupus: List<LupusElement>,
85+
86+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
87+ val maslin: List<Maslin>,
88+
89+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
90+ val monazite: List<MonaziteElement>,
91+
92+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
93+ val monoliteral: List<Monoliteral>,
94+
95+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
96+ val monotheistically: List<MonotheisticallyElement>,
97+
98+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
99+ val montage: List<Montage>,
100+
101+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
102+ val moralness: List<Moralness>,
103+
104+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
105+ val mowra: List<MonaziteClass?>,
106+
107+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
108+ val mulishly: List<Mulishly>,
109+
110+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
111+ val myoscope: List<Myoscope>,
112+
113+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
114+ val nach: List<List<Long?>?>,
115+
116+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
117+ val neuromastic: List<Neuromastic>,
118+
119+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
120+ val noncontributing: List<Noncontributing>,
121+
122+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
123+ val nonnervous: List<Nonnervous>,
124+
125+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
126+ val nonvaluation: List<Nonvaluation>,
127+
128+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
129+ val occupationalist: List<OccupationalistElement>,
130+
131+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
132+ val outrival: List<OutrivalElement>,
133+
134+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
135+ val paleographically: List<Paleographically>,
136+
137+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
138+ val pamphletwise: List<Pamphletwise>,
139+
140+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
141+ val pediatrics: List<Pediatric>,
142+
143+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
144+ val perceptive: List<Boolean>,
145+
146+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
147+ val piaculum: List<PiaculumElement>,
148+
149+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
150+ val piccadilly: List<Piccadilly>,
151+
152+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
153+ val piffler: List<Piffler>,
154+
155+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
156+ val pithful: List<Pithful>,
157+
158+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
159+ val placuntitis: List<Placuntiti>,
160+
161+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
162+ val plectopterous: List<Plectopterous>,
163+
164+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
165+ val pneumocele: List<Pneumocele?>,
166+
167+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
168+ val poliorcetic: List<Poliorcetic>,
169+
170+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
171+ val poormaster: List<Poormaster>,
172+
173+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
174+ val potwhisky: List<PotwhiskyElement>,
175+
176+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
177+ val practicalizer: List<Practicalizer>,
178+
179+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
180+ val prefreshman: List<PrefreshmanElement>,
181+
182+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
183+ val prehensility: List<Prehensility>,
184+
185+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
186+ val prevoidance: List<Prevoidance>,
187+
188+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
189+ val probant: List<Map<String, Long?>>,
190+
191+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
192+ val protext: List<Protext>
193+) {
194+ fun toJson() = mapper.writeValueAsString(this)
195+
196+ companion object {
197+ fun fromJson(json: String) = mapper.readValue<TopLevel>(json)
198+ }
199+}
200+
201+sealed class JurorElement {
202+ class BoolValue(val value: Boolean) : JurorElement()
203+ class JurorClassValue(val value: JurorClass) : JurorElement()
204+
205+ fun toJson(): String = mapper.writeValueAsString(when (this) {
206+ is BoolValue -> this.value
207+ is JurorClassValue -> this.value
208+ })
209+
210+ companion object {
211+ fun fromJson(jn: JsonNode): JurorElement = when (jn) {
212+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
213+ is ObjectNode -> JurorClassValue(mapper.treeToValue(jn))
214+ else -> throw IllegalArgumentException()
215+ }
216+ }
217+}
218+
219+data class JurorClass (
220+ val adipsy: Any? = null,
221+ val auxiliator: Any? = null,
222+ val benda: Any? = null,
223+ val benjamin: Any? = null,
224+ val brandling: Any? = null,
225+ val epicurishly: Any? = null,
226+ val eremochaetous: Any? = null,
227+ val marten: Any? = null,
228+ val monocline: Any? = null,
229+
230+ @get:JsonProperty("Olea")@field:JsonProperty("Olea")
231+ val olea: Any? = null,
232+
233+ val palgat: Any? = null,
234+ val pennyworth: Any? = null,
235+ val pioury: Any? = null,
236+ val pragmatistic: Any? = null,
237+ val stylelessness: Any? = null,
238+ val systematical: Any? = null,
239+ val thready: Any? = null,
240+ val uncontemporary: Any? = null,
241+ val uncouched: Any? = null,
242+ val uninhabitedness: Any? = null
243+)
244+
245+sealed class Kongoni {
246+ class IntegerArrayValue(val value: List<Long>) : Kongoni()
247+ class IntegerMapValue(val value: Map<String, Long>) : Kongoni()
248+
249+ fun toJson(): String = mapper.writeValueAsString(when (this) {
250+ is IntegerArrayValue -> this.value
251+ is IntegerMapValue -> this.value
252+ })
253+
254+ companion object {
255+ fun fromJson(jn: JsonNode): Kongoni = when (jn) {
256+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
257+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
258+ else -> throw IllegalArgumentException()
259+ }
260+ }
261+}
262+
263+sealed class LadronismElement {
264+ class DoubleValue(val value: Double) : LadronismElement()
265+ class LadronismClassValue(val value: LadronismClass) : LadronismElement()
266+ class StringValue(val value: String) : LadronismElement()
267+
268+ fun toJson(): String = mapper.writeValueAsString(when (this) {
269+ is DoubleValue -> this.value
270+ is LadronismClassValue -> this.value
271+ is StringValue -> this.value
272+ })
273+
274+ companion object {
275+ fun fromJson(jn: JsonNode): LadronismElement = when (jn) {
276+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
277+ is ObjectNode -> LadronismClassValue(mapper.treeToValue(jn))
278+ is TextNode -> StringValue(mapper.treeToValue(jn))
279+ else -> throw IllegalArgumentException()
280+ }
281+ }
282+}
283+
284+data class LadronismClass (
285+ val acclaimer: Any? = null,
286+ val achree: Any? = null,
287+ val base: Any? = null,
288+ val conundrumize: Any? = null,
289+ val degerminator: Any? = null,
290+ val describable: Any? = null,
291+ val exasperatedly: Any? = null,
292+ val heroine: Any? = null,
293+ val indazin: Any? = null,
294+ val luteous: Any? = null,
295+ val papular: Any? = null,
296+ val pritch: Any? = null,
297+
298+ @get:JsonProperty("Prodenia")@field:JsonProperty("Prodenia")
299+ val prodenia: Any? = null,
300+
301+ val seege: Any? = null,
302+ val shopgirl: Any? = null,
303+ val tragedietta: Any? = null,
304+ val unsparse: Any? = null,
305+ val uplook: Any? = null,
306+ val vermiformis: Any? = null,
307+ val whafabout: Any? = null
308+)
309+
310+sealed class LandlubberlyElement {
311+ class BoolValue(val value: Boolean) : LandlubberlyElement()
312+ class IntegerValue(val value: Long) : LandlubberlyElement()
313+ class LandlubberlyClassValue(val value: LandlubberlyClass) : LandlubberlyElement()
314+
315+ fun toJson(): String = mapper.writeValueAsString(when (this) {
316+ is BoolValue -> this.value
317+ is IntegerValue -> this.value
318+ is LandlubberlyClassValue -> this.value
319+ })
320+
321+ companion object {
322+ fun fromJson(jn: JsonNode): LandlubberlyElement = when (jn) {
323+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
324+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
325+ is ObjectNode -> LandlubberlyClassValue(mapper.treeToValue(jn))
326+ else -> throw IllegalArgumentException()
327+ }
328+ }
329+}
330+
331+data class LandlubberlyClass (
332+ val acropoleis: Any? = null,
333+ val aminate: Any? = null,
334+
335+ @get:JsonProperty("Amyraldism")@field:JsonProperty("Amyraldism")
336+ val amyraldism: Any? = null,
337+
338+ val bipenniform: Any? = null,
339+ val bugre: Any? = null,
340+ val calycule: Any? = null,
341+ val caoutchouc: Any? = null,
342+ val disprover: Any? = null,
343+ val fitroot: Any? = null,
344+ val fulgently: Any? = null,
345+ val kickup: Any? = null,
346+ val laevoversion: Any? = null,
347+ val moter: Any? = null,
348+ val objectivity: Any? = null,
349+ val posterity: Any? = null,
350+ val postnuptial: Any? = null,
351+ val precedentary: Any? = null,
352+ val saddling: Any? = null,
353+ val subcurrent: Any? = null,
354+ val unrecriminative: Any? = null
355+)
356+
357+sealed class Listener {
358+ class IntegerValue(val value: Long) : Listener()
359+ class NullArrayValue(val value: List<Any?>) : Listener()
360+
361+ fun toJson(): String = mapper.writeValueAsString(when (this) {
362+ is IntegerValue -> this.value
363+ is NullArrayValue -> this.value
364+ })
365+
366+ companion object {
367+ fun fromJson(jn: JsonNode): Listener = when (jn) {
368+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
369+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
370+ else -> throw IllegalArgumentException()
371+ }
372+ }
373+}
374+
375+sealed class LupusElement {
376+ class IntegerValue(val value: Long) : LupusElement()
377+ class LupusClassValue(val value: LupusClass) : LupusElement()
378+
379+ fun toJson(): String = mapper.writeValueAsString(when (this) {
380+ is IntegerValue -> this.value
381+ is LupusClassValue -> this.value
382+ })
383+
384+ companion object {
385+ fun fromJson(jn: JsonNode): LupusElement = when (jn) {
386+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
387+ is ObjectNode -> LupusClassValue(mapper.treeToValue(jn))
388+ else -> throw IllegalArgumentException()
389+ }
390+ }
391+}
392+
393+data class LupusClass (
394+ val catharticalness: Double? = null,
395+
396+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
397+ val chirotherium: Long? = null,
398+
399+ @get:JsonProperty("Chlorioninae")@field:JsonProperty("Chlorioninae")
400+ val chlorioninae: Long? = null,
401+
402+ @get:JsonProperty("Corvinae")@field:JsonProperty("Corvinae")
403+ val corvinae: Long? = null,
404+
405+ @get:JsonProperty("Crassina")@field:JsonProperty("Crassina")
406+ val crassina: Long? = null,
407+
408+ val disdiapason: String? = null,
409+ val exiguity: Long? = null,
410+ val farcist: Long? = null,
411+ val holographical: Long? = null,
412+ val homocerc: Boolean? = null,
413+ val ichthyophagan: Long? = null,
414+ val implacable: Long? = null,
415+ val nonbookish: Any? = null,
416+ val outshiner: Long? = null,
417+ val overweather: Long? = null,
418+ val protonegroid: Long? = null,
419+ val shallowish: Long? = null,
420+ val snoke: Long? = null,
421+ val snout: Long? = null,
422+ val surveillance: Long? = null,
423+ val threshingtime: Long? = null,
424+
425+ @get:JsonProperty("Thysanocarpus")@field:JsonProperty("Thysanocarpus")
426+ val thysanocarpus: Long? = null,
427+
428+ val unsignificantly: Long? = null,
429+ val unsnap: Long? = null,
430+ val vendible: Long? = null
431+)
432+
433+data class Maslin (
434+ @get:JsonProperty("Alicant")@field:JsonProperty("Alicant")
435+ val alicant: Long? = null,
436+
437+ val antiatonement: Any? = null,
438+ val anticorrosive: Long? = null,
439+ val aphidozer: Any? = null,
440+
441+ @get:JsonProperty("Bakuninist")@field:JsonProperty("Bakuninist")
442+ val bakuninist: Any? = null,
443+
444+ val be: Long? = null,
445+ val catharticalness: Double? = null,
446+
447+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
448+ val chirotherium: Long? = null,
449+
450+ val chub: Long? = null,
451+ val cuprosilicon: Long? = null,
452+ val curtailedly: Long? = null,
453+ val dellenite: Long? = null,
454+
455+ @get:JsonProperty("Dimitry")@field:JsonProperty("Dimitry")
456+ val dimitry: Long? = null,
457+
458+ val disdiapason: String? = null,
459+ val edifying: Any? = null,
460+ val ethmoiditis: Long? = null,
461+ val gastralgy: Any? = null,
462+ val goatherd: Long? = null,
463+ val hammerdress: Long? = null,
464+ val hangfire: Any? = null,
465+ val homocerc: Boolean? = null,
466+ val lacunosity: Long? = null,
467+ val longiloquence: Any? = null,
468+ val mameliere: Long? = null,
469+ val motherless: Any? = null,
470+ val nonbookish: Any? = null,
471+ val noncorrodible: Any? = null,
472+ val nonsensicality: Any? = null,
473+ val oafishly: Long? = null,
474+ val pfund: Any? = null,
475+ val preadvisory: Any? = null,
476+ val retroflexed: Any? = null,
477+ val saccharulmic: Long? = null,
478+ val scowlful: Long? = null,
479+ val secluded: Any? = null,
480+ val slackage: Any? = null,
481+ val sphaeridial: Long? = null,
482+ val spondulics: Any? = null,
483+ val subsecive: Long? = null,
484+ val swellmobsman: Any? = null,
485+ val trachyglossate: Long? = null,
486+ val trialogue: Any? = null,
487+ val unassuaged: Long? = null,
488+ val ungross: Any? = null,
489+ val unjudiciously: Any? = null
490+)
491+
492+sealed class MonaziteElement {
493+ class DoubleValue(val value: Double) : MonaziteElement()
494+ class MonaziteClassValue(val value: MonaziteClass) : MonaziteElement()
495+
496+ fun toJson(): String = mapper.writeValueAsString(when (this) {
497+ is DoubleValue -> this.value
498+ is MonaziteClassValue -> this.value
499+ })
500+
501+ companion object {
502+ fun fromJson(jn: JsonNode): MonaziteElement = when (jn) {
503+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
504+ is ObjectNode -> MonaziteClassValue(mapper.treeToValue(jn))
505+ else -> throw IllegalArgumentException()
506+ }
507+ }
508+}
509+
510+data class MonaziteClass (
511+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
512+ val catharticalness: Double,
513+
514+ @get:JsonProperty("Chirotherium", required=true)@field:JsonProperty("Chirotherium", required=true)
515+ val chirotherium: Long,
516+
517+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
518+ val disdiapason: String,
519+
520+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
521+ val homocerc: Boolean,
522+
523+ val nonbookish: Any? = null
524+)
525+
526+sealed class Monoliteral {
527+ class BoolValue(val value: Boolean) : Monoliteral()
528+ class NullArrayValue(val value: List<Any?>) : Monoliteral()
529+
530+ fun toJson(): String = mapper.writeValueAsString(when (this) {
531+ is BoolValue -> this.value
532+ is NullArrayValue -> this.value
533+ })
534+
535+ companion object {
536+ fun fromJson(jn: JsonNode): Monoliteral = when (jn) {
537+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
538+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
539+ else -> throw IllegalArgumentException()
540+ }
541+ }
542+}
543+
544+sealed class MonotheisticallyElement {
545+ class MonotheisticallyClassValue(val value: MonotheisticallyClass) : MonotheisticallyElement()
546+ class NullArrayValue(val value: List<Any?>) : MonotheisticallyElement()
547+
548+ fun toJson(): String = mapper.writeValueAsString(when (this) {
549+ is MonotheisticallyClassValue -> this.value
550+ is NullArrayValue -> this.value
551+ })
552+
553+ companion object {
554+ fun fromJson(jn: JsonNode): MonotheisticallyElement = when (jn) {
555+ is ObjectNode -> MonotheisticallyClassValue(mapper.treeToValue(jn))
556+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
557+ else -> throw IllegalArgumentException()
558+ }
559+ }
560+}
561+
562+data class MonotheisticallyClass (
563+ val blaspheme: Any? = null,
564+ val catharticalness: Double? = null,
565+ val celiosalpingectomy: Any? = null,
566+
567+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
568+ val chirotherium: Long? = null,
569+
570+ val consummativeness: Any? = null,
571+ val disdiapason: String? = null,
572+ val egestive: Any? = null,
573+ val enchylema: Any? = null,
574+ val gasconade: Any? = null,
575+ val holidayer: Any? = null,
576+ val homocerc: Boolean? = null,
577+ val intuitionalism: Any? = null,
578+ val lophiostomate: Any? = null,
579+ val nonbookish: Any? = null,
580+ val nonvolition: Any? = null,
581+ val palatableness: Any? = null,
582+ val pimpery: Any? = null,
583+ val previolation: Any? = null,
584+ val reconveyance: Any? = null,
585+ val registership: Any? = null,
586+ val rhyacolite: Any? = null,
587+ val smithereens: Any? = null,
588+ val superedification: Any? = null,
589+ val trust: Any? = null,
590+ val whitestone: Any? = null
591+)
592+
593+sealed class Montage {
594+ class DoubleValue(val value: Double) : Montage()
595+ class NullArrayValue(val value: List<Any?>) : Montage()
596+ class StringValue(val value: String) : Montage()
597+
598+ fun toJson(): String = mapper.writeValueAsString(when (this) {
599+ is DoubleValue -> this.value
600+ is NullArrayValue -> this.value
601+ is StringValue -> this.value
602+ })
603+
604+ companion object {
605+ fun fromJson(jn: JsonNode): Montage = when (jn) {
606+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
607+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
608+ is TextNode -> StringValue(mapper.treeToValue(jn))
609+ else -> throw IllegalArgumentException()
610+ }
611+ }
612+}
613+
614+sealed class Moralness {
615+ class DoubleValue(val value: Double) : Moralness()
616+ class NullArrayValue(val value: List<Any?>) : Moralness()
617+ class NullValue() : Moralness()
618+
619+ fun toJson(): String = mapper.writeValueAsString(when (this) {
620+ is DoubleValue -> this.value
621+ is NullArrayValue -> this.value
622+ is NullValue -> "null"
623+ })
624+
625+ companion object {
626+ fun fromJson(jn: JsonNode): Moralness = when (jn) {
627+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
628+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
629+ null -> NullValue()
630+ else -> throw IllegalArgumentException()
631+ }
632+ }
633+}
634+
635+sealed class Mulishly {
636+ class DoubleValue(val value: Double) : Mulishly()
637+ class IntegerArrayValue(val value: List<Long>) : Mulishly()
638+ class NullValue() : Mulishly()
639+
640+ fun toJson(): String = mapper.writeValueAsString(when (this) {
641+ is DoubleValue -> this.value
642+ is IntegerArrayValue -> this.value
643+ is NullValue -> "null"
644+ })
645+
646+ companion object {
647+ fun fromJson(jn: JsonNode): Mulishly = when (jn) {
648+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
649+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
650+ null -> NullValue()
651+ else -> throw IllegalArgumentException()
652+ }
653+ }
654+}
655+
656+sealed class Myoscope {
657+ class BoolValue(val value: Boolean) : Myoscope()
658+ class IntegerValue(val value: Long) : Myoscope()
659+ class NullArrayValue(val value: List<Any?>) : Myoscope()
660+
661+ fun toJson(): String = mapper.writeValueAsString(when (this) {
662+ is BoolValue -> this.value
663+ is IntegerValue -> this.value
664+ is NullArrayValue -> this.value
665+ })
666+
667+ companion object {
668+ fun fromJson(jn: JsonNode): Myoscope = when (jn) {
669+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
670+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
671+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
672+ else -> throw IllegalArgumentException()
673+ }
674+ }
675+}
676+
677+sealed class Neuromastic {
678+ class DoubleValue(val value: Double) : Neuromastic()
679+ class NullArrayValue(val value: List<Any?>) : Neuromastic()
680+
681+ fun toJson(): String = mapper.writeValueAsString(when (this) {
682+ is DoubleValue -> this.value
683+ is NullArrayValue -> this.value
684+ })
685+
686+ companion object {
687+ fun fromJson(jn: JsonNode): Neuromastic = when (jn) {
688+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
689+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
690+ else -> throw IllegalArgumentException()
691+ }
692+ }
693+}
694+
695+data class Noncontributing (
696+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
697+ val estevin: String,
698+
699+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
700+ val jolterhead: Double,
701+
702+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
703+ val sauternes: Long,
704+
705+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
706+ val sparsely: Boolean,
707+
708+ val unrequested: Any? = null
709+)
710+
711+sealed class Nonnervous {
712+ class BoolValue(val value: Boolean) : Nonnervous()
713+ class IntegerValue(val value: Long) : Nonnervous()
714+
715+ fun toJson(): String = mapper.writeValueAsString(when (this) {
716+ is BoolValue -> this.value
717+ is IntegerValue -> this.value
718+ })
719+
720+ companion object {
721+ fun fromJson(jn: JsonNode): Nonnervous = when (jn) {
722+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
723+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
724+ else -> throw IllegalArgumentException()
725+ }
726+ }
727+}
728+
729+sealed class Nonvaluation {
730+ class BoolValue(val value: Boolean) : Nonvaluation()
731+ class DoubleValue(val value: Double) : Nonvaluation()
732+ class NullArrayValue(val value: List<Any?>) : Nonvaluation()
733+
734+ fun toJson(): String = mapper.writeValueAsString(when (this) {
735+ is BoolValue -> this.value
736+ is DoubleValue -> this.value
737+ is NullArrayValue -> this.value
738+ })
739+
740+ companion object {
741+ fun fromJson(jn: JsonNode): Nonvaluation = when (jn) {
742+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
743+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
744+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
745+ else -> throw IllegalArgumentException()
746+ }
747+ }
748+}
749+
750+sealed class OccupationalistElement {
751+ class NullArrayValue(val value: List<Any?>) : OccupationalistElement()
752+ class OccupationalistClassValue(val value: OccupationalistClass) : OccupationalistElement()
753+ class NullValue() : OccupationalistElement()
754+
755+ fun toJson(): String = mapper.writeValueAsString(when (this) {
756+ is NullArrayValue -> this.value
757+ is OccupationalistClassValue -> this.value
758+ is NullValue -> "null"
759+ })
760+
761+ companion object {
762+ fun fromJson(jn: JsonNode): OccupationalistElement = when (jn) {
763+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
764+ is ObjectNode -> OccupationalistClassValue(mapper.treeToValue(jn))
765+ null -> NullValue()
766+ else -> throw IllegalArgumentException()
767+ }
768+ }
769+}
770+
771+data class OccupationalistClass (
772+ val beholdable: Any? = null,
773+ val brotuliform: Any? = null,
774+
775+ @get:JsonProperty("Chimakum")@field:JsonProperty("Chimakum")
776+ val chimakum: Any? = null,
777+
778+ val doodler: Any? = null,
779+ val emulsin: Any? = null,
780+
781+ @get:JsonProperty("Fin")@field:JsonProperty("Fin")
782+ val fin: Any? = null,
783+
784+ val flourishing: Any? = null,
785+ val flueless: Any? = null,
786+ val furtively: Any? = null,
787+ val gritter: Any? = null,
788+ val interwish: Any? = null,
789+ val monoxylic: Any? = null,
790+ val myristic: Any? = null,
791+ val nightwear: Any? = null,
792+ val peruser: Any? = null,
793+ val theoastrological: Any? = null,
794+ val thumby: Any? = null,
795+ val tingitid: Any? = null,
796+ val trailless: Any? = null,
797+ val unpocketed: Any? = null
798+)
799+
800+sealed class OutrivalElement {
801+ class DoubleValue(val value: Double) : OutrivalElement()
802+ class OutrivalClassValue(val value: OutrivalClass) : OutrivalElement()
803+ class NullValue() : OutrivalElement()
804+
805+ fun toJson(): String = mapper.writeValueAsString(when (this) {
806+ is DoubleValue -> this.value
807+ is OutrivalClassValue -> this.value
808+ is NullValue -> "null"
809+ })
810+
811+ companion object {
812+ fun fromJson(jn: JsonNode): OutrivalElement = when (jn) {
813+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
814+ is ObjectNode -> OutrivalClassValue(mapper.treeToValue(jn))
815+ null -> NullValue()
816+ else -> throw IllegalArgumentException()
817+ }
818+ }
819+}
820+
821+data class OutrivalClass (
822+ val adroitly: Any? = null,
823+ val bridehood: Any? = null,
824+
825+ @get:JsonProperty("Castoroides")@field:JsonProperty("Castoroides")
826+ val castoroides: Any? = null,
827+
828+ @get:JsonProperty("Czechoslovak")@field:JsonProperty("Czechoslovak")
829+ val czechoslovak: Any? = null,
830+
831+ val diagenesis: Any? = null,
832+ val dihexahedron: Any? = null,
833+ val dopester: Any? = null,
834+ val eumerism: Any? = null,
835+ val flyness: Any? = null,
836+ val fouler: Any? = null,
837+ val laudanosine: Any? = null,
838+
839+ @get:JsonProperty("Lingulidae")@field:JsonProperty("Lingulidae")
840+ val lingulidae: Any? = null,
841+
842+ val minutary: Any? = null,
843+ val mitra: Any? = null,
844+ val opisthorchiasis: Any? = null,
845+ val pensively: Any? = null,
846+ val pubigerous: Any? = null,
847+ val rebellious: Any? = null,
848+ val recodify: Any? = null,
849+ val unpaced: Any? = null
850+)
851+
852+sealed class Paleographically {
853+ class DoubleValue(val value: Double) : Paleographically()
854+ class UnionMapValue(val value: Map<String, Long?>) : Paleographically()
855+
856+ fun toJson(): String = mapper.writeValueAsString(when (this) {
857+ is DoubleValue -> this.value
858+ is UnionMapValue -> this.value
859+ })
860+
861+ companion object {
862+ fun fromJson(jn: JsonNode): Paleographically = when (jn) {
863+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
864+ is ObjectNode -> UnionMapValue(mapper.treeToValue(jn))
865+ else -> throw IllegalArgumentException()
866+ }
867+ }
868+}
869+
870+sealed class Pamphletwise {
871+ class IntegerMapValue(val value: Map<String, Long>) : Pamphletwise()
872+ class IntegerValue(val value: Long) : Pamphletwise()
873+ class StringValue(val value: String) : Pamphletwise()
874+
875+ fun toJson(): String = mapper.writeValueAsString(when (this) {
876+ is IntegerMapValue -> this.value
877+ is IntegerValue -> this.value
878+ is StringValue -> this.value
879+ })
880+
881+ companion object {
882+ fun fromJson(jn: JsonNode): Pamphletwise = when (jn) {
883+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
884+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
885+ is TextNode -> StringValue(mapper.treeToValue(jn))
886+ else -> throw IllegalArgumentException()
887+ }
888+ }
889+}
890+
891+sealed class Pediatric {
892+ class BoolValue(val value: Boolean) : Pediatric()
893+ class DoubleValue(val value: Double) : Pediatric()
894+ class NullValue() : Pediatric()
895+
896+ fun toJson(): String = mapper.writeValueAsString(when (this) {
897+ is BoolValue -> this.value
898+ is DoubleValue -> this.value
899+ is NullValue -> "null"
900+ })
901+
902+ companion object {
903+ fun fromJson(jn: JsonNode): Pediatric = when (jn) {
904+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
905+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
906+ null -> NullValue()
907+ else -> throw IllegalArgumentException()
908+ }
909+ }
910+}
911+
912+sealed class PiaculumElement {
913+ class DoubleValue(val value: Double) : PiaculumElement()
914+ class PiaculumClassValue(val value: PiaculumClass) : PiaculumElement()
915+
916+ fun toJson(): String = mapper.writeValueAsString(when (this) {
917+ is DoubleValue -> this.value
918+ is PiaculumClassValue -> this.value
919+ })
920+
921+ companion object {
922+ fun fromJson(jn: JsonNode): PiaculumElement = when (jn) {
923+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
924+ is ObjectNode -> PiaculumClassValue(mapper.treeToValue(jn))
925+ else -> throw IllegalArgumentException()
926+ }
927+ }
928+}
929+
930+data class PiaculumClass (
931+ val alada: Long? = null,
932+ val amphistomous: Long? = null,
933+ val boysenberry: Long? = null,
934+ val catharticalness: Double? = null,
935+
936+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
937+ val chirotherium: Long? = null,
938+
939+ val decardinalize: Long? = null,
940+ val discouragement: Long? = null,
941+ val disdiapason: String? = null,
942+ val doitrified: Long? = null,
943+ val hexaspermous: Long? = null,
944+ val homocerc: Boolean? = null,
945+ val insinking: Long? = null,
946+ val loathfulness: Long? = null,
947+ val miasmatical: Long? = null,
948+ val neurofibril: Long? = null,
949+ val nonbookish: Any? = null,
950+ val phonendoscope: Long? = null,
951+ val pilferment: Long? = null,
952+ val predismissory: Long? = null,
953+ val preinscription: Long? = null,
954+ val quotative: Long? = null,
955+ val sienna: Long? = null,
956+ val thorax: Long? = null,
957+ val yachting: Long? = null,
958+
959+ @get:JsonProperty("Zipper")@field:JsonProperty("Zipper")
960+ val zipper: Long? = null
961+)
962+
963+sealed class Piccadilly {
964+ class DoubleValue(val value: Double) : Piccadilly()
965+ class StringValue(val value: String) : Piccadilly()
966+ class NullValue() : Piccadilly()
967+
968+ fun toJson(): String = mapper.writeValueAsString(when (this) {
969+ is DoubleValue -> this.value
970+ is StringValue -> this.value
971+ is NullValue -> "null"
972+ })
973+
974+ companion object {
975+ fun fromJson(jn: JsonNode): Piccadilly = when (jn) {
976+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
977+ is TextNode -> StringValue(mapper.treeToValue(jn))
978+ null -> NullValue()
979+ else -> throw IllegalArgumentException()
980+ }
981+ }
982+}
983+
984+sealed class Piffler {
985+ class MonaziteClassValue(val value: MonaziteClass) : Piffler()
986+ class NullArrayValue(val value: List<Any?>) : Piffler()
987+
988+ fun toJson(): String = mapper.writeValueAsString(when (this) {
989+ is MonaziteClassValue -> this.value
990+ is NullArrayValue -> this.value
991+ })
992+
993+ companion object {
994+ fun fromJson(jn: JsonNode): Piffler = when (jn) {
995+ is ObjectNode -> MonaziteClassValue(mapper.treeToValue(jn))
996+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
997+ else -> throw IllegalArgumentException()
998+ }
999+ }
1000+}
1001+
1002+sealed class Pithful {
1003+ class BoolValue(val value: Boolean) : Pithful()
1004+ class IntegerValue(val value: Long) : Pithful()
1005+ class NullValue() : Pithful()
1006+
1007+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1008+ is BoolValue -> this.value
1009+ is IntegerValue -> this.value
1010+ is NullValue -> "null"
1011+ })
1012+
1013+ companion object {
1014+ fun fromJson(jn: JsonNode): Pithful = when (jn) {
1015+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1016+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
1017+ null -> NullValue()
1018+ else -> throw IllegalArgumentException()
1019+ }
1020+ }
1021+}
1022+
1023+sealed class Placuntiti {
1024+ class IntegerMapValue(val value: Map<String, Long>) : Placuntiti()
1025+ class IntegerValue(val value: Long) : Placuntiti()
1026+
1027+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1028+ is IntegerMapValue -> this.value
1029+ is IntegerValue -> this.value
1030+ })
1031+
1032+ companion object {
1033+ fun fromJson(jn: JsonNode): Placuntiti = when (jn) {
1034+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
1035+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
1036+ else -> throw IllegalArgumentException()
1037+ }
1038+ }
1039+}
1040+
1041+sealed class Plectopterous {
1042+ class DoubleValue(val value: Double) : Plectopterous()
1043+ class IntegerMapValue(val value: Map<String, Long>) : Plectopterous()
1044+
1045+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1046+ is DoubleValue -> this.value
1047+ is IntegerMapValue -> this.value
1048+ })
1049+
1050+ companion object {
1051+ fun fromJson(jn: JsonNode): Plectopterous = when (jn) {
1052+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1053+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
1054+ else -> throw IllegalArgumentException()
1055+ }
1056+ }
1057+}
1058+
1059+data class Pneumocele (
1060+ @get:JsonProperty("Carbonarism")@field:JsonProperty("Carbonarism")
1061+ val carbonarism: Any? = null,
1062+
1063+ val catharticalness: Double? = null,
1064+
1065+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
1066+ val chirotherium: Long? = null,
1067+
1068+ val cineolic: Any? = null,
1069+ val cobbly: Any? = null,
1070+ val conchyliferous: Any? = null,
1071+ val congregation: Any? = null,
1072+ val disdiapason: String? = null,
1073+ val enterotomy: Any? = null,
1074+ val entophytal: Any? = null,
1075+ val fewtrils: Any? = null,
1076+ val herem: Any? = null,
1077+ val homocerc: Boolean? = null,
1078+
1079+ @get:JsonProperty("Koniga")@field:JsonProperty("Koniga")
1080+ val koniga: Any? = null,
1081+
1082+ val meticulosity: Any? = null,
1083+
1084+ @get:JsonProperty("Micky")@field:JsonProperty("Micky")
1085+ val micky: Any? = null,
1086+
1087+ val mismarriage: Any? = null,
1088+ val neurotrophic: Any? = null,
1089+ val nonbookish: Any? = null,
1090+ val persuasively: Any? = null,
1091+ val replaceable: Any? = null,
1092+ val silex: Any? = null,
1093+ val taillight: Any? = null,
1094+ val unjealous: Any? = null,
1095+ val visitorial: Any? = null
1096+)
1097+
1098+sealed class Poliorcetic {
1099+ class BoolValue(val value: Boolean) : Poliorcetic()
1100+ class MonaziteClassValue(val value: MonaziteClass) : Poliorcetic()
1101+
1102+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1103+ is BoolValue -> this.value
1104+ is MonaziteClassValue -> this.value
1105+ })
1106+
1107+ companion object {
1108+ fun fromJson(jn: JsonNode): Poliorcetic = when (jn) {
1109+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1110+ is ObjectNode -> MonaziteClassValue(mapper.treeToValue(jn))
1111+ else -> throw IllegalArgumentException()
1112+ }
1113+ }
1114+}
1115+
1116+sealed class Poormaster {
1117+ class IntegerArrayValue(val value: List<Long>) : Poormaster()
1118+ class IntegerMapValue(val value: Map<String, Long>) : Poormaster()
1119+ class NullValue() : Poormaster()
1120+
1121+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1122+ is IntegerArrayValue -> this.value
1123+ is IntegerMapValue -> this.value
1124+ is NullValue -> "null"
1125+ })
1126+
1127+ companion object {
1128+ fun fromJson(jn: JsonNode): Poormaster = when (jn) {
1129+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
1130+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
1131+ null -> NullValue()
1132+ else -> throw IllegalArgumentException()
1133+ }
1134+ }
1135+}
1136+
1137+sealed class PotwhiskyElement {
1138+ class IntegerValue(val value: Long) : PotwhiskyElement()
1139+ class PotwhiskyClassValue(val value: PotwhiskyClass) : PotwhiskyElement()
1140+ class NullValue() : PotwhiskyElement()
1141+
1142+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1143+ is IntegerValue -> this.value
1144+ is PotwhiskyClassValue -> this.value
1145+ is NullValue -> "null"
1146+ })
1147+
1148+ companion object {
1149+ fun fromJson(jn: JsonNode): PotwhiskyElement = when (jn) {
1150+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
1151+ is ObjectNode -> PotwhiskyClassValue(mapper.treeToValue(jn))
1152+ null -> NullValue()
1153+ else -> throw IllegalArgumentException()
1154+ }
1155+ }
1156+}
1157+
1158+data class PotwhiskyClass (
1159+ val arciform: Any? = null,
1160+ val cresolin: Any? = null,
1161+ val disheartener: Any? = null,
1162+ val disproportionable: Any? = null,
1163+
1164+ @get:JsonProperty("Euchorda")@field:JsonProperty("Euchorda")
1165+ val euchorda: Any? = null,
1166+
1167+ val ferryway: Any? = null,
1168+ val filamentiferous: Any? = null,
1169+ val flemish: Any? = null,
1170+ val forgainst: Any? = null,
1171+ val grainering: Any? = null,
1172+ val irrevoluble: Any? = null,
1173+ val kindredship: Any? = null,
1174+ val pinguitudinous: Any? = null,
1175+ val simpletonic: Any? = null,
1176+ val singsong: Any? = null,
1177+ val submergement: Any? = null,
1178+ val supraoesophagal: Any? = null,
1179+ val thrashel: Any? = null,
1180+ val tyremesis: Any? = null,
1181+
1182+ @get:JsonProperty("Yoruba")@field:JsonProperty("Yoruba")
1183+ val yoruba: Any? = null
1184+)
1185+
1186+sealed class Practicalizer {
1187+ class MonaziteClassValue(val value: MonaziteClass) : Practicalizer()
1188+ class NullArrayValue(val value: List<Any?>) : Practicalizer()
1189+ class StringValue(val value: String) : Practicalizer()
1190+
1191+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1192+ is MonaziteClassValue -> this.value
1193+ is NullArrayValue -> this.value
1194+ is StringValue -> this.value
1195+ })
1196+
1197+ companion object {
1198+ fun fromJson(jn: JsonNode): Practicalizer = when (jn) {
1199+ is ObjectNode -> MonaziteClassValue(mapper.treeToValue(jn))
1200+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
1201+ is TextNode -> StringValue(mapper.treeToValue(jn))
1202+ else -> throw IllegalArgumentException()
1203+ }
1204+ }
1205+}
1206+
1207+sealed class PrefreshmanElement {
1208+ class NullArrayValue(val value: List<Any?>) : PrefreshmanElement()
1209+ class PrefreshmanClassValue(val value: PrefreshmanClass) : PrefreshmanElement()
1210+ class StringValue(val value: String) : PrefreshmanElement()
1211+
1212+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1213+ is NullArrayValue -> this.value
1214+ is PrefreshmanClassValue -> this.value
1215+ is StringValue -> this.value
1216+ })
1217+
1218+ companion object {
1219+ fun fromJson(jn: JsonNode): PrefreshmanElement = when (jn) {
1220+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
1221+ is ObjectNode -> PrefreshmanClassValue(mapper.treeToValue(jn))
1222+ is TextNode -> StringValue(mapper.treeToValue(jn))
1223+ else -> throw IllegalArgumentException()
1224+ }
1225+ }
1226+}
1227+
1228+data class PrefreshmanClass (
1229+ val azorubine: Any? = null,
1230+ val choroiditis: Any? = null,
1231+ val coagulatory: Any? = null,
1232+ val cyclorama: Any? = null,
1233+
1234+ @get:JsonProperty("Dolphus")@field:JsonProperty("Dolphus")
1235+ val dolphus: Any? = null,
1236+
1237+ val duckhearted: Any? = null,
1238+
1239+ @get:JsonProperty("Ficus")@field:JsonProperty("Ficus")
1240+ val ficus: Any? = null,
1241+
1242+ @get:JsonProperty("Gemaric")@field:JsonProperty("Gemaric")
1243+ val gemaric: Any? = null,
1244+
1245+ val jugation: Any? = null,
1246+ val myoliposis: Any? = null,
1247+ val nonnomination: Any? = null,
1248+ val palay: Any? = null,
1249+ val pentactinal: Any? = null,
1250+
1251+ @get:JsonProperty("Phaet")@field:JsonProperty("Phaet")
1252+ val phaet: Any? = null,
1253+
1254+ val piquant: Any? = null,
1255+ val registration: Any? = null,
1256+ val remancipation: Any? = null,
1257+ val scutatiform: Any? = null,
1258+ val theodolite: Any? = null,
1259+ val underward: Any? = null
1260+)
1261+
1262+sealed class Prehensility {
1263+ class BoolValue(val value: Boolean) : Prehensility()
1264+ class MonaziteClassValue(val value: MonaziteClass) : Prehensility()
1265+ class NullArrayValue(val value: List<Any?>) : Prehensility()
1266+
1267+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1268+ is BoolValue -> this.value
1269+ is MonaziteClassValue -> this.value
1270+ is NullArrayValue -> this.value
1271+ })
1272+
1273+ companion object {
1274+ fun fromJson(jn: JsonNode): Prehensility = when (jn) {
1275+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1276+ is ObjectNode -> MonaziteClassValue(mapper.treeToValue(jn))
1277+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
1278+ else -> throw IllegalArgumentException()
1279+ }
1280+ }
1281+}
1282+
1283+sealed class Prevoidance {
1284+ class IntegerArrayValue(val value: List<Long>) : Prevoidance()
1285+ class IntegerValue(val value: Long) : Prevoidance()
1286+ class MonaziteClassValue(val value: MonaziteClass) : Prevoidance()
1287+
1288+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1289+ is IntegerArrayValue -> this.value
1290+ is IntegerValue -> this.value
1291+ is MonaziteClassValue -> this.value
1292+ })
1293+
1294+ companion object {
1295+ fun fromJson(jn: JsonNode): Prevoidance = when (jn) {
1296+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
1297+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
1298+ is ObjectNode -> MonaziteClassValue(mapper.treeToValue(jn))
1299+ else -> throw IllegalArgumentException()
1300+ }
1301+ }
1302+}
1303+
1304+sealed class Protext {
1305+ class BoolValue(val value: Boolean) : Protext()
1306+ class IntegerArrayValue(val value: List<Long>) : Protext()
1307+ class MonaziteClassValue(val value: MonaziteClass) : Protext()
1308+
1309+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1310+ is BoolValue -> this.value
1311+ is IntegerArrayValue -> this.value
1312+ is MonaziteClassValue -> this.value
1313+ })
1314+
1315+ companion object {
1316+ fun fromJson(jn: JsonNode): Protext = when (jn) {
1317+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1318+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
1319+ is ObjectNode -> MonaziteClassValue(mapper.treeToValue(jn))
1320+ else -> throw IllegalArgumentException()
1321+ }
1322+ }
1323+}
Test case

test/inputs/json/priority/combinations4.json

1 generated file · +1,585 −0
Akotlin-jacksondefault / TopLevel.kt+1,585 −0
@@ -0,0 +1,1585 @@
1+// To parse the JSON, install jackson-module-kotlin and do:
2+//
3+// val topLevel = TopLevel.fromJson(jsonString)
4+
5+package quicktype
6+
7+import com.fasterxml.jackson.annotation.*
8+import com.fasterxml.jackson.core.*
9+import com.fasterxml.jackson.databind.*
10+import com.fasterxml.jackson.databind.deser.std.StdDeserializer
11+import com.fasterxml.jackson.databind.module.SimpleModule
12+import com.fasterxml.jackson.databind.node.*
13+import com.fasterxml.jackson.databind.ser.std.StdSerializer
14+import com.fasterxml.jackson.module.kotlin.*
15+
16+
17+@Suppress("UNCHECKED_CAST")
18+private fun <T> ObjectMapper.convert(k: kotlin.reflect.KClass<*>, fromJson: (JsonNode) -> T, toJson: (T) -> String, isUnion: Boolean = false) = registerModule(SimpleModule().apply {
19+ addSerializer(k.java as Class<T>, object : StdSerializer<T>(k.java as Class<T>) {
20+ override fun serialize(value: T, gen: JsonGenerator, provider: SerializerProvider) = gen.writeRawValue(toJson(value))
21+ })
22+ addDeserializer(k.java as Class<T>, object : StdDeserializer<T>(k.java as Class<T>) {
23+ override fun deserialize(p: JsonParser, ctxt: DeserializationContext) = fromJson(p.readValueAsTree())
24+ })
25+})
26+
27+val mapper = jacksonObjectMapper().apply {
28+ propertyNamingStrategy = PropertyNamingStrategy.LOWER_CAMEL_CASE
29+ setSerializationInclusion(JsonInclude.Include.NON_NULL)
30+ convert(Protrusive::class, { Protrusive.fromJson(it) }, { it.toJson() }, true)
31+ convert(PulpitismElement::class, { PulpitismElement.fromJson(it) }, { it.toJson() }, true)
32+ convert(PyodermiaElement::class, { PyodermiaElement.fromJson(it) }, { it.toJson() }, true)
33+ convert(QuebrachineElement::class, { QuebrachineElement.fromJson(it) }, { it.toJson() }, true)
34+ convert(Querier::class, { Querier.fromJson(it) }, { it.toJson() }, true)
35+ convert(Rebarbative::class, { Rebarbative.fromJson(it) }, { it.toJson() }, true)
36+ convert(Retrocervical::class, { Retrocervical.fromJson(it) }, { it.toJson() }, true)
37+ convert(Revert::class, { Revert.fromJson(it) }, { it.toJson() }, true)
38+ convert(RewriteElement::class, { RewriteElement.fromJson(it) }, { it.toJson() }, true)
39+ convert(Saccoderm::class, { Saccoderm.fromJson(it) }, { it.toJson() }, true)
40+ convert(SantirElement::class, { SantirElement.fromJson(it) }, { it.toJson() }, true)
41+ convert(Saprophilous::class, { Saprophilous.fromJson(it) }, { it.toJson() }, true)
42+ convert(SaxtenElement::class, { SaxtenElement.fromJson(it) }, { it.toJson() }, true)
43+ convert(Scoffer::class, { Scoffer.fromJson(it) }, { it.toJson() }, true)
44+ convert(Scrampum::class, { Scrampum.fromJson(it) }, { it.toJson() }, true)
45+ convert(Serpentinic::class, { Serpentinic.fromJson(it) }, { it.toJson() }, true)
46+ convert(Shadowable::class, { Shadowable.fromJson(it) }, { it.toJson() }, true)
47+ convert(SisteringElement::class, { SisteringElement.fromJson(it) }, { it.toJson() }, true)
48+ convert(Stagmometer::class, { Stagmometer.fromJson(it) }, { it.toJson() }, true)
49+ convert(Stimulability::class, { Stimulability.fromJson(it) }, { it.toJson() }, true)
50+ convert(Strangleable::class, { Strangleable.fromJson(it) }, { it.toJson() }, true)
51+ convert(StrenuosityElement::class, { StrenuosityElement.fromJson(it) }, { it.toJson() }, true)
52+ convert(Tabaxir::class, { Tabaxir.fromJson(it) }, { it.toJson() }, true)
53+ convert(Talpiform::class, { Talpiform.fromJson(it) }, { it.toJson() }, true)
54+ convert(Thwack::class, { Thwack.fromJson(it) }, { it.toJson() }, true)
55+ convert(Tortricine::class, { Tortricine.fromJson(it) }, { it.toJson() }, true)
56+ convert(TruantcyElement::class, { TruantcyElement.fromJson(it) }, { it.toJson() }, true)
57+ convert(Unbeginning::class, { Unbeginning.fromJson(it) }, { it.toJson() }, true)
58+ convert(Undesirability::class, { Undesirability.fromJson(it) }, { it.toJson() }, true)
59+ convert(Unerasing::class, { Unerasing.fromJson(it) }, { it.toJson() }, true)
60+ convert(Unguentarium::class, { Unguentarium.fromJson(it) }, { it.toJson() }, true)
61+ convert(UnimpeachablyElement::class, { UnimpeachablyElement.fromJson(it) }, { it.toJson() }, true)
62+ convert(Unmortgaged::class, { Unmortgaged.fromJson(it) }, { it.toJson() }, true)
63+ convert(Unobstructed::class, { Unobstructed.fromJson(it) }, { it.toJson() }, true)
64+ convert(Unreceptivity::class, { Unreceptivity.fromJson(it) }, { it.toJson() }, true)
65+ convert(Unsatisfactoriness::class, { Unsatisfactoriness.fromJson(it) }, { it.toJson() }, true)
66+ convert(UnstressedElement::class, { UnstressedElement.fromJson(it) }, { it.toJson() }, true)
67+ convert(Untasked::class, { Untasked.fromJson(it) }, { it.toJson() }, true)
68+ convert(Unvarying::class, { Unvarying.fromJson(it) }, { it.toJson() }, true)
69+ convert(Vehemently::class, { Vehemently.fromJson(it) }, { it.toJson() }, true)
70+ convert(Whitepot::class, { Whitepot.fromJson(it) }, { it.toJson() }, true)
71+ convert(WrothyElement::class, { WrothyElement.fromJson(it) }, { it.toJson() }, true)
72+}
73+
74+data class TopLevel (
75+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
76+ val protrusive: List<Protrusive>,
77+
78+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
79+ val pulpitism: List<PulpitismElement>,
80+
81+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
82+ val pyodermia: List<PyodermiaElement>,
83+
84+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
85+ val quebrachine: List<QuebrachineElement>,
86+
87+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
88+ val querier: List<Querier>,
89+
90+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
91+ val rebarbative: List<Rebarbative>,
92+
93+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
94+ val reimagine: List<Reimagine>,
95+
96+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
97+ val ressaut: Ressaut,
98+
99+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
100+ val retrocervical: List<Retrocervical>,
101+
102+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
103+ val revert: List<Revert>,
104+
105+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
106+ val rewrite: List<RewriteElement>,
107+
108+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
109+ val saccoderm: List<Saccoderm>,
110+
111+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
112+ val santir: List<SantirElement>,
113+
114+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
115+ val saprophilous: List<Saprophilous>,
116+
117+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
118+ val saxten: List<SaxtenElement>,
119+
120+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
121+ val scatty: List<Scatty?>,
122+
123+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
124+ val scoffer: List<Scoffer>,
125+
126+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
127+ val scrampum: List<Scrampum>,
128+
129+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
130+ val semantic: Double,
131+
132+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
133+ val serpentinic: List<Serpentinic>,
134+
135+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
136+ val shadowable: List<Shadowable>,
137+
138+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
139+ val sistering: List<SisteringElement>,
140+
141+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
142+ val staghunting: List<Staghunting>,
143+
144+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
145+ val stagmometer: List<Stagmometer>,
146+
147+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
148+ val stimulability: List<Stimulability>,
149+
150+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
151+ val strangleable: List<Strangleable>,
152+
153+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
154+ val strenuosity: List<StrenuosityElement>,
155+
156+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
157+ val tabaxir: List<Tabaxir>,
158+
159+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
160+ val talpiform: List<Talpiform>,
161+
162+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
163+ val thwack: List<Thwack>,
164+
165+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
166+ val to: List<Double?>,
167+
168+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
169+ val tortricine: List<Tortricine>,
170+
171+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
172+ val truantcy: List<TruantcyElement>,
173+
174+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
175+ val turgesce: List<String>,
176+
177+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
178+ val unbeginning: List<Unbeginning>,
179+
180+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
181+ val underdunged: List<Double>,
182+
183+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
184+ val undesirability: List<Undesirability>,
185+
186+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
187+ val unerasing: List<Unerasing>,
188+
189+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
190+ val unguentarium: List<Unguentarium>,
191+
192+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
193+ val unimpeachably: List<UnimpeachablyElement>,
194+
195+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
196+ val unmortgaged: List<Unmortgaged>,
197+
198+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
199+ val unobstructed: List<Unobstructed>,
200+
201+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
202+ val unreceptivity: List<Unreceptivity>,
203+
204+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
205+ val unsatisfactoriness: List<Unsatisfactoriness>,
206+
207+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
208+ val unsecurity: List<Long>,
209+
210+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
211+ val unstressed: List<UnstressedElement>,
212+
213+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
214+ val untasked: List<Untasked>,
215+
216+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
217+ val unvarying: List<Unvarying>,
218+
219+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
220+ val vehemently: List<Vehemently>,
221+
222+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
223+ val warriorship: Map<String, Boolean>,
224+
225+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
226+ val whitepot: List<Whitepot>,
227+
228+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
229+ val wrothy: List<WrothyElement>
230+) {
231+ fun toJson() = mapper.writeValueAsString(this)
232+
233+ companion object {
234+ fun fromJson(json: String) = mapper.readValue<TopLevel>(json)
235+ }
236+}
237+
238+sealed class Protrusive {
239+ class DoubleValue(val value: Double) : Protrusive()
240+ class UnionArrayValue(val value: List<Long?>) : Protrusive()
241+
242+ fun toJson(): String = mapper.writeValueAsString(when (this) {
243+ is DoubleValue -> this.value
244+ is UnionArrayValue -> this.value
245+ })
246+
247+ companion object {
248+ fun fromJson(jn: JsonNode): Protrusive = when (jn) {
249+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
250+ is ArrayNode -> UnionArrayValue(mapper.treeToValue(jn))
251+ else -> throw IllegalArgumentException()
252+ }
253+ }
254+}
255+
256+sealed class PulpitismElement {
257+ class DoubleValue(val value: Double) : PulpitismElement()
258+ class IntegerArrayValue(val value: List<Long>) : PulpitismElement()
259+ class PulpitismClassValue(val value: PulpitismClass) : PulpitismElement()
260+
261+ fun toJson(): String = mapper.writeValueAsString(when (this) {
262+ is DoubleValue -> this.value
263+ is IntegerArrayValue -> this.value
264+ is PulpitismClassValue -> this.value
265+ })
266+
267+ companion object {
268+ fun fromJson(jn: JsonNode): PulpitismElement = when (jn) {
269+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
270+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
271+ is ObjectNode -> PulpitismClassValue(mapper.treeToValue(jn))
272+ else -> throw IllegalArgumentException()
273+ }
274+ }
275+}
276+
277+data class PulpitismClass (
278+ val abnet: Any? = null,
279+ val buckhorn: Any? = null,
280+ val calciform: Any? = null,
281+ val chelophore: Any? = null,
282+ val cogitation: Any? = null,
283+ val decreeable: Any? = null,
284+ val despicable: Any? = null,
285+
286+ @get:JsonProperty("isodiazo")@field:JsonProperty("isodiazo")
287+ val isodiazo: Any? = null,
288+
289+ val jadedly: Any? = null,
290+ val leptochlorite: Any? = null,
291+ val nursling: Any? = null,
292+ val palamedean: Any? = null,
293+ val photoheliograph: Any? = null,
294+ val pipewood: Any? = null,
295+ val roberd: Any? = null,
296+ val statable: Any? = null,
297+ val superassume: Any? = null,
298+ val syllabe: Any? = null,
299+ val toughhead: Any? = null,
300+ val underburn: Any? = null
301+)
302+
303+sealed class PyodermiaElement {
304+ class IntegerValue(val value: Long) : PyodermiaElement()
305+ class PyodermiaClassValue(val value: PyodermiaClass) : PyodermiaElement()
306+
307+ fun toJson(): String = mapper.writeValueAsString(when (this) {
308+ is IntegerValue -> this.value
309+ is PyodermiaClassValue -> this.value
310+ })
311+
312+ companion object {
313+ fun fromJson(jn: JsonNode): PyodermiaElement = when (jn) {
314+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
315+ is ObjectNode -> PyodermiaClassValue(mapper.treeToValue(jn))
316+ else -> throw IllegalArgumentException()
317+ }
318+ }
319+}
320+
321+data class PyodermiaClass (
322+ val aphoristically: Any? = null,
323+ val apophyllous: Any? = null,
324+ val cognize: Any? = null,
325+ val dermonosology: Any? = null,
326+
327+ @get:JsonProperty("Gyppo")@field:JsonProperty("Gyppo")
328+ val gyppo: Any? = null,
329+
330+ val ither: Any? = null,
331+ val juglandaceous: Any? = null,
332+ val litho: Any? = null,
333+ val macropterous: Any? = null,
334+ val photographer: Any? = null,
335+ val romancing: Any? = null,
336+ val rumness: Any? = null,
337+ val somniloquist: Any? = null,
338+ val stressfully: Any? = null,
339+ val tactically: Any? = null,
340+ val tracheophony: Any? = null,
341+ val unappositely: Any? = null,
342+ val unclothedly: Any? = null,
343+ val unimplied: Any? = null,
344+ val unsyncopated: Any? = null
345+)
346+
347+sealed class QuebrachineElement {
348+ class BoolValue(val value: Boolean) : QuebrachineElement()
349+ class QuebrachineClassValue(val value: QuebrachineClass) : QuebrachineElement()
350+ class NullValue() : QuebrachineElement()
351+
352+ fun toJson(): String = mapper.writeValueAsString(when (this) {
353+ is BoolValue -> this.value
354+ is QuebrachineClassValue -> this.value
355+ is NullValue -> "null"
356+ })
357+
358+ companion object {
359+ fun fromJson(jn: JsonNode): QuebrachineElement = when (jn) {
360+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
361+ is ObjectNode -> QuebrachineClassValue(mapper.treeToValue(jn))
362+ null -> NullValue()
363+ else -> throw IllegalArgumentException()
364+ }
365+ }
366+}
367+
368+data class QuebrachineClass (
369+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
370+ val catharticalness: Double,
371+
372+ @get:JsonProperty("Chirotherium", required=true)@field:JsonProperty("Chirotherium", required=true)
373+ val chirotherium: Long,
374+
375+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
376+ val disdiapason: String,
377+
378+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
379+ val homocerc: Boolean,
380+
381+ val nonbookish: Any? = null
382+)
383+
384+sealed class Querier {
385+ class BoolValue(val value: Boolean) : Querier()
386+ class IntegerMapValue(val value: Map<String, Long>) : Querier()
387+
388+ fun toJson(): String = mapper.writeValueAsString(when (this) {
389+ is BoolValue -> this.value
390+ is IntegerMapValue -> this.value
391+ })
392+
393+ companion object {
394+ fun fromJson(jn: JsonNode): Querier = when (jn) {
395+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
396+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
397+ else -> throw IllegalArgumentException()
398+ }
399+ }
400+}
401+
402+sealed class Rebarbative {
403+ class BoolValue(val value: Boolean) : Rebarbative()
404+ class DoubleValue(val value: Double) : Rebarbative()
405+ class IntegerArrayValue(val value: List<Long>) : Rebarbative()
406+
407+ fun toJson(): String = mapper.writeValueAsString(when (this) {
408+ is BoolValue -> this.value
409+ is DoubleValue -> this.value
410+ is IntegerArrayValue -> this.value
411+ })
412+
413+ companion object {
414+ fun fromJson(jn: JsonNode): Rebarbative = when (jn) {
415+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
416+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
417+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
418+ else -> throw IllegalArgumentException()
419+ }
420+ }
421+}
422+
423+data class Reimagine (
424+ val adducible: Any? = null,
425+ val anabolin: Any? = null,
426+ val brainy: Any? = null,
427+ val catharticalness: Double? = null,
428+
429+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
430+ val chirotherium: Long? = null,
431+
432+ val chrysamine: Any? = null,
433+ val disdiapason: String? = null,
434+ val fluxweed: Any? = null,
435+ val glaucine: Any? = null,
436+ val grobianism: Any? = null,
437+
438+ @get:JsonProperty("Hermo")@field:JsonProperty("Hermo")
439+ val hermo: Any? = null,
440+
441+ val hieroglyphist: Any? = null,
442+ val homocerc: Boolean? = null,
443+ val icteroid: Any? = null,
444+ val immortal: Any? = null,
445+ val impetulant: Any? = null,
446+ val irrigate: Any? = null,
447+ val myxedema: Any? = null,
448+ val nonbookish: Any? = null,
449+ val onyx: Any? = null,
450+ val repasser: Any? = null,
451+ val septomarginal: Any? = null,
452+ val subdie: Any? = null,
453+ val tibiometatarsal: Any? = null,
454+ val waltzlike: Any? = null
455+)
456+
457+data class Ressaut (
458+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
459+ val apperceptive: String,
460+
461+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
462+ val cuttoo: String,
463+
464+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
465+ val douser: String,
466+
467+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
468+ val drinkproof: String,
469+
470+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
471+ val forementioned: String,
472+
473+ @get:JsonProperty("Freesia", required=true)@field:JsonProperty("Freesia", required=true)
474+ val freesia: String,
475+
476+ @get:JsonProperty("Genevieve", required=true)@field:JsonProperty("Genevieve", required=true)
477+ val genevieve: String,
478+
479+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
480+ val hyperdiabolical: String,
481+
482+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
483+ val hypocone: String,
484+
485+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
486+ val irreverentially: String,
487+
488+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
489+ val jumart: String,
490+
491+ @get:JsonProperty("Mimosaceae", required=true)@field:JsonProperty("Mimosaceae", required=true)
492+ val mimosaceae: String,
493+
494+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
495+ val mollicrush: String,
496+
497+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
498+ val nedder: String,
499+
500+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
501+ val retinasphalt: String,
502+
503+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
504+ val sough: String,
505+
506+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
507+ val steading: String,
508+
509+ @get:JsonProperty("Theopaschitism", required=true)@field:JsonProperty("Theopaschitism", required=true)
510+ val theopaschitism: String,
511+
512+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
513+ val undurableness: String,
514+
515+ @get:JsonProperty(required=true)@field:JsonProperty(required=true)
516+ val unmingleable: String
517+)
518+
519+sealed class Retrocervical {
520+ class IntegerValue(val value: Long) : Retrocervical()
521+ class UnionArrayValue(val value: List<Long?>) : Retrocervical()
522+
523+ fun toJson(): String = mapper.writeValueAsString(when (this) {
524+ is IntegerValue -> this.value
525+ is UnionArrayValue -> this.value
526+ })
527+
528+ companion object {
529+ fun fromJson(jn: JsonNode): Retrocervical = when (jn) {
530+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
531+ is ArrayNode -> UnionArrayValue(mapper.treeToValue(jn))
532+ else -> throw IllegalArgumentException()
533+ }
534+ }
535+}
536+
537+sealed class Revert {
538+ class BoolValue(val value: Boolean) : Revert()
539+ class StringValue(val value: String) : Revert()
540+
541+ fun toJson(): String = mapper.writeValueAsString(when (this) {
542+ is BoolValue -> this.value
543+ is StringValue -> this.value
544+ })
545+
546+ companion object {
547+ fun fromJson(jn: JsonNode): Revert = when (jn) {
548+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
549+ is TextNode -> StringValue(mapper.treeToValue(jn))
550+ else -> throw IllegalArgumentException()
551+ }
552+ }
553+}
554+
555+sealed class RewriteElement {
556+ class DoubleValue(val value: Double) : RewriteElement()
557+ class NullArrayValue(val value: List<Any?>) : RewriteElement()
558+ class RewriteClassValue(val value: RewriteClass) : RewriteElement()
559+
560+ fun toJson(): String = mapper.writeValueAsString(when (this) {
561+ is DoubleValue -> this.value
562+ is NullArrayValue -> this.value
563+ is RewriteClassValue -> this.value
564+ })
565+
566+ companion object {
567+ fun fromJson(jn: JsonNode): RewriteElement = when (jn) {
568+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
569+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
570+ is ObjectNode -> RewriteClassValue(mapper.treeToValue(jn))
571+ else -> throw IllegalArgumentException()
572+ }
573+ }
574+}
575+
576+data class RewriteClass (
577+ val accountancy: Any? = null,
578+ val cacotrophic: Any? = null,
579+ val contest: Any? = null,
580+ val couthily: Any? = null,
581+ val falculate: Any? = null,
582+ val foreseize: Any? = null,
583+
584+ @get:JsonProperty("Hyades")@field:JsonProperty("Hyades")
585+ val hyades: Any? = null,
586+
587+ val lemnad: Any? = null,
588+ val monotheistically: Any? = null,
589+ val nonflying: Any? = null,
590+
591+ @get:JsonProperty("Ptenoglossa")@field:JsonProperty("Ptenoglossa")
592+ val ptenoglossa: Any? = null,
593+
594+ val repatch: Any? = null,
595+ val rodman: Any? = null,
596+ val strung: Any? = null,
597+ val titmal: Any? = null,
598+ val twalpennyworth: Any? = null,
599+ val unblamable: Any? = null,
600+ val vertical: Any? = null,
601+
602+ @get:JsonProperty("Whiggification")@field:JsonProperty("Whiggification")
603+ val whiggification: Any? = null,
604+
605+ val yardman: Any? = null
606+)
607+
608+sealed class Saccoderm {
609+ class IntegerArrayValue(val value: List<Long>) : Saccoderm()
610+ class StringValue(val value: String) : Saccoderm()
611+ class NullValue() : Saccoderm()
612+
613+ fun toJson(): String = mapper.writeValueAsString(when (this) {
614+ is IntegerArrayValue -> this.value
615+ is StringValue -> this.value
616+ is NullValue -> "null"
617+ })
618+
619+ companion object {
620+ fun fromJson(jn: JsonNode): Saccoderm = when (jn) {
621+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
622+ is TextNode -> StringValue(mapper.treeToValue(jn))
623+ null -> NullValue()
624+ else -> throw IllegalArgumentException()
625+ }
626+ }
627+}
628+
629+sealed class SantirElement {
630+ class DoubleValue(val value: Double) : SantirElement()
631+ class SantirClassValue(val value: SantirClass) : SantirElement()
632+
633+ fun toJson(): String = mapper.writeValueAsString(when (this) {
634+ is DoubleValue -> this.value
635+ is SantirClassValue -> this.value
636+ })
637+
638+ companion object {
639+ fun fromJson(jn: JsonNode): SantirElement = when (jn) {
640+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
641+ is ObjectNode -> SantirClassValue(mapper.treeToValue(jn))
642+ else -> throw IllegalArgumentException()
643+ }
644+ }
645+}
646+
647+data class SantirClass (
648+ val admiredly: Any? = null,
649+ val demicaponier: Any? = null,
650+ val epitympanic: Any? = null,
651+ val investitor: Any? = null,
652+ val lupiform: Any? = null,
653+ val monoflagellate: Any? = null,
654+ val paleoethnic: Any? = null,
655+ val prediscountable: Any? = null,
656+ val rhetoricals: Any? = null,
657+ val roomth: Any? = null,
658+ val saccharose: Any? = null,
659+ val septonasal: Any? = null,
660+ val serpenticide: Any? = null,
661+ val setarious: Any? = null,
662+ val spaework: Any? = null,
663+ val stylite: Any? = null,
664+
665+ @get:JsonProperty("Suessiones")@field:JsonProperty("Suessiones")
666+ val suessiones: Any? = null,
667+
668+ val timelily: Any? = null,
669+ val unprofaned: Any? = null,
670+ val vorticular: Any? = null
671+)
672+
673+sealed class Saprophilous {
674+ class IntegerMapValue(val value: Map<String, Long>) : Saprophilous()
675+ class StringValue(val value: String) : Saprophilous()
676+ class NullValue() : Saprophilous()
677+
678+ fun toJson(): String = mapper.writeValueAsString(when (this) {
679+ is IntegerMapValue -> this.value
680+ is StringValue -> this.value
681+ is NullValue -> "null"
682+ })
683+
684+ companion object {
685+ fun fromJson(jn: JsonNode): Saprophilous = when (jn) {
686+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
687+ is TextNode -> StringValue(mapper.treeToValue(jn))
688+ null -> NullValue()
689+ else -> throw IllegalArgumentException()
690+ }
691+ }
692+}
693+
694+sealed class SaxtenElement {
695+ class SaxtenClassValue(val value: SaxtenClass) : SaxtenElement()
696+ class StringValue(val value: String) : SaxtenElement()
697+
698+ fun toJson(): String = mapper.writeValueAsString(when (this) {
699+ is SaxtenClassValue -> this.value
700+ is StringValue -> this.value
701+ })
702+
703+ companion object {
704+ fun fromJson(jn: JsonNode): SaxtenElement = when (jn) {
705+ is ObjectNode -> SaxtenClassValue(mapper.treeToValue(jn))
706+ is TextNode -> StringValue(mapper.treeToValue(jn))
707+ else -> throw IllegalArgumentException()
708+ }
709+ }
710+}
711+
712+data class SaxtenClass (
713+ val algarrobilla: Any? = null,
714+ val bowgrace: Any? = null,
715+ val catharticalness: Double? = null,
716+
717+ @get:JsonProperty("Centaurid")@field:JsonProperty("Centaurid")
718+ val centaurid: Any? = null,
719+
720+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
721+ val chirotherium: Long? = null,
722+
723+ val disdiapason: String? = null,
724+ val flix: Any? = null,
725+ val germanely: Any? = null,
726+ val homocerc: Boolean? = null,
727+ val inhume: Any? = null,
728+ val lepidote: Any? = null,
729+ val megalochirous: Any? = null,
730+ val ninepenny: Any? = null,
731+ val nonbookish: Any? = null,
732+ val nondeist: Any? = null,
733+ val nymphaeaceous: Any? = null,
734+ val parietofrontal: Any? = null,
735+ val sancyite: Any? = null,
736+ val subjectivist: Any? = null,
737+ val tibiad: Any? = null,
738+ val transonic: Any? = null,
739+ val tripetalous: Any? = null,
740+ val trunchman: Any? = null,
741+ val urger: Any? = null,
742+ val withdrawnness: Any? = null
743+)
744+
745+data class Scatty (
746+ val aeriferous: Any? = null,
747+ val antical: Any? = null,
748+ val antighostism: Any? = null,
749+ val arcanum: Any? = null,
750+ val autotrophy: Any? = null,
751+ val baronial: Any? = null,
752+ val caffeine: Any? = null,
753+ val gorgoniacean: Any? = null,
754+ val heroical: Any? = null,
755+ val hydropical: Any? = null,
756+ val mechanology: Any? = null,
757+ val musicopoetic: Any? = null,
758+ val officiality: Any? = null,
759+ val oftentimes: Any? = null,
760+ val ophthalmotonometer: Any? = null,
761+ val reflectively: Any? = null,
762+ val springer: Any? = null,
763+
764+ @get:JsonProperty("Tabasco")@field:JsonProperty("Tabasco")
765+ val tabasco: Any? = null,
766+
767+ val teleianthous: Any? = null,
768+ val uncombated: Any? = null
769+)
770+
771+sealed class Scoffer {
772+ class IntegerMapValue(val value: Map<String, Long>) : Scoffer()
773+ class NullArrayValue(val value: List<Any?>) : Scoffer()
774+ class NullValue() : Scoffer()
775+
776+ fun toJson(): String = mapper.writeValueAsString(when (this) {
777+ is IntegerMapValue -> this.value
778+ is NullArrayValue -> this.value
779+ is NullValue -> "null"
780+ })
781+
782+ companion object {
783+ fun fromJson(jn: JsonNode): Scoffer = when (jn) {
784+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
785+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
786+ null -> NullValue()
787+ else -> throw IllegalArgumentException()
788+ }
789+ }
790+}
791+
792+sealed class Scrampum {
793+ class BoolValue(val value: Boolean) : Scrampum()
794+ class IntegerArrayValue(val value: List<Long>) : Scrampum()
795+ class NullValue() : Scrampum()
796+
797+ fun toJson(): String = mapper.writeValueAsString(when (this) {
798+ is BoolValue -> this.value
799+ is IntegerArrayValue -> this.value
800+ is NullValue -> "null"
801+ })
802+
803+ companion object {
804+ fun fromJson(jn: JsonNode): Scrampum = when (jn) {
805+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
806+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
807+ null -> NullValue()
808+ else -> throw IllegalArgumentException()
809+ }
810+ }
811+}
812+
813+sealed class Serpentinic {
814+ class DoubleValue(val value: Double) : Serpentinic()
815+ class IntegerArrayValue(val value: List<Long>) : Serpentinic()
816+
817+ fun toJson(): String = mapper.writeValueAsString(when (this) {
818+ is DoubleValue -> this.value
819+ is IntegerArrayValue -> this.value
820+ })
821+
822+ companion object {
823+ fun fromJson(jn: JsonNode): Serpentinic = when (jn) {
824+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
825+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
826+ else -> throw IllegalArgumentException()
827+ }
828+ }
829+}
830+
831+sealed class Shadowable {
832+ class BoolValue(val value: Boolean) : Shadowable()
833+ class UnionArrayValue(val value: List<Long?>) : Shadowable()
834+
835+ fun toJson(): String = mapper.writeValueAsString(when (this) {
836+ is BoolValue -> this.value
837+ is UnionArrayValue -> this.value
838+ })
839+
840+ companion object {
841+ fun fromJson(jn: JsonNode): Shadowable = when (jn) {
842+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
843+ is ArrayNode -> UnionArrayValue(mapper.treeToValue(jn))
844+ else -> throw IllegalArgumentException()
845+ }
846+ }
847+}
848+
849+sealed class SisteringElement {
850+ class IntegerValue(val value: Long) : SisteringElement()
851+ class NullArrayValue(val value: List<Any?>) : SisteringElement()
852+ class SisteringClassValue(val value: SisteringClass) : SisteringElement()
853+
854+ fun toJson(): String = mapper.writeValueAsString(when (this) {
855+ is IntegerValue -> this.value
856+ is NullArrayValue -> this.value
857+ is SisteringClassValue -> this.value
858+ })
859+
860+ companion object {
861+ fun fromJson(jn: JsonNode): SisteringElement = when (jn) {
862+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
863+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
864+ is ObjectNode -> SisteringClassValue(mapper.treeToValue(jn))
865+ else -> throw IllegalArgumentException()
866+ }
867+ }
868+}
869+
870+data class SisteringClass (
871+ val amphicarpic: Any? = null,
872+
873+ @get:JsonProperty("Chianti")@field:JsonProperty("Chianti")
874+ val chianti: Any? = null,
875+
876+ val frigorific: Any? = null,
877+
878+ @get:JsonProperty("Haplomi")@field:JsonProperty("Haplomi")
879+ val haplomi: Any? = null,
880+
881+ val hyperkinesis: Any? = null,
882+ val laudable: Any? = null,
883+ val madwoman: Any? = null,
884+ val maimedly: Any? = null,
885+
886+ @get:JsonProperty("Micropterygidae")@field:JsonProperty("Micropterygidae")
887+ val micropterygidae: Any? = null,
888+
889+ val microrhabdus: Any? = null,
890+ val nondense: Any? = null,
891+ val phlebemphraxis: Any? = null,
892+ val redsear: Any? = null,
893+ val schismatical: Any? = null,
894+ val tartryl: Any? = null,
895+ val unabhorred: Any? = null,
896+ val undeliberateness: Any? = null,
897+ val unmixable: Any? = null,
898+ val untruckling: Any? = null,
899+ val vineal: Any? = null
900+)
901+
902+data class Staghunting (
903+ val calorimetric: Long? = null,
904+ val canid: Long? = null,
905+ val catharticalness: Double? = null,
906+
907+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
908+ val chirotherium: Long? = null,
909+
910+ val disdiapason: String? = null,
911+ val ditriglyphic: Long? = null,
912+ val floriferousness: Long? = null,
913+ val gamelike: Long? = null,
914+ val grig: Long? = null,
915+ val homocerc: Boolean? = null,
916+ val interloan: Long? = null,
917+ val lithotomy: Long? = null,
918+ val loric: Long? = null,
919+ val membranocoriaceous: Long? = null,
920+ val membranogenic: Long? = null,
921+ val nonbookish: Any? = null,
922+ val overtrump: Long? = null,
923+ val scotino: Long? = null,
924+ val seasonable: Long? = null,
925+ val sephen: Long? = null,
926+ val stigmarioid: Long? = null,
927+ val tired: Long? = null,
928+ val trifid: Long? = null,
929+ val undefeatedly: Long? = null,
930+ val ungirlish: Long? = null
931+)
932+
933+sealed class Stagmometer {
934+ class StringValue(val value: String) : Stagmometer()
935+ class UnionArrayValue(val value: List<Long?>) : Stagmometer()
936+
937+ fun toJson(): String = mapper.writeValueAsString(when (this) {
938+ is StringValue -> this.value
939+ is UnionArrayValue -> this.value
940+ })
941+
942+ companion object {
943+ fun fromJson(jn: JsonNode): Stagmometer = when (jn) {
944+ is TextNode -> StringValue(mapper.treeToValue(jn))
945+ is ArrayNode -> UnionArrayValue(mapper.treeToValue(jn))
946+ else -> throw IllegalArgumentException()
947+ }
948+ }
949+}
950+
951+sealed class Stimulability {
952+ class BoolValue(val value: Boolean) : Stimulability()
953+ class IntegerMapValue(val value: Map<String, Long>) : Stimulability()
954+ class IntegerValue(val value: Long) : Stimulability()
955+
956+ fun toJson(): String = mapper.writeValueAsString(when (this) {
957+ is BoolValue -> this.value
958+ is IntegerMapValue -> this.value
959+ is IntegerValue -> this.value
960+ })
961+
962+ companion object {
963+ fun fromJson(jn: JsonNode): Stimulability = when (jn) {
964+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
965+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
966+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
967+ else -> throw IllegalArgumentException()
968+ }
969+ }
970+}
971+
972+sealed class Strangleable {
973+ class DoubleValue(val value: Double) : Strangleable()
974+ class NullArrayValue(val value: List<Any?>) : Strangleable()
975+
976+ fun toJson(): String = mapper.writeValueAsString(when (this) {
977+ is DoubleValue -> this.value
978+ is NullArrayValue -> this.value
979+ })
980+
981+ companion object {
982+ fun fromJson(jn: JsonNode): Strangleable = when (jn) {
983+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
984+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
985+ else -> throw IllegalArgumentException()
986+ }
987+ }
988+}
989+
990+sealed class StrenuosityElement {
991+ class NullArrayValue(val value: List<Any?>) : StrenuosityElement()
992+ class StrenuosityClassValue(val value: StrenuosityClass) : StrenuosityElement()
993+
994+ fun toJson(): String = mapper.writeValueAsString(when (this) {
995+ is NullArrayValue -> this.value
996+ is StrenuosityClassValue -> this.value
997+ })
998+
999+ companion object {
1000+ fun fromJson(jn: JsonNode): StrenuosityElement = when (jn) {
1001+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
1002+ is ObjectNode -> StrenuosityClassValue(mapper.treeToValue(jn))
1003+ else -> throw IllegalArgumentException()
1004+ }
1005+ }
1006+}
1007+
1008+data class StrenuosityClass (
1009+ val bliss: Long? = null,
1010+ val buccate: Long? = null,
1011+ val bulletproof: Long? = null,
1012+ val catharticalness: Double? = null,
1013+
1014+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
1015+ val chirotherium: Long? = null,
1016+
1017+ val crumblingness: Long? = null,
1018+ val disdiapason: String? = null,
1019+ val engagedly: Long? = null,
1020+ val fightable: Long? = null,
1021+ val hoariness: Long? = null,
1022+ val homocerc: Boolean? = null,
1023+ val hypopodium: Long? = null,
1024+ val luxurist: Long? = null,
1025+ val mechanician: Long? = null,
1026+ val nonbookish: Any? = null,
1027+
1028+ @get:JsonProperty("Onopordon")@field:JsonProperty("Onopordon")
1029+ val onopordon: Long? = null,
1030+
1031+ val podgily: Long? = null,
1032+ val reformableness: Long? = null,
1033+ val scatterbrains: Long? = null,
1034+ val seminuria: Long? = null,
1035+
1036+ @get:JsonProperty("Sodomite")@field:JsonProperty("Sodomite")
1037+ val sodomite: Long? = null,
1038+
1039+ val tramp: Long? = null,
1040+ val undueness: Long? = null,
1041+ val worthily: Long? = null,
1042+
1043+ @get:JsonProperty("Yankeeist")@field:JsonProperty("Yankeeist")
1044+ val yankeeist: Long? = null
1045+)
1046+
1047+sealed class Tabaxir {
1048+ class BoolValue(val value: Boolean) : Tabaxir()
1049+ class DoubleValue(val value: Double) : Tabaxir()
1050+
1051+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1052+ is BoolValue -> this.value
1053+ is DoubleValue -> this.value
1054+ })
1055+
1056+ companion object {
1057+ fun fromJson(jn: JsonNode): Tabaxir = when (jn) {
1058+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1059+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1060+ else -> throw IllegalArgumentException()
1061+ }
1062+ }
1063+}
1064+
1065+sealed class Talpiform {
1066+ class DoubleValue(val value: Double) : Talpiform()
1067+ class QuebrachineClassValue(val value: QuebrachineClass) : Talpiform()
1068+ class NullValue() : Talpiform()
1069+
1070+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1071+ is DoubleValue -> this.value
1072+ is QuebrachineClassValue -> this.value
1073+ is NullValue -> "null"
1074+ })
1075+
1076+ companion object {
1077+ fun fromJson(jn: JsonNode): Talpiform = when (jn) {
1078+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1079+ is ObjectNode -> QuebrachineClassValue(mapper.treeToValue(jn))
1080+ null -> NullValue()
1081+ else -> throw IllegalArgumentException()
1082+ }
1083+ }
1084+}
1085+
1086+sealed class Thwack {
1087+ class BoolValue(val value: Boolean) : Thwack()
1088+ class DoubleValue(val value: Double) : Thwack()
1089+ class QuebrachineClassValue(val value: QuebrachineClass) : Thwack()
1090+
1091+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1092+ is BoolValue -> this.value
1093+ is DoubleValue -> this.value
1094+ is QuebrachineClassValue -> this.value
1095+ })
1096+
1097+ companion object {
1098+ fun fromJson(jn: JsonNode): Thwack = when (jn) {
1099+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1100+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1101+ is ObjectNode -> QuebrachineClassValue(mapper.treeToValue(jn))
1102+ else -> throw IllegalArgumentException()
1103+ }
1104+ }
1105+}
1106+
1107+sealed class Tortricine {
1108+ class QuebrachineClassValue(val value: QuebrachineClass) : Tortricine()
1109+ class UnionArrayValue(val value: List<Long?>) : Tortricine()
1110+
1111+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1112+ is QuebrachineClassValue -> this.value
1113+ is UnionArrayValue -> this.value
1114+ })
1115+
1116+ companion object {
1117+ fun fromJson(jn: JsonNode): Tortricine = when (jn) {
1118+ is ObjectNode -> QuebrachineClassValue(mapper.treeToValue(jn))
1119+ is ArrayNode -> UnionArrayValue(mapper.treeToValue(jn))
1120+ else -> throw IllegalArgumentException()
1121+ }
1122+ }
1123+}
1124+
1125+sealed class TruantcyElement {
1126+ class BoolValue(val value: Boolean) : TruantcyElement()
1127+ class TruantcyClassValue(val value: TruantcyClass) : TruantcyElement()
1128+
1129+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1130+ is BoolValue -> this.value
1131+ is TruantcyClassValue -> this.value
1132+ })
1133+
1134+ companion object {
1135+ fun fromJson(jn: JsonNode): TruantcyElement = when (jn) {
1136+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1137+ is ObjectNode -> TruantcyClassValue(mapper.treeToValue(jn))
1138+ else -> throw IllegalArgumentException()
1139+ }
1140+ }
1141+}
1142+
1143+data class TruantcyClass (
1144+ val alfiona: Any? = null,
1145+ val ascaridiasis: Any? = null,
1146+ val bungey: Any? = null,
1147+ val catharticalness: Double? = null,
1148+ val ceroxyle: Any? = null,
1149+
1150+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
1151+ val chirotherium: Long? = null,
1152+
1153+ val chorology: Any? = null,
1154+ val disdiapason: String? = null,
1155+ val enmarble: Any? = null,
1156+
1157+ @get:JsonProperty("Epeira")@field:JsonProperty("Epeira")
1158+ val epeira: Any? = null,
1159+
1160+ @get:JsonProperty("Eurylaimi")@field:JsonProperty("Eurylaimi")
1161+ val eurylaimi: Any? = null,
1162+
1163+ val germination: Any? = null,
1164+ val hallelujah: Any? = null,
1165+ val homocerc: Boolean? = null,
1166+ val lev: Any? = null,
1167+ val mouthing: Any? = null,
1168+ val nonbookish: Any? = null,
1169+ val philliloo: Any? = null,
1170+ val planetal: Any? = null,
1171+ val poney: Any? = null,
1172+ val punctualist: Any? = null,
1173+ val returnlessly: Any? = null,
1174+ val skelder: Any? = null,
1175+ val windwaywardly: Any? = null,
1176+
1177+ @get:JsonProperty("Yuman")@field:JsonProperty("Yuman")
1178+ val yuman: Any? = null
1179+)
1180+
1181+sealed class Unbeginning {
1182+ class IntegerMapValue(val value: Map<String, Long>) : Unbeginning()
1183+ class NullArrayValue(val value: List<Any?>) : Unbeginning()
1184+ class StringValue(val value: String) : Unbeginning()
1185+
1186+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1187+ is IntegerMapValue -> this.value
1188+ is NullArrayValue -> this.value
1189+ is StringValue -> this.value
1190+ })
1191+
1192+ companion object {
1193+ fun fromJson(jn: JsonNode): Unbeginning = when (jn) {
1194+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
1195+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
1196+ is TextNode -> StringValue(mapper.treeToValue(jn))
1197+ else -> throw IllegalArgumentException()
1198+ }
1199+ }
1200+}
1201+
1202+sealed class Undesirability {
1203+ class IntegerArrayValue(val value: List<Long>) : Undesirability()
1204+ class IntegerMapValue(val value: Map<String, Long>) : Undesirability()
1205+ class StringValue(val value: String) : Undesirability()
1206+
1207+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1208+ is IntegerArrayValue -> this.value
1209+ is IntegerMapValue -> this.value
1210+ is StringValue -> this.value
1211+ })
1212+
1213+ companion object {
1214+ fun fromJson(jn: JsonNode): Undesirability = when (jn) {
1215+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
1216+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
1217+ is TextNode -> StringValue(mapper.treeToValue(jn))
1218+ else -> throw IllegalArgumentException()
1219+ }
1220+ }
1221+}
1222+
1223+sealed class Unerasing {
1224+ class IntegerMapValue(val value: Map<String, Long>) : Unerasing()
1225+ class IntegerValue(val value: Long) : Unerasing()
1226+ class NullArrayValue(val value: List<Any?>) : Unerasing()
1227+
1228+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1229+ is IntegerMapValue -> this.value
1230+ is IntegerValue -> this.value
1231+ is NullArrayValue -> this.value
1232+ })
1233+
1234+ companion object {
1235+ fun fromJson(jn: JsonNode): Unerasing = when (jn) {
1236+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
1237+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
1238+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
1239+ else -> throw IllegalArgumentException()
1240+ }
1241+ }
1242+}
1243+
1244+sealed class Unguentarium {
1245+ class IntegerValue(val value: Long) : Unguentarium()
1246+ class NullArrayValue(val value: List<Any?>) : Unguentarium()
1247+ class NullValue() : Unguentarium()
1248+
1249+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1250+ is IntegerValue -> this.value
1251+ is NullArrayValue -> this.value
1252+ is NullValue -> "null"
1253+ })
1254+
1255+ companion object {
1256+ fun fromJson(jn: JsonNode): Unguentarium = when (jn) {
1257+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
1258+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
1259+ null -> NullValue()
1260+ else -> throw IllegalArgumentException()
1261+ }
1262+ }
1263+}
1264+
1265+sealed class UnimpeachablyElement {
1266+ class BoolValue(val value: Boolean) : UnimpeachablyElement()
1267+ class UnimpeachablyClassValue(val value: UnimpeachablyClass) : UnimpeachablyElement()
1268+
1269+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1270+ is BoolValue -> this.value
1271+ is UnimpeachablyClassValue -> this.value
1272+ })
1273+
1274+ companion object {
1275+ fun fromJson(jn: JsonNode): UnimpeachablyElement = when (jn) {
1276+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1277+ is ObjectNode -> UnimpeachablyClassValue(mapper.treeToValue(jn))
1278+ else -> throw IllegalArgumentException()
1279+ }
1280+ }
1281+}
1282+
1283+data class UnimpeachablyClass (
1284+ val acerin: Long? = null,
1285+
1286+ @get:JsonProperty("Bobadil")@field:JsonProperty("Bobadil")
1287+ val bobadil: Long? = null,
1288+
1289+ val catharticalness: Double? = null,
1290+
1291+ @get:JsonProperty("Chirotherium")@field:JsonProperty("Chirotherium")
1292+ val chirotherium: Long? = null,
1293+
1294+ val chlorophylligenous: Long? = null,
1295+ val conversational: Long? = null,
1296+ val demiowl: Long? = null,
1297+ val disdiapason: String? = null,
1298+ val ectorhinal: Long? = null,
1299+ val gamblesomeness: Long? = null,
1300+ val homocerc: Boolean? = null,
1301+ val irrorate: Long? = null,
1302+ val kindergartening: Long? = null,
1303+ val lateritic: Long? = null,
1304+ val mespil: Long? = null,
1305+ val misconfiguration: Long? = null,
1306+ val nonbookish: Any? = null,
1307+ val planometry: Long? = null,
1308+
1309+ @get:JsonProperty("Quiina")@field:JsonProperty("Quiina")
1310+ val quiina: Long? = null,
1311+
1312+ @get:JsonProperty("Robert")@field:JsonProperty("Robert")
1313+ val robert: Long? = null,
1314+
1315+ val rot: Long? = null,
1316+ val subcinctorium: Long? = null,
1317+ val tussocker: Long? = null,
1318+ val ultraproud: Long? = null,
1319+ val unsuggestedness: Long? = null
1320+)
1321+
1322+sealed class Unmortgaged {
1323+ class DoubleValue(val value: Double) : Unmortgaged()
1324+ class IntegerMapValue(val value: Map<String, Long>) : Unmortgaged()
1325+ class NullValue() : Unmortgaged()
1326+
1327+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1328+ is DoubleValue -> this.value
1329+ is IntegerMapValue -> this.value
1330+ is NullValue -> "null"
1331+ })
1332+
1333+ companion object {
1334+ fun fromJson(jn: JsonNode): Unmortgaged = when (jn) {
1335+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1336+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
1337+ null -> NullValue()
1338+ else -> throw IllegalArgumentException()
1339+ }
1340+ }
1341+}
1342+
1343+sealed class Unobstructed {
1344+ class IntegerValue(val value: Long) : Unobstructed()
1345+ class QuebrachineClassValue(val value: QuebrachineClass) : Unobstructed()
1346+ class NullValue() : Unobstructed()
1347+
1348+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1349+ is IntegerValue -> this.value
1350+ is QuebrachineClassValue -> this.value
1351+ is NullValue -> "null"
1352+ })
1353+
1354+ companion object {
1355+ fun fromJson(jn: JsonNode): Unobstructed = when (jn) {
1356+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
1357+ is ObjectNode -> QuebrachineClassValue(mapper.treeToValue(jn))
1358+ null -> NullValue()
1359+ else -> throw IllegalArgumentException()
1360+ }
1361+ }
1362+}
1363+
1364+sealed class Unreceptivity {
1365+ class IntegerValue(val value: Long) : Unreceptivity()
1366+ class NullArrayValue(val value: List<Any?>) : Unreceptivity()
1367+ class StringValue(val value: String) : Unreceptivity()
1368+
1369+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1370+ is IntegerValue -> this.value
1371+ is NullArrayValue -> this.value
1372+ is StringValue -> this.value
1373+ })
1374+
1375+ companion object {
1376+ fun fromJson(jn: JsonNode): Unreceptivity = when (jn) {
1377+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
1378+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
1379+ is TextNode -> StringValue(mapper.treeToValue(jn))
1380+ else -> throw IllegalArgumentException()
1381+ }
1382+ }
1383+}
1384+
1385+sealed class Unsatisfactoriness {
1386+ class BoolValue(val value: Boolean) : Unsatisfactoriness()
1387+ class IntegerArrayValue(val value: List<Long>) : Unsatisfactoriness()
1388+ class IntegerValue(val value: Long) : Unsatisfactoriness()
1389+
1390+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1391+ is BoolValue -> this.value
1392+ is IntegerArrayValue -> this.value
1393+ is IntegerValue -> this.value
1394+ })
1395+
1396+ companion object {
1397+ fun fromJson(jn: JsonNode): Unsatisfactoriness = when (jn) {
1398+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1399+ is ArrayNode -> IntegerArrayValue(mapper.treeToValue(jn))
1400+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
1401+ else -> throw IllegalArgumentException()
1402+ }
1403+ }
1404+}
1405+
1406+sealed class UnstressedElement {
1407+ class BoolValue(val value: Boolean) : UnstressedElement()
1408+ class StringValue(val value: String) : UnstressedElement()
1409+ class UnstressedClassValue(val value: UnstressedClass) : UnstressedElement()
1410+
1411+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1412+ is BoolValue -> this.value
1413+ is StringValue -> this.value
1414+ is UnstressedClassValue -> this.value
1415+ })
1416+
1417+ companion object {
1418+ fun fromJson(jn: JsonNode): UnstressedElement = when (jn) {
1419+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1420+ is TextNode -> StringValue(mapper.treeToValue(jn))
1421+ is ObjectNode -> UnstressedClassValue(mapper.treeToValue(jn))
1422+ else -> throw IllegalArgumentException()
1423+ }
1424+ }
1425+}
1426+
1427+data class UnstressedClass (
1428+ @get:JsonProperty("Alain")@field:JsonProperty("Alain")
1429+ val alain: Any? = null,
1430+
1431+ @get:JsonProperty("Amphirhina")@field:JsonProperty("Amphirhina")
1432+ val amphirhina: Any? = null,
1433+
1434+ val antimachinery: Any? = null,
1435+ val coldish: Any? = null,
1436+ val crantara: Any? = null,
1437+ val distinguishing: Any? = null,
1438+ val elytroposis: Any? = null,
1439+ val gentianwort: Any? = null,
1440+ val heliosis: Any? = null,
1441+ val instrumental: Any? = null,
1442+ val introinflection: Any? = null,
1443+ val kala: Any? = null,
1444+
1445+ @get:JsonProperty("Lincolnian")@field:JsonProperty("Lincolnian")
1446+ val lincolnian: Any? = null,
1447+
1448+ val metad: Any? = null,
1449+
1450+ @get:JsonProperty("Sarcophilus")@field:JsonProperty("Sarcophilus")
1451+ val sarcophilus: Any? = null,
1452+
1453+ val swingingly: Any? = null,
1454+ val unconformity: Any? = null,
1455+ val undecreed: Any? = null,
1456+ val venerable: Any? = null,
1457+ val vowellessness: Any? = null
1458+)
1459+
1460+sealed class Untasked {
1461+ class DoubleValue(val value: Double) : Untasked()
1462+ class IntegerMapValue(val value: Map<String, Long>) : Untasked()
1463+ class NullArrayValue(val value: List<Any?>) : Untasked()
1464+
1465+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1466+ is DoubleValue -> this.value
1467+ is IntegerMapValue -> this.value
1468+ is NullArrayValue -> this.value
1469+ })
1470+
1471+ companion object {
1472+ fun fromJson(jn: JsonNode): Untasked = when (jn) {
1473+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1474+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
1475+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
1476+ else -> throw IllegalArgumentException()
1477+ }
1478+ }
1479+}
1480+
1481+sealed class Unvarying {
1482+ class BoolValue(val value: Boolean) : Unvarying()
1483+ class DoubleValue(val value: Double) : Unvarying()
1484+ class IntegerMapValue(val value: Map<String, Long>) : Unvarying()
1485+
1486+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1487+ is BoolValue -> this.value
1488+ is DoubleValue -> this.value
1489+ is IntegerMapValue -> this.value
1490+ })
1491+
1492+ companion object {
1493+ fun fromJson(jn: JsonNode): Unvarying = when (jn) {
1494+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1495+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1496+ is ObjectNode -> IntegerMapValue(mapper.treeToValue(jn))
1497+ else -> throw IllegalArgumentException()
1498+ }
1499+ }
1500+}
1501+
1502+sealed class Vehemently {
1503+ class BoolValue(val value: Boolean) : Vehemently()
1504+ class NullArrayValue(val value: List<Any?>) : Vehemently()
1505+ class NullValue() : Vehemently()
1506+
1507+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1508+ is BoolValue -> this.value
1509+ is NullArrayValue -> this.value
1510+ is NullValue -> "null"
1511+ })
1512+
1513+ companion object {
1514+ fun fromJson(jn: JsonNode): Vehemently = when (jn) {
1515+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1516+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
1517+ null -> NullValue()
1518+ else -> throw IllegalArgumentException()
1519+ }
1520+ }
1521+}
1522+
1523+sealed class Whitepot {
1524+ class DoubleValue(val value: Double) : Whitepot()
1525+ class QuebrachineClassValue(val value: QuebrachineClass) : Whitepot()
1526+
1527+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1528+ is DoubleValue -> this.value
1529+ is QuebrachineClassValue -> this.value
1530+ })
1531+
1532+ companion object {
1533+ fun fromJson(jn: JsonNode): Whitepot = when (jn) {
1534+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1535+ is ObjectNode -> QuebrachineClassValue(mapper.treeToValue(jn))
1536+ else -> throw IllegalArgumentException()
1537+ }
1538+ }
1539+}
1540+
1541+sealed class WrothyElement {
1542+ class NullArrayValue(val value: List<Any?>) : WrothyElement()
1543+ class WrothyClassValue(val value: WrothyClass) : WrothyElement()
1544+
1545+ fun toJson(): String = mapper.writeValueAsString(when (this) {
1546+ is NullArrayValue -> this.value
1547+ is WrothyClassValue -> this.value
1548+ })
1549+
1550+ companion object {
1551+ fun fromJson(jn: JsonNode): WrothyElement = when (jn) {
1552+ is ArrayNode -> NullArrayValue(mapper.treeToValue(jn))
1553+ is ObjectNode -> WrothyClassValue(mapper.treeToValue(jn))
1554+ else -> throw IllegalArgumentException()
1555+ }
1556+ }
1557+}
1558+
1559+data class WrothyClass (
1560+ @get:JsonProperty("Aeschynanthus")@field:JsonProperty("Aeschynanthus")
1561+ val aeschynanthus: Any? = null,
1562+
1563+ val aquiferous: Any? = null,
1564+ val cheapener: Any? = null,
1565+ val enumeration: Any? = null,
1566+
1567+ @get:JsonProperty("Ephesine")@field:JsonProperty("Ephesine")
1568+ val ephesine: Any? = null,
1569+
1570+ val escadrille: Any? = null,
1571+ val estrous: Any? = null,
1572+ val interestedly: Any? = null,
1573+ val katakinetomer: Any? = null,
1574+ val mortification: Any? = null,
1575+ val morula: Any? = null,
1576+ val orthosymmetrical: Any? = null,
1577+ val overbark: Any? = null,
1578+ val politist: Any? = null,
1579+ val qualified: Any? = null,
1580+ val sphenomalar: Any? = null,
1581+ val throatful: Any? = null,
1582+ val transhumance: Any? = null,
1583+ val triandrian: Any? = null,
1584+ val unbooked: Any? = null
1585+)
Test case

test/inputs/schema/class-map-union.schema

1 generated file · +5 −5
Mschema-kotlin-jacksondefault / TopLevel.kt+5 −5
@@ -55,11 +55,11 @@ sealed class UnionValue {
5555
5656 companion object {
5757 fun fromJson(jn: JsonNode): UnionValue = when (jn) {
58- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
59- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
60- is TextNode -> StringValue(mapper.treeToValue(jn))
61- is ObjectNode -> UnionClassValue(mapper.treeToValue(jn))
62- else -> throw IllegalArgumentException()
58+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
59+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
60+ is TextNode -> StringValue(mapper.treeToValue(jn))
61+ is ObjectNode -> UnionClassValue(mapper.treeToValue(jn))
62+ else -> throw IllegalArgumentException()
6363 }
6464 }
6565 }
Test case

test/inputs/schema/class-with-additional.schema

1 generated file · +3 −3
Mschema-kotlin-jacksondefault / TopLevel.kt+3 −3
@@ -51,9 +51,9 @@ sealed class MapValue {
5151
5252 companion object {
5353 fun fromJson(jn: JsonNode): MapValue = when (jn) {
54- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
55- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
56- else -> throw IllegalArgumentException()
54+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
55+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
56+ else -> throw IllegalArgumentException()
5757 }
5858 }
5959 }
Test case

test/inputs/schema/constructor.schema

1 generated file · +3 −3
Mschema-kotlin-jacksondefault / TopLevel.kt+3 −3
@@ -51,9 +51,9 @@ sealed class UnionConstructor {
5151
5252 companion object {
5353 fun fromJson(jn: JsonNode): UnionConstructor = when (jn) {
54- is ObjectNode -> ConstructorValue(mapper.treeToValue(jn))
55- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
56- else -> throw IllegalArgumentException()
54+ is ObjectNode -> ConstructorValue(mapper.treeToValue(jn))
55+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
56+ else -> throw IllegalArgumentException()
5757 }
5858 }
5959 }
Test case

test/inputs/schema/integer-before-number.schema

1 generated file · +3 −3
Mschema-kotlin-jacksondefault / TopLevel.kt+3 −3
@@ -44,9 +44,9 @@ sealed class TopLevel {
4444
4545 companion object {
4646 fun fromJson(jn: JsonNode): TopLevel = when (jn) {
47- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
48- is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
49- else -> throw IllegalArgumentException()
47+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
48+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
49+ else -> throw IllegalArgumentException()
5050 }
5151 }
5252 }
Test case

test/inputs/schema/integer-float-union.schema

1 generated file · +3 −3
Mschema-kotlin-jacksondefault / TopLevel.kt+3 −3
@@ -52,9 +52,9 @@ sealed class Number {
5252
5353 companion object {
5454 fun fromJson(jn: JsonNode): Number = when (jn) {
55- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
56- is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
57- else -> throw IllegalArgumentException()
55+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
56+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
57+ else -> throw IllegalArgumentException()
5858 }
5959 }
6060 }
Test case

test/inputs/schema/minmaxlength.schema

1 generated file · +3 −3
Mschema-kotlin-jacksondefault / TopLevel.kt+3 −3
@@ -73,9 +73,9 @@ sealed class InUnion {
7373
7474 companion object {
7575 fun fromJson(jn: JsonNode): InUnion = when (jn) {
76- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
77- is TextNode -> StringValue(mapper.treeToValue(jn))
78- else -> throw IllegalArgumentException()
76+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
77+ is TextNode -> StringValue(mapper.treeToValue(jn))
78+ else -> throw IllegalArgumentException()
7979 }
8080 }
8181 }
Test case

test/inputs/schema/multi-type-enum.schema

1 generated file · +5 −5
Mschema-kotlin-jacksondefault / TopLevel.kt+5 −5
@@ -57,11 +57,11 @@ sealed class FooUnion {
5757
5858 companion object {
5959 fun fromJson(jn: JsonNode): FooUnion = when (jn) {
60- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
61- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
62- is TextNode -> EnumValue(mapper.treeToValue(jn))
63- is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
64- else -> throw IllegalArgumentException()
60+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
61+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
62+ is TextNode -> EnumValue(mapper.treeToValue(jn))
63+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
64+ else -> throw IllegalArgumentException()
6565 }
6666 }
6767 }
Test case

test/inputs/schema/recursive-union-flattening.schema

1 generated file · +32 −32
Mschema-kotlin-jacksondefault / TopLevel.kt+32 −32
@@ -54,14 +54,14 @@ sealed class TopLevel {
5454
5555 companion object {
5656 fun fromJson(jn: JsonNode): TopLevel = when (jn) {
57- is ObjectNode -> AnythingMapValue(mapper.treeToValue(jn))
58- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
59- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
60- is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
61- is TextNode -> StringValue(mapper.treeToValue(jn))
62- is ArrayNode -> UnionArrayValue(mapper.treeToValue(jn))
63- null -> NullValue()
64- else -> throw IllegalArgumentException()
57+ is ObjectNode -> AnythingMapValue(mapper.treeToValue(jn))
58+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
59+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
60+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
61+ is TextNode -> StringValue(mapper.treeToValue(jn))
62+ is ArrayNode -> UnionArrayValue(mapper.treeToValue(jn))
63+ null -> NullValue()
64+ else -> throw IllegalArgumentException()
6565 }
6666 }
6767 }
@@ -87,14 +87,14 @@ sealed class TopLevelElement {
8787
8888 companion object {
8989 fun fromJson(jn: JsonNode): TopLevelElement = when (jn) {
90- is ArrayNode -> AnythingArrayValue(mapper.treeToValue(jn))
91- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
92- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
93- is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
94- is TextNode -> StringValue(mapper.treeToValue(jn))
95- is ObjectNode -> TopLevelClassValue(mapper.treeToValue(jn))
96- null -> NullValue()
97- else -> throw IllegalArgumentException()
90+ is ArrayNode -> AnythingArrayValue(mapper.treeToValue(jn))
91+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
92+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
93+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
94+ is TextNode -> StringValue(mapper.treeToValue(jn))
95+ is ObjectNode -> TopLevelClassValue(mapper.treeToValue(jn))
96+ null -> NullValue()
97+ else -> throw IllegalArgumentException()
9898 }
9999 }
100100 }
@@ -128,14 +128,14 @@ sealed class XElement {
128128
129129 companion object {
130130 fun fromJson(jn: JsonNode): XElement = when (jn) {
131- is ArrayNode -> AnythingArrayValue(mapper.treeToValue(jn))
132- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
133- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
134- is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
135- is TextNode -> StringValue(mapper.treeToValue(jn))
136- is ObjectNode -> XClassValue(mapper.treeToValue(jn))
137- null -> NullValue()
138- else -> throw IllegalArgumentException()
131+ is ArrayNode -> AnythingArrayValue(mapper.treeToValue(jn))
132+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
133+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
134+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
135+ is TextNode -> StringValue(mapper.treeToValue(jn))
136+ is ObjectNode -> XClassValue(mapper.treeToValue(jn))
137+ null -> NullValue()
138+ else -> throw IllegalArgumentException()
139139 }
140140 }
141141 }
@@ -161,14 +161,14 @@ sealed class X {
161161
162162 companion object {
163163 fun fromJson(jn: JsonNode): X = when (jn) {
164- is ObjectNode -> AnythingMapValue(mapper.treeToValue(jn))
165- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
166- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
167- is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
168- is TextNode -> StringValue(mapper.treeToValue(jn))
169- is ArrayNode -> UnionArrayValue(mapper.treeToValue(jn))
170- null -> NullValue()
171- else -> throw IllegalArgumentException()
164+ is ObjectNode -> AnythingMapValue(mapper.treeToValue(jn))
165+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
166+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
167+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
168+ is TextNode -> StringValue(mapper.treeToValue(jn))
169+ is ArrayNode -> UnionArrayValue(mapper.treeToValue(jn))
170+ null -> NullValue()
171+ else -> throw IllegalArgumentException()
172172 }
173173 }
174174 }
Test case

test/inputs/schema/unevaluated-properties.schema

1 generated file · +8 −8
Mschema-kotlin-jacksondefault / TopLevel.kt+8 −8
@@ -67,14 +67,14 @@ sealed class Closed {
6767
6868 companion object {
6969 fun fromJson(jn: JsonNode): Closed = when (jn) {
70- is ArrayNode -> AnythingArrayValue(mapper.treeToValue(jn))
71- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
72- is ObjectNode -> ClosedClassValue(mapper.treeToValue(jn))
73- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
74- is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
75- is TextNode -> StringValue(mapper.treeToValue(jn))
76- null -> NullValue()
77- else -> throw IllegalArgumentException()
70+ is ArrayNode -> AnythingArrayValue(mapper.treeToValue(jn))
71+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
72+ is ObjectNode -> ClosedClassValue(mapper.treeToValue(jn))
73+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
74+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
75+ is TextNode -> StringValue(mapper.treeToValue(jn))
76+ null -> NullValue()
77+ else -> throw IllegalArgumentException()
7878 }
7979 }
8080 }
Test case

test/inputs/schema/union-int-double.schema

1 generated file · +4 −4
Mschema-kotlin-jacksondefault / TopLevel.kt+4 −4
@@ -54,10 +54,10 @@ sealed class Value {
5454
5555 companion object {
5656 fun fromJson(jn: JsonNode): Value = when (jn) {
57- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
58- is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
59- is TextNode -> StringValue(mapper.treeToValue(jn))
60- else -> throw IllegalArgumentException()
57+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
58+ is IntNode, is LongNode -> IntegerValue(mapper.treeToValue(jn))
59+ is TextNode -> StringValue(mapper.treeToValue(jn))
60+ else -> throw IllegalArgumentException()
6161 }
6262 }
6363 }
Test case

test/inputs/schema/vega-lite.schema

1 generated file · +48 −48
Mschema-kotlin-jacksondefault / TopLevel.kt+48 −48
@@ -1026,9 +1026,9 @@ sealed class FontWeightUnion {
10261026
10271027 companion object {
10281028 fun fromJson(jn: JsonNode): FontWeightUnion = when (jn) {
1029- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1030- is TextNode -> EnumValue(mapper.treeToValue(jn))
1031- else -> throw IllegalArgumentException()
1029+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1030+ is TextNode -> EnumValue(mapper.treeToValue(jn))
1031+ else -> throw IllegalArgumentException()
10321032 }
10331033 }
10341034 }
@@ -1405,9 +1405,9 @@ sealed class Label {
14051405
14061406 companion object {
14071407 fun fromJson(jn: JsonNode): Label = when (jn) {
1408- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1409- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1410- else -> throw IllegalArgumentException()
1408+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
1409+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1410+ else -> throw IllegalArgumentException()
14111411 }
14121412 }
14131413 }
@@ -1459,9 +1459,9 @@ sealed class TitleFontWeight {
14591459
14601460 companion object {
14611461 fun fromJson(jn: JsonNode): TitleFontWeight = when (jn) {
1462- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1463- is TextNode -> StringValue(mapper.treeToValue(jn))
1464- else -> throw IllegalArgumentException()
1462+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
1463+ is TextNode -> StringValue(mapper.treeToValue(jn))
1464+ else -> throw IllegalArgumentException()
14651465 }
14661466 }
14671467 }
@@ -2248,9 +2248,9 @@ sealed class Padding {
22482248
22492249 companion object {
22502250 fun fromJson(jn: JsonNode): Padding = when (jn) {
2251- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
2252- is ObjectNode -> PaddingClassValue(mapper.treeToValue(jn))
2253- else -> throw IllegalArgumentException()
2251+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
2252+ is ObjectNode -> PaddingClassValue(mapper.treeToValue(jn))
2253+ else -> throw IllegalArgumentException()
22542254 }
22552255 }
22562256 }
@@ -4047,11 +4047,11 @@ sealed class ValuesValue {
40474047
40484048 companion object {
40494049 fun fromJson(jn: JsonNode): ValuesValue = when (jn) {
4050- is ObjectNode -> AnythingMapValue(mapper.treeToValue(jn))
4051- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
4052- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
4053- is TextNode -> StringValue(mapper.treeToValue(jn))
4054- else -> throw IllegalArgumentException()
4050+ is ObjectNode -> AnythingMapValue(mapper.treeToValue(jn))
4051+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
4052+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
4053+ is TextNode -> StringValue(mapper.treeToValue(jn))
4054+ else -> throw IllegalArgumentException()
40554055 }
40564056 }
40574057 }
@@ -4597,11 +4597,11 @@ sealed class Equal {
45974597
45984598 companion object {
45994599 fun fromJson(jn: JsonNode): Equal = when (jn) {
4600- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
4601- is ObjectNode -> DateTimeValue(mapper.treeToValue(jn))
4602- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
4603- is TextNode -> StringValue(mapper.treeToValue(jn))
4604- else -> throw IllegalArgumentException()
4600+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
4601+ is ObjectNode -> DateTimeValue(mapper.treeToValue(jn))
4602+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
4603+ is TextNode -> StringValue(mapper.treeToValue(jn))
4604+ else -> throw IllegalArgumentException()
46054605 }
46064606 }
46074607 }
@@ -4689,9 +4689,9 @@ sealed class Day {
46894689
46904690 companion object {
46914691 fun fromJson(jn: JsonNode): Day = when (jn) {
4692- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
4693- is TextNode -> StringValue(mapper.treeToValue(jn))
4694- else -> throw IllegalArgumentException()
4692+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
4693+ is TextNode -> StringValue(mapper.treeToValue(jn))
4694+ else -> throw IllegalArgumentException()
46954695 }
46964696 }
46974697 }
@@ -4712,9 +4712,9 @@ sealed class Month {
47124712
47134713 companion object {
47144714 fun fromJson(jn: JsonNode): Month = when (jn) {
4715- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
4716- is TextNode -> StringValue(mapper.treeToValue(jn))
4717- else -> throw IllegalArgumentException()
4715+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
4716+ is TextNode -> StringValue(mapper.treeToValue(jn))
4717+ else -> throw IllegalArgumentException()
47184718 }
47194719 }
47204720 }
@@ -4732,10 +4732,10 @@ sealed class RangeElement {
47324732
47334733 companion object {
47344734 fun fromJson(jn: JsonNode): RangeElement = when (jn) {
4735- is ObjectNode -> DateTimeValue(mapper.treeToValue(jn))
4736- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
4737- null -> NullValue()
4738- else -> throw IllegalArgumentException()
4735+ is ObjectNode -> DateTimeValue(mapper.treeToValue(jn))
4736+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
4737+ null -> NullValue()
4738+ else -> throw IllegalArgumentException()
47394739 }
47404740 }
47414741 }
@@ -4868,10 +4868,10 @@ sealed class ConditionalValueDefValue {
48684868
48694869 companion object {
48704870 fun fromJson(jn: JsonNode): ConditionalValueDefValue = when (jn) {
4871- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
4872- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
4873- is TextNode -> StringValue(mapper.treeToValue(jn))
4874- else -> throw IllegalArgumentException()
4871+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
4872+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
4873+ is TextNode -> StringValue(mapper.treeToValue(jn))
4874+ else -> throw IllegalArgumentException()
48754875 }
48764876 }
48774877 }
@@ -5125,10 +5125,10 @@ sealed class LegendValue {
51255125
51265126 companion object {
51275127 fun fromJson(jn: JsonNode): LegendValue = when (jn) {
5128- is ObjectNode -> DateTimeValue(mapper.treeToValue(jn))
5129- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
5130- is TextNode -> StringValue(mapper.treeToValue(jn))
5131- else -> throw IllegalArgumentException()
5128+ is ObjectNode -> DateTimeValue(mapper.treeToValue(jn))
5129+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
5130+ is TextNode -> StringValue(mapper.treeToValue(jn))
5131+ else -> throw IllegalArgumentException()
51325132 }
51335133 }
51345134 }
@@ -5518,11 +5518,11 @@ sealed class NiceUnion {
55185518
55195519 companion object {
55205520 fun fromJson(jn: JsonNode): NiceUnion = when (jn) {
5521- is BooleanNode -> BoolValue(mapper.treeToValue(jn))
5522- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
5523- is TextNode -> EnumValue(mapper.treeToValue(jn))
5524- is ObjectNode -> NiceClassValue(mapper.treeToValue(jn))
5525- else -> throw IllegalArgumentException()
5521+ is BooleanNode -> BoolValue(mapper.treeToValue(jn))
5522+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
5523+ is TextNode -> EnumValue(mapper.treeToValue(jn))
5524+ is ObjectNode -> NiceClassValue(mapper.treeToValue(jn))
5525+ else -> throw IllegalArgumentException()
55265526 }
55275527 }
55285528 }
@@ -6695,9 +6695,9 @@ sealed class AxisValue {
66956695
66966696 companion object {
66976697 fun fromJson(jn: JsonNode): AxisValue = when (jn) {
6698- is ObjectNode -> DateTimeValue(mapper.treeToValue(jn))
6699- is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
6700- else -> throw IllegalArgumentException()
6698+ is ObjectNode -> DateTimeValue(mapper.treeToValue(jn))
6699+ is IntNode, is LongNode, is DoubleNode -> DoubleValue(mapper.treeToValue(jn))
6700+ else -> throw IllegalArgumentException()
67016701 }
67026702 }
67036703 }
No generated files match these filters.