123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468 |
- package com.example.trefletest.models
- import com.google.gson.annotations.SerializedName
-
-
- data class Plant(
- @SerializedName("data")
- val `data`: Data,
- @SerializedName("meta")
- val meta: Meta
- ) {
- data class Data(
- @SerializedName("author")
- val author: String,
- @SerializedName("bibliography")
- val bibliography: String,
- @SerializedName("common_name")
- val commonName: Any?,
- @SerializedName("family")
- val family: Family,
- @SerializedName("family_common_name")
- val familyCommonName: Any?,
- @SerializedName("forms")
- val forms: List<Any>,
- @SerializedName("genus")
- val genus: Genus,
- @SerializedName("genus_id")
- val genusId: Int,
- @SerializedName("hybrids")
- val hybrids: List<Any>,
- @SerializedName("id")
- val id: Int,
- @SerializedName("image_url")
- val imageUrl: String,
- @SerializedName("links")
- val links: Links,
- @SerializedName("main_species")
- val mainSpecies: MainSpecies,
- @SerializedName("main_species_id")
- val mainSpeciesId: Int,
- @SerializedName("observations")
- val observations: String,
- @SerializedName("scientific_name")
- val scientificName: String,
- @SerializedName("slug")
- val slug: String,
- @SerializedName("sources")
- val sources: List<Source>,
- @SerializedName("species")
- val species: List<Specy>,
- @SerializedName("subspecies")
- val subspecies: List<Any>,
- @SerializedName("subvarieties")
- val subvarieties: List<Any>,
- @SerializedName("varieties")
- val varieties: List<Any>,
- @SerializedName("vegetable")
- val vegetable: Boolean,
- @SerializedName("year")
- val year: Int
- ) {
- data class Family(
- @SerializedName("common_name")
- val commonName: Any?,
- @SerializedName("id")
- val id: Int,
- @SerializedName("links")
- val links: Links,
- @SerializedName("name")
- val name: String,
- @SerializedName("slug")
- val slug: String
- ) {
- data class Links(
- @SerializedName("division_order")
- val divisionOrder: String,
- @SerializedName("genus")
- val genus: String,
- @SerializedName("self")
- val self: String
- )
- }
-
- data class Genus(
- @SerializedName("id")
- val id: Int,
- @SerializedName("links")
- val links: Links,
- @SerializedName("name")
- val name: String,
- @SerializedName("slug")
- val slug: String
- ) {
- data class Links(
- @SerializedName("family")
- val family: String,
- @SerializedName("plants")
- val plants: String,
- @SerializedName("self")
- val self: String,
- @SerializedName("species")
- val species: String
- )
- }
-
- data class Links(
- @SerializedName("genus")
- val genus: String,
- @SerializedName("self")
- val self: String,
- @SerializedName("species")
- val species: String
- )
-
- data class MainSpecies(
- @SerializedName("author")
- val author: String,
- @SerializedName("bibliography")
- val bibliography: String,
- @SerializedName("common_name")
- val commonName: Any?,
- @SerializedName("common_names")
- val commonNames: CommonNames,
- @SerializedName("distribution")
- val distribution: Distribution,
- @SerializedName("distributions")
- val distributions: Distributions,
- @SerializedName("duration")
- val duration: Any?,
- @SerializedName("edible")
- val edible: Boolean,
- @SerializedName("edible_part")
- val ediblePart: Any?,
- @SerializedName("family")
- val family: String,
- @SerializedName("family_common_name")
- val familyCommonName: Any?,
- @SerializedName("flower")
- val flower: Flower,
- @SerializedName("foliage")
- val foliage: Foliage,
- @SerializedName("fruit_or_seed")
- val fruitOrSeed: FruitOrSeed,
- @SerializedName("genus")
- val genus: String,
- @SerializedName("genus_id")
- val genusId: Int,
- @SerializedName("growth")
- val growth: Growth,
- @SerializedName("id")
- val id: Int,
- @SerializedName("image_url")
- val imageUrl: String,
- @SerializedName("images")
- val images: Images,
- @SerializedName("links")
- val links: Links,
- @SerializedName("observations")
- val observations: String,
- @SerializedName("rank")
- val rank: String,
- @SerializedName("scientific_name")
- val scientificName: String,
- @SerializedName("slug")
- val slug: String,
- @SerializedName("sources")
- val sources: List<Source>,
- @SerializedName("specifications")
- val specifications: Specifications,
- @SerializedName("status")
- val status: String,
- @SerializedName("synonyms")
- val synonyms: List<Any>,
- @SerializedName("vegetable")
- val vegetable: Boolean,
- @SerializedName("year")
- val year: Int
- ) {
- class CommonNames(
- )
-
- data class Distribution(
- @SerializedName("native")
- val native: List<String>
- )
-
- data class Distributions(
- @SerializedName("native")
- val native: List<Native>
- ) {
- data class Native(
- @SerializedName("id")
- val id: Int,
- @SerializedName("links")
- val links: Links,
- @SerializedName("name")
- val name: String,
- @SerializedName("slug")
- val slug: String,
- @SerializedName("species_count")
- val speciesCount: Int,
- @SerializedName("tdwg_code")
- val tdwgCode: String,
- @SerializedName("tdwg_level")
- val tdwgLevel: Int
- ) {
- data class Links(
- @SerializedName("plants")
- val plants: String,
- @SerializedName("self")
- val self: String,
- @SerializedName("species")
- val species: String
- )
- }
- }
-
- data class Flower(
- @SerializedName("color")
- val color: Any?,
- @SerializedName("conspicuous")
- val conspicuous: Any?
- )
-
- data class Foliage(
- @SerializedName("color")
- val color: Any?,
- @SerializedName("leaf_retention")
- val leafRetention: Any?,
- @SerializedName("texture")
- val texture: Any?
- )
-
- data class FruitOrSeed(
- @SerializedName("color")
- val color: Any?,
- @SerializedName("conspicuous")
- val conspicuous: Any?,
- @SerializedName("seed_persistence")
- val seedPersistence: Any?,
- @SerializedName("shape")
- val shape: Any?
- )
-
- data class Growth(
- @SerializedName("atmospheric_humidity")
- val atmosphericHumidity: Any?,
- @SerializedName("bloom_months")
- val bloomMonths: Any?,
- @SerializedName("days_to_harvest")
- val daysToHarvest: Any?,
- @SerializedName("description")
- val description: Any?,
- @SerializedName("fruit_months")
- val fruitMonths: Any?,
- @SerializedName("growth_months")
- val growthMonths: Any?,
- @SerializedName("light")
- val light: Any?,
- @SerializedName("maximum_precipitation")
- val maximumPrecipitation: MaximumPrecipitation,
- @SerializedName("maximum_temperature")
- val maximumTemperature: MaximumTemperature,
- @SerializedName("minimum_precipitation")
- val minimumPrecipitation: MinimumPrecipitation,
- @SerializedName("minimum_root_depth")
- val minimumRootDepth: MinimumRootDepth,
- @SerializedName("minimum_temperature")
- val minimumTemperature: MinimumTemperature,
- @SerializedName("ph_maximum")
- val phMaximum: Any?,
- @SerializedName("ph_minimum")
- val phMinimum: Any?,
- @SerializedName("row_spacing")
- val rowSpacing: RowSpacing,
- @SerializedName("soil_humidity")
- val soilHumidity: Any?,
- @SerializedName("soil_nutriments")
- val soilNutriments: Any?,
- @SerializedName("soil_salinity")
- val soilSalinity: Any?,
- @SerializedName("soil_texture")
- val soilTexture: Any?,
- @SerializedName("sowing")
- val sowing: Any?,
- @SerializedName("spread")
- val spread: Spread
- ) {
- data class MaximumPrecipitation(
- @SerializedName("mm")
- val mm: Any?
- )
-
- data class MaximumTemperature(
- @SerializedName("deg_c")
- val degC: Any?,
- @SerializedName("deg_f")
- val degF: Any?
- )
-
- data class MinimumPrecipitation(
- @SerializedName("mm")
- val mm: Any?
- )
-
- data class MinimumRootDepth(
- @SerializedName("cm")
- val cm: Any?
- )
-
- data class MinimumTemperature(
- @SerializedName("deg_c")
- val degC: Any?,
- @SerializedName("deg_f")
- val degF: Any?
- )
-
- data class RowSpacing(
- @SerializedName("cm")
- val cm: Any?
- )
-
- data class Spread(
- @SerializedName("cm")
- val cm: Any?
- )
- }
-
- data class Images(
- @SerializedName("bark")
- val bark: List<Any>,
- @SerializedName("flower")
- val flower: List<Flower>,
- @SerializedName("fruit")
- val fruit: List<Any>,
- @SerializedName("habit")
- val habit: List<Any>,
- @SerializedName("leaf")
- val leaf: List<Any>,
- @SerializedName("other")
- val other: List<Any>
- ) {
- data class Flower(
- @SerializedName("copyright")
- val copyright: String,
- @SerializedName("id")
- val id: Int,
- @SerializedName("image_url")
- val imageUrl: String
- )
- }
-
- data class Links(
- @SerializedName("genus")
- val genus: String,
- @SerializedName("plant")
- val plant: String,
- @SerializedName("self")
- val self: String
- )
-
- data class Source(
- @SerializedName("citation")
- val citation: String?,
- @SerializedName("id")
- val id: String,
- @SerializedName("last_update")
- val lastUpdate: String,
- @SerializedName("name")
- val name: String,
- @SerializedName("url")
- val url: String
- )
-
- data class Specifications(
- @SerializedName("average_height")
- val averageHeight: AverageHeight,
- @SerializedName("growth_form")
- val growthForm: Any?,
- @SerializedName("growth_habit")
- val growthHabit: Any?,
- @SerializedName("growth_rate")
- val growthRate: Any?,
- @SerializedName("ligneous_type")
- val ligneousType: Any?,
- @SerializedName("maximum_height")
- val maximumHeight: MaximumHeight,
- @SerializedName("nitrogen_fixation")
- val nitrogenFixation: Any?,
- @SerializedName("shape_and_orientation")
- val shapeAndOrientation: Any?,
- @SerializedName("toxicity")
- val toxicity: Any?
- ) {
- data class AverageHeight(
- @SerializedName("cm")
- val cm: Any?
- )
-
- data class MaximumHeight(
- @SerializedName("cm")
- val cm: Any?
- )
- }
- }
-
- data class Source(
- @SerializedName("citation")
- val citation: String?,
- @SerializedName("id")
- val id: String,
- @SerializedName("last_update")
- val lastUpdate: String,
- @SerializedName("name")
- val name: String,
- @SerializedName("url")
- val url: String
- )
-
- data class Specy(
- @SerializedName("author")
- val author: String,
- @SerializedName("bibliography")
- val bibliography: String,
- @SerializedName("common_name")
- val commonName: Any?,
- @SerializedName("family")
- val family: String,
- @SerializedName("family_common_name")
- val familyCommonName: Any?,
- @SerializedName("genus")
- val genus: String,
- @SerializedName("genus_id")
- val genusId: Int,
- @SerializedName("id")
- val id: Int,
- @SerializedName("image_url")
- val imageUrl: String,
- @SerializedName("links")
- val links: Links,
- @SerializedName("rank")
- val rank: String,
- @SerializedName("scientific_name")
- val scientificName: String,
- @SerializedName("slug")
- val slug: String,
- @SerializedName("status")
- val status: String,
- @SerializedName("synonyms")
- val synonyms: List<Any>,
- @SerializedName("year")
- val year: Int
- ) {
- data class Links(
- @SerializedName("genus")
- val genus: String,
- @SerializedName("plant")
- val plant: String,
- @SerializedName("self")
- val self: String
- )
- }
- }
-
- data class Meta(
- @SerializedName("last_modified")
- val lastModified: String
- )
- }
|