Keine Beschreibung

Plant.kt 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. package com.example.trefletest.models
  2. import com.google.gson.annotations.SerializedName
  3. data class Plant(
  4. @SerializedName("data")
  5. val `data`: Data,
  6. @SerializedName("meta")
  7. val meta: Meta
  8. ) {
  9. data class Data(
  10. @SerializedName("author")
  11. val author: String,
  12. @SerializedName("bibliography")
  13. val bibliography: String,
  14. @SerializedName("common_name")
  15. val commonName: Any?,
  16. @SerializedName("family")
  17. val family: Family,
  18. @SerializedName("family_common_name")
  19. val familyCommonName: Any?,
  20. @SerializedName("forms")
  21. val forms: List<Any>,
  22. @SerializedName("genus")
  23. val genus: Genus,
  24. @SerializedName("genus_id")
  25. val genusId: Int,
  26. @SerializedName("hybrids")
  27. val hybrids: List<Any>,
  28. @SerializedName("id")
  29. val id: Int,
  30. @SerializedName("image_url")
  31. val imageUrl: String,
  32. @SerializedName("links")
  33. val links: Links,
  34. @SerializedName("main_species")
  35. val mainSpecies: MainSpecies,
  36. @SerializedName("main_species_id")
  37. val mainSpeciesId: Int,
  38. @SerializedName("observations")
  39. val observations: String,
  40. @SerializedName("scientific_name")
  41. val scientificName: String,
  42. @SerializedName("slug")
  43. val slug: String,
  44. @SerializedName("sources")
  45. val sources: List<Source>,
  46. @SerializedName("species")
  47. val species: List<Specy>,
  48. @SerializedName("subspecies")
  49. val subspecies: List<Any>,
  50. @SerializedName("subvarieties")
  51. val subvarieties: List<Any>,
  52. @SerializedName("varieties")
  53. val varieties: List<Any>,
  54. @SerializedName("vegetable")
  55. val vegetable: Boolean,
  56. @SerializedName("year")
  57. val year: Int
  58. ) {
  59. data class Family(
  60. @SerializedName("common_name")
  61. val commonName: Any?,
  62. @SerializedName("id")
  63. val id: Int,
  64. @SerializedName("links")
  65. val links: Links,
  66. @SerializedName("name")
  67. val name: String,
  68. @SerializedName("slug")
  69. val slug: String
  70. ) {
  71. data class Links(
  72. @SerializedName("division_order")
  73. val divisionOrder: String,
  74. @SerializedName("genus")
  75. val genus: String,
  76. @SerializedName("self")
  77. val self: String
  78. )
  79. }
  80. data class Genus(
  81. @SerializedName("id")
  82. val id: Int,
  83. @SerializedName("links")
  84. val links: Links,
  85. @SerializedName("name")
  86. val name: String,
  87. @SerializedName("slug")
  88. val slug: String
  89. ) {
  90. data class Links(
  91. @SerializedName("family")
  92. val family: String,
  93. @SerializedName("plants")
  94. val plants: String,
  95. @SerializedName("self")
  96. val self: String,
  97. @SerializedName("species")
  98. val species: String
  99. )
  100. }
  101. data class Links(
  102. @SerializedName("genus")
  103. val genus: String,
  104. @SerializedName("self")
  105. val self: String,
  106. @SerializedName("species")
  107. val species: String
  108. )
  109. data class MainSpecies(
  110. @SerializedName("author")
  111. val author: String,
  112. @SerializedName("bibliography")
  113. val bibliography: String,
  114. @SerializedName("common_name")
  115. val commonName: Any?,
  116. @SerializedName("common_names")
  117. val commonNames: CommonNames,
  118. @SerializedName("distribution")
  119. val distribution: Distribution,
  120. @SerializedName("distributions")
  121. val distributions: Distributions,
  122. @SerializedName("duration")
  123. val duration: Any?,
  124. @SerializedName("edible")
  125. val edible: Boolean,
  126. @SerializedName("edible_part")
  127. val ediblePart: Any?,
  128. @SerializedName("family")
  129. val family: String,
  130. @SerializedName("family_common_name")
  131. val familyCommonName: Any?,
  132. @SerializedName("flower")
  133. val flower: Flower,
  134. @SerializedName("foliage")
  135. val foliage: Foliage,
  136. @SerializedName("fruit_or_seed")
  137. val fruitOrSeed: FruitOrSeed,
  138. @SerializedName("genus")
  139. val genus: String,
  140. @SerializedName("genus_id")
  141. val genusId: Int,
  142. @SerializedName("growth")
  143. val growth: Growth,
  144. @SerializedName("id")
  145. val id: Int,
  146. @SerializedName("image_url")
  147. val imageUrl: String,
  148. @SerializedName("images")
  149. val images: Images,
  150. @SerializedName("links")
  151. val links: Links,
  152. @SerializedName("observations")
  153. val observations: String,
  154. @SerializedName("rank")
  155. val rank: String,
  156. @SerializedName("scientific_name")
  157. val scientificName: String,
  158. @SerializedName("slug")
  159. val slug: String,
  160. @SerializedName("sources")
  161. val sources: List<Source>,
  162. @SerializedName("specifications")
  163. val specifications: Specifications,
  164. @SerializedName("status")
  165. val status: String,
  166. @SerializedName("synonyms")
  167. val synonyms: List<Any>,
  168. @SerializedName("vegetable")
  169. val vegetable: Boolean,
  170. @SerializedName("year")
  171. val year: Int
  172. ) {
  173. class CommonNames(
  174. )
  175. data class Distribution(
  176. @SerializedName("native")
  177. val native: List<String>
  178. )
  179. data class Distributions(
  180. @SerializedName("native")
  181. val native: List<Native>
  182. ) {
  183. data class Native(
  184. @SerializedName("id")
  185. val id: Int,
  186. @SerializedName("links")
  187. val links: Links,
  188. @SerializedName("name")
  189. val name: String,
  190. @SerializedName("slug")
  191. val slug: String,
  192. @SerializedName("species_count")
  193. val speciesCount: Int,
  194. @SerializedName("tdwg_code")
  195. val tdwgCode: String,
  196. @SerializedName("tdwg_level")
  197. val tdwgLevel: Int
  198. ) {
  199. data class Links(
  200. @SerializedName("plants")
  201. val plants: String,
  202. @SerializedName("self")
  203. val self: String,
  204. @SerializedName("species")
  205. val species: String
  206. )
  207. }
  208. }
  209. data class Flower(
  210. @SerializedName("color")
  211. val color: Any?,
  212. @SerializedName("conspicuous")
  213. val conspicuous: Any?
  214. )
  215. data class Foliage(
  216. @SerializedName("color")
  217. val color: Any?,
  218. @SerializedName("leaf_retention")
  219. val leafRetention: Any?,
  220. @SerializedName("texture")
  221. val texture: Any?
  222. )
  223. data class FruitOrSeed(
  224. @SerializedName("color")
  225. val color: Any?,
  226. @SerializedName("conspicuous")
  227. val conspicuous: Any?,
  228. @SerializedName("seed_persistence")
  229. val seedPersistence: Any?,
  230. @SerializedName("shape")
  231. val shape: Any?
  232. )
  233. data class Growth(
  234. @SerializedName("atmospheric_humidity")
  235. val atmosphericHumidity: Any?,
  236. @SerializedName("bloom_months")
  237. val bloomMonths: Any?,
  238. @SerializedName("days_to_harvest")
  239. val daysToHarvest: Any?,
  240. @SerializedName("description")
  241. val description: Any?,
  242. @SerializedName("fruit_months")
  243. val fruitMonths: Any?,
  244. @SerializedName("growth_months")
  245. val growthMonths: Any?,
  246. @SerializedName("light")
  247. val light: Any?,
  248. @SerializedName("maximum_precipitation")
  249. val maximumPrecipitation: MaximumPrecipitation,
  250. @SerializedName("maximum_temperature")
  251. val maximumTemperature: MaximumTemperature,
  252. @SerializedName("minimum_precipitation")
  253. val minimumPrecipitation: MinimumPrecipitation,
  254. @SerializedName("minimum_root_depth")
  255. val minimumRootDepth: MinimumRootDepth,
  256. @SerializedName("minimum_temperature")
  257. val minimumTemperature: MinimumTemperature,
  258. @SerializedName("ph_maximum")
  259. val phMaximum: Any?,
  260. @SerializedName("ph_minimum")
  261. val phMinimum: Any?,
  262. @SerializedName("row_spacing")
  263. val rowSpacing: RowSpacing,
  264. @SerializedName("soil_humidity")
  265. val soilHumidity: Any?,
  266. @SerializedName("soil_nutriments")
  267. val soilNutriments: Any?,
  268. @SerializedName("soil_salinity")
  269. val soilSalinity: Any?,
  270. @SerializedName("soil_texture")
  271. val soilTexture: Any?,
  272. @SerializedName("sowing")
  273. val sowing: Any?,
  274. @SerializedName("spread")
  275. val spread: Spread
  276. ) {
  277. data class MaximumPrecipitation(
  278. @SerializedName("mm")
  279. val mm: Any?
  280. )
  281. data class MaximumTemperature(
  282. @SerializedName("deg_c")
  283. val degC: Any?,
  284. @SerializedName("deg_f")
  285. val degF: Any?
  286. )
  287. data class MinimumPrecipitation(
  288. @SerializedName("mm")
  289. val mm: Any?
  290. )
  291. data class MinimumRootDepth(
  292. @SerializedName("cm")
  293. val cm: Any?
  294. )
  295. data class MinimumTemperature(
  296. @SerializedName("deg_c")
  297. val degC: Any?,
  298. @SerializedName("deg_f")
  299. val degF: Any?
  300. )
  301. data class RowSpacing(
  302. @SerializedName("cm")
  303. val cm: Any?
  304. )
  305. data class Spread(
  306. @SerializedName("cm")
  307. val cm: Any?
  308. )
  309. }
  310. data class Images(
  311. @SerializedName("bark")
  312. val bark: List<Any>,
  313. @SerializedName("flower")
  314. val flower: List<Flower>,
  315. @SerializedName("fruit")
  316. val fruit: List<Any>,
  317. @SerializedName("habit")
  318. val habit: List<Any>,
  319. @SerializedName("leaf")
  320. val leaf: List<Any>,
  321. @SerializedName("other")
  322. val other: List<Any>
  323. ) {
  324. data class Flower(
  325. @SerializedName("copyright")
  326. val copyright: String,
  327. @SerializedName("id")
  328. val id: Int,
  329. @SerializedName("image_url")
  330. val imageUrl: String
  331. )
  332. }
  333. data class Links(
  334. @SerializedName("genus")
  335. val genus: String,
  336. @SerializedName("plant")
  337. val plant: String,
  338. @SerializedName("self")
  339. val self: String
  340. )
  341. data class Source(
  342. @SerializedName("citation")
  343. val citation: String?,
  344. @SerializedName("id")
  345. val id: String,
  346. @SerializedName("last_update")
  347. val lastUpdate: String,
  348. @SerializedName("name")
  349. val name: String,
  350. @SerializedName("url")
  351. val url: String
  352. )
  353. data class Specifications(
  354. @SerializedName("average_height")
  355. val averageHeight: AverageHeight,
  356. @SerializedName("growth_form")
  357. val growthForm: Any?,
  358. @SerializedName("growth_habit")
  359. val growthHabit: Any?,
  360. @SerializedName("growth_rate")
  361. val growthRate: Any?,
  362. @SerializedName("ligneous_type")
  363. val ligneousType: Any?,
  364. @SerializedName("maximum_height")
  365. val maximumHeight: MaximumHeight,
  366. @SerializedName("nitrogen_fixation")
  367. val nitrogenFixation: Any?,
  368. @SerializedName("shape_and_orientation")
  369. val shapeAndOrientation: Any?,
  370. @SerializedName("toxicity")
  371. val toxicity: Any?
  372. ) {
  373. data class AverageHeight(
  374. @SerializedName("cm")
  375. val cm: Any?
  376. )
  377. data class MaximumHeight(
  378. @SerializedName("cm")
  379. val cm: Any?
  380. )
  381. }
  382. }
  383. data class Source(
  384. @SerializedName("citation")
  385. val citation: String?,
  386. @SerializedName("id")
  387. val id: String,
  388. @SerializedName("last_update")
  389. val lastUpdate: String,
  390. @SerializedName("name")
  391. val name: String,
  392. @SerializedName("url")
  393. val url: String
  394. )
  395. data class Specy(
  396. @SerializedName("author")
  397. val author: String,
  398. @SerializedName("bibliography")
  399. val bibliography: String,
  400. @SerializedName("common_name")
  401. val commonName: Any?,
  402. @SerializedName("family")
  403. val family: String,
  404. @SerializedName("family_common_name")
  405. val familyCommonName: Any?,
  406. @SerializedName("genus")
  407. val genus: String,
  408. @SerializedName("genus_id")
  409. val genusId: Int,
  410. @SerializedName("id")
  411. val id: Int,
  412. @SerializedName("image_url")
  413. val imageUrl: String,
  414. @SerializedName("links")
  415. val links: Links,
  416. @SerializedName("rank")
  417. val rank: String,
  418. @SerializedName("scientific_name")
  419. val scientificName: String,
  420. @SerializedName("slug")
  421. val slug: String,
  422. @SerializedName("status")
  423. val status: String,
  424. @SerializedName("synonyms")
  425. val synonyms: List<Any>,
  426. @SerializedName("year")
  427. val year: Int
  428. ) {
  429. data class Links(
  430. @SerializedName("genus")
  431. val genus: String,
  432. @SerializedName("plant")
  433. val plant: String,
  434. @SerializedName("self")
  435. val self: String
  436. )
  437. }
  438. }
  439. data class Meta(
  440. @SerializedName("last_modified")
  441. val lastModified: String
  442. )
  443. }