converting json to models

{ "data": [ { "category": { "id": 1, "name": "Mujer", "slug": "mujer", "url": "/mujer" }, "children": [ { "category": { "id": 2, "name": "Moda", "slug": "moda", "url": "/mujer/moda" }, "children": [ { "category": { "id": 2, "name": "Todo Moda", "slug": "moda", "url": "/mujer/moda" }, "children": [] }, { "category": { "id": 11, "name": "Abrigos", "slug": "abrigos", "url": "/mujer/moda/abrigos" }, "children": [] }, { "category": { "id": 13, "name": "Calcetines y medias", "slug": "calcetines-y-medias", "url": "/mujer/moda/calcetines-y-medias" }, "children": [] }, { "category": { "id": 15, "name": "Camisas y blusas", "slug": "camisas-y-blusas", "url": "/mujer/moda/camisas-y-blusas" }, "children": [] }, { "category": { "id": 16, "name": "Camisetas", "slug": "camisetas", "url": "/mujer/moda/camisetas" }, "children": [] }, { "category": { "id": 5, "name": "Chaquetas", "slug": "chaquetas", "url": "/mujer/moda/chaquetas" }, "children": [] }, { "category": { "id": 163, "name": "Charms", "slug": "charms", "url": "/mujer/moda/charms" }, "children": [] }, { "category": { "id": 14, "name": "Faldas", "slug": "faldas", "url": "/mujer/moda/faldas" }, "children": [] }, { "category": { "id": 4, "name": "Jeans", "slug": "jeans", "url": "/mujer/moda/jeans" }, "children": [] }, { "category": { "id": 10, "name": "Jerséis y cárdigans", "slug": "jerseis-y-cardigans", "url": "/mujer/moda/jerseis-y-cardigans" }, "children": [] }, { "category": { "id": 8, "name": "Pantalones", "slug": "pantalones", "url": "/mujer/moda/pantalones" }, "children": [] }, { "category": { "id": 169, "name": "Pijamas y ropa de estar por casa", "slug": "pijamas-y-ropa-de-estar-por-casa", "url": "/mujer/moda/pijamas-y-ropa-de-estar-por-casa" }, "children": [] }, { "category": { "id": 161, "name": "Polos", "slug": "polos", "url": "/mujer/moda/polos" }, "children": [] }, { "category": { "id": 25, "name": "Ropa de deporte", "slug": "ropa-de-deporte", "url": "/mujer/moda/ropa-de-deporte" }, "children": [ { "category": { "id": 26, "name": "Partes arriba", "slug": "partes-arriba", "url": "/moda/ropa-de-deporte/partes-arriba" }, "children": [] }, { "category": { "id": 27, "name": "Partes abajo", "slug": "partes-abajo", "url": "/moda/ropa-de-deporte/partes-abajo" }, "children": [] } ] }, { "category": { "id": 9, "name": "Short", "slug": "short", "url": "/mujer/moda/short" }, "children": [] }, { "category": { "id": 7, "name": "Sudaderas", "slug": "sudaderas", "url": "/mujer/moda/sudaderas" }, "children": [] }, { "category": { "id": 6, "name": "Trajes", "slug": "trajes", "url": "/mujer/moda/trajes" }, "children": [] }, { "category": { "id": 3, "name": "Vestidos", "slug": "vestidos", "url": "/mujer/moda/vestidos" }, "children": [] } ] }, { "category": { "id": 17, "name": "Ropa interior", "slug": "ropa-interior", "url": "/mujer/ropa-interior" }, "children": [ { "category": { "id": 17, "name": "Todo Ropa interior", "slug": "ropa-interior", "url": "/mujer/ropa-interior" }, "children": [] }, { "category": { "id": 18, "name": "Sujetadores", "slug": "sujetadores", "url": "/mujer/ropa-interior/sujetadores" }, "children": [] }, { "category": { "id": 19, "name": "Braguitas", "slug": "braguitas", "url": "/mujer/ropa-interior/braguitas" }, "children": [] } ] }, { "category": { "id": 21, "name": "Ropa de baño", "slug": "ropa-de-bano", "url": "/mujer/ropa-de-bano" }, "children": [ { "category": { "id": 21, "name": "Todo Ropa de baño", "slug": "ropa-de-bano", "url": "/mujer/ropa-de-bano" }, "children": [] }, { "category": { "id": 22, "name": "Bañadores", "slug": "banadores", "url": "/mujer/ropa-de-bano/banadores" }, "children": [] }, { "category": { "id": 23, "name": "Bikinis", "slug": "bikinis", "url": "/mujer/ropa-de-bano/bikinis" }, "children": [] } ] }, { "category": { "id": 32, "name": "Calzado", "slug": "calzado", "url": "/mujer/calzado" }, "children": [ { "category": { "id": 32, "name": "Todo Calzado", "slug": "calzado", "url": "/mujer/calzado" }, "children": [] }, { "category": { "id": 33, "name": "Botas y botines", "slug": "botas-y-botines", "url": "/mujer/calzado/botas-y-botines" }, "children": [] }, { "category": { "id": 35, "name": "Mocasines", "slug": "mocasines", "url": "/mujer/calzado/mocasines" }, "children": [] }, { "category": { "id": 37, "name": "Sandalias y chanclas", "slug": "sandalias-y-chanclas", "url": "/mujer/calzado/sandalias-y-chanclas" }, "children": [] }, { "category": { "id": 38, "name": "Zapatillas", "slug": "zapatillas", "url": "/mujer/calzado/zapatillas" }, "children": [] }, { "category": { "id": 39, "name": "Zapatos planos", "slug": "zapatos-planos", "url": "/mujer/calzado/zapatos-planos" }, "children": [] }, { "category": { "id": 40, "name": "Zapatos de vestir", "slug": "zapatos-de-vestir", "url": "/mujer/calzado/zapatos-de-vestir" }, "children": [] }, { "category": { "id": 41, "name": "Cuñas y plataformas", "slug": "cunas-y-plataformas", "url": "/mujer/calzado/cunas-y-plataformas" }, "children": [] } ] }, { "category": { "id": 42, "name": "Bolsos", "slug": "bolsos", "url": "/mujer/bolsos" }, "children": [ { "category": { "id": 42, "name": "Todo Bolsos", "slug": "bolsos", "url": "/mujer/bolsos" }, "children": [] }, { "category": { "id": 43, "name": "Bolsos de mano", "slug": "bolsos-de-mano", "url": "/mujer/bolsos/bolsos-de-mano" }, "children": [] }, { "category": { "id": 44, "name": "Bandoleras", "slug": "bandoleras", "url": "/mujer/bolsos/bandoleras" }, "children": [] }, { "category": { "id": 45, "name": "Carteras y monederos", "slug": "carteras-y-monederos", "url": "/mujer/bolsos/carteras-y-monederos" }, "children": [] }, { "category": { "id": 46, "name": "Bolsos asa de mano", "slug": "bolsos-asa-de-mano", "url": "/mujer/bolsos/bolsos-asa-de-mano" }, "children": [] }, { "category": { "id": 47, "name": "Bolsos al hombro", "slug": "bolsos-al-hombro", "url": "/mujer/bolsos/bolsos-al-hombro" }, "children": [] }, { "category": { "id": 48, "name": "Maletas", "slug": "maletas", "url": "/mujer/bolsos/maletas" }, "children": [] }, { "category": { "id": 49, "name": "Mochilas", "slug": "mochilas", "url": "/mujer/bolsos/mochilas" }, "children": [] } ] }, { "category": { "id": 50, "name": "Accesorios", "slug": "accesorios", "url": "/mujer/accesorios" }, "children": [ { "category": { "id": 50, "name": "Todo Accesorios", "slug": "accesorios", "url": "/mujer/accesorios" }, "children": [] }, { "category": { "id": 51, "name": "Bufandas y fulares", "slug": "bufandas-y-fulares", "url": "/mujer/accesorios/bufandas-y-fulares" }, "children": [] }, { "category": { "id": 52, "name": "Cinturones", "slug": "cinturones", "url": "/mujer/accesorios/cinturones" }, "children": [] }, { "category": { "id": 53, "name": "Gafas", "slug": "gafas", "url": "/mujer/accesorios/gafas" }, "children": [] }, { "category": { "id": 54, "name": "Guantes", "slug": "guantes", "url": "/mujer/accesorios/guantes" }, "children": [] }, { "category": { "id": 55, "name": "Gorros y sombreros", "slug": "gorros-y-sombreros", "url": "/mujer/accesorios/gorros-y-sombreros" }, "children": [] }, { "category": { "id": 56, "name": "Otros", "slug": "otros", "url": "/mujer/accesorios/otros" }, "children": [] }, { "category": { "id": 188, "name": "Packs", "slug": "packs", "url": "/mujer/accesorios/packs" }, "children": [] } ] }, { "category": { "id": 57, "name": "Bisutería y Joyas", "slug": "bisuteria-y-joyas", "url": "/mujer/bisuteria-y-joyas" }, "children": [ { "category": { "id": 57, "name": "Todo Bisutería y Joyas", "slug": "bisuteria-y-joyas", "url": "/mujer/bisuteria-y-joyas" }, "children": [] }, { "category": { "id": 58, "name": "Anillos", "slug": "anillos", "url": "/mujer/bisuteria-y-joyas/anillos" }, "children": [] }, { "category": { "id": 59, "name": "Colgantes", "slug": "colgantes", "url": "/mujer/bisuteria-y-joyas/colgantes" }, "children": [] }, { "category": { "id": 60, "name": "Collares", "slug": "collares", "url": "/mujer/bisuteria-y-joyas/collares" }, "children": [] }, { "category": { "id": 62, "name": "Pendientes", "slug": "pendientes", "url": "/mujer/bisuteria-y-joyas/pendientes" }, "children": [] }, { "category": { "id": 63, "name": "Pulseras", "slug": "pulseras", "url": "/mujer/bisuteria-y-joyas/pulseras" }, "children": [] }, { "category": { "id": 162, "name": "Tobilleras", "slug": "tobilleras", "url": "/mujer/bisuteria-y-joyas/tobilleras" }, "children": [] }, { "category": { "id": 164, "name": "Otros", "slug": "otros", "url": "/mujer/bisuteria-y-joyas/otros" }, "children": [] } ] }, { "category": { "id": 64, "name": "Cosmética", "slug": "cosmetica", "url": "/mujer/cosmetica" }, "children": [ { "category": { "id": 64, "name": "Todo Cosmética", "slug": "cosmetica", "url": "/mujer/cosmetica" }, "children": [] } ] }, { "category": { "id": 66, "name": "Relojes", "slug": "relojes", "url": "/mujer/relojes" }, "children": [ { "category": { "id": 66, "name": "Todo Relojes", "slug": "relojes", "url": "/mujer/relojes" }, "children": [] }, { "category": { "id": 176, "name": "Correas", "slug": "correas", "url": "/mujer/relojes/correas" }, "children": [] } ] }, { "category": { "id": 0, "name": "Ofertas", "slug": "", "url": "/mujer/s/?sales=true", "isOffer": true }, "children": [ { "category": { "id": 0, "name": "Todo Ofertas", "slug": "", "url": "/mujer/s/?sales=true" }, "children": [] }, { "category": { "id": 2, "name": "Moda", "slug": "moda", "url": "/mujer/moda/?sales=true" }, "children": [ { "category": { "id": 11, "name": "Abrigos", "slug": "abrigos", "url": "/mujer/moda/abrigos" }, "children": [] }, { "category": { "id": 15, "name": "Camisas y blusas", "slug": "camisas-y-blusas", "url": "/mujer/moda/camisas-y-blusas" }, "children": [] }, { "category": { "id": 16, "name": "Camisetas", "slug": "camisetas", "url": "/mujer/moda/camisetas" }, "children": [] }, { "category": { "id": 5, "name": "Chaquetas", "slug": "chaquetas", "url": "/mujer/moda/chaquetas" }, "children": [] }, { "category": { "id": 14, "name": "Faldas", "slug": "faldas", "url": "/mujer/moda/faldas" }, "children": [] }, { "category": { "id": 4, "name": "Jeans", "slug": "jeans", "url": "/mujer/moda/jeans" }, "children": [] }, { "category": { "id": 10, "name": "Jerséis y cárdigans", "slug": "jerseis-y-cardigans", "url": "/mujer/moda/jerseis-y-cardigans" }, "children": [] }, { "category": { "id": 8, "name": "Pantalones", "slug": "pantalones", "url": "/mujer/moda/pantalones" }, "children": [] }, { "category": { "id": 161, "name": "Polos", "slug": "polos", "url": "/mujer/moda/polos" }, "children": [] }, { "category": { "id": 25, "name": "Ropa de deporte", "slug": "ropa-de-deporte", "url": "/mujer/moda/ropa-de-deporte" }, "children": [ { "category": { "id": 27, "name": "Partes abajo", "slug": "partes-abajo", "url": "/moda/ropa-de-deporte/partes-abajo" }, "children": [] } ] }, { "category": { "id": 9, "name": "Short", "slug": "short", "url": "/mujer/moda/short" }, "children": [] }, { "category": { "id": 7, "name": "Sudaderas", "slug": "sudaderas", "url": "/mujer/moda/sudaderas" }, "children": [] }, { "category": { "id": 6, "name": "Trajes", "slug": "trajes", "url": "/mujer/moda/trajes" }, "children": [] }, { "category": { "id": 3, "name": "Vestidos", "slug": "vestidos", "url": "/mujer/moda/vestidos" }, "children": [] } ] }, { "category": { "id": 17, "name": "Ropa interior", "slug": "ropa-interior", "url": "/mujer/ropa-interior/?sales=true" }, "children": [ { "category": { "id": 18, "name": "Sujetadores", "slug": "sujetadores", "url": "/mujer/ropa-interior/sujetadores" }, "children": [] }, { "category": { "id": 19, "name": "Braguitas", "slug": "braguitas", "url": "/mujer/ropa-interior/braguitas" }, "children": [] } ] }, { "category": { "id": 21, "name": "Ropa de baño", "slug": "ropa-de-bano", "url": "/mujer/ropa-de-bano/?sales=true" }, "children": [ { "category": { "id": 22, "name": "Bañadores", "slug": "banadores", "url": "/mujer/ropa-de-bano/banadores" }, "children": [] }, { "category": { "id": 23, "name": "Bikinis", "slug": "bikinis", "url": "/mujer/ropa-de-bano/bikinis" }, "children": [] } ] }, { "category": { "id": 32, "name": "Calzado", "slug": "calzado", "url": "/mujer/calzado/?sales=true" }, "children": [ { "category": { "id": 33, "name": "Botas y botines", "slug": "botas-y-botines", "url": "/mujer/calzado/botas-y-botines" }, "children": [] }, { "category": { "id": 35, "name": "Mocasines", "slug": "mocasines", "url": "/mujer/calzado/mocasines" }, "children": [] }, { "category": { "id": 37, "name": "Sandalias y chanclas", "slug": "sandalias-y-chanclas", "url": "/mujer/calzado/sandalias-y-chanclas" }, "children": [] }, { "category": { "id": 38, "name": "Zapatillas", "slug": "zapatillas", "url": "/mujer/calzado/zapatillas" }, "children": [] }, { "category": { "id": 39, "name": "Zapatos planos", "slug": "zapatos-planos", "url": "/mujer/calzado/zapatos-planos" }, "children": [] }, { "category": { "id": 40, "name": "Zapatos de vestir", "slug": "zapatos-de-vestir", "url": "/mujer/calzado/zapatos-de-vestir" }, "children": [] } ] }, { "category": { "id": 42, "name": "Bolsos", "slug": "bolsos", "url": "/mujer/bolsos/?sales=true" }, "children": [ { "category": { "id": 43, "name": "Bolsos de mano", "slug": "bolsos-de-mano", "url": "/mujer/bolsos/bolsos-de-mano" }, "children": [] }, { "category": { "id": 44, "name": "Bandoleras", "slug": "bandoleras", "url": "/mujer/bolsos/bandoleras" }, "children": [] }, { "category": { "id": 49, "name": "Mochilas", "slug": "mochilas", "url": "/mujer/bolsos/mochilas" }, "children": [] } ] }, { "category": { "id": 50, "name": "Accesorios", "slug": "accesorios", "url": "/mujer/accesorios/?sales=true" }, "children": [ { "category": { "id": 51, "name": "Bufandas y fulares", "slug": "bufandas-y-fulares", "url": "/mujer/accesorios/bufandas-y-fulares" }, "children": [] }, { "category": { "id": 52, "name": "Cinturones", "slug": "cinturones", "url": "/mujer/accesorios/cinturones" }, "children": [] }, { "category": { "id": 53, "name": "Gafas", "slug": "gafas", "url": "/mujer/accesorios/gafas" }, "children": [] }, { "category": { "id": 54, "name": "Guantes", "slug": "guantes", "url": "/mujer/accesorios/guantes" }, "children": [] }, { "category": { "id": 55, "name": "Gorros y sombreros", "slug": "gorros-y-sombreros", "url": "/mujer/accesorios/gorros-y-sombreros" }, "children": [] }, { "category": { "id": 56, "name": "Otros", "slug": "otros", "url": "/mujer/accesorios/otros" }, "children": [] }, { "category": { "id": 188, "name": "Packs", "slug": "packs", "url": "/mujer/accesorios/packs" }, "children": [] } ] }, { "category": { "id": 57, "name": "Bisutería y Joyas", "slug": "bisuteria-y-joyas", "url": "/mujer/bisuteria-y-joyas/?sales=true" }, "children": [ { "category": { "id": 58, "name": "Anillos", "slug": "anillos", "url": "/mujer/bisuteria-y-joyas/anillos" }, "children": [] }, { "category": { "id": 60, "name": "Collares", "slug": "collares", "url": "/mujer/bisuteria-y-joyas/collares" }, "children": [] }, { "category": { "id": 62, "name": "Pendientes", "slug": "pendientes", "url": "/mujer/bisuteria-y-joyas/pendientes" }, "children": [] }, { "category": { "id": 63, "name": "Pulseras", "slug": "pulseras", "url": "/mujer/bisuteria-y-joyas/pulseras" }, "children": [] } ] }, { "category": { "id": 66, "name": "Relojes", "slug": "relojes", "url": "/mujer/relojes/?sales=true" }, "children": [ { "category": { "id": 176, "name": "Correas", "slug": "correas", "url": "/mujer/relojes/correas" }, "children": [] } ] } ] }, { "category": { "id": 0, "name": "Marcas", "slug": "" }, "children": [ { "category": { "type": "brand", "id": "arica", "attributes": { "name": "Arica", "provider": "Arica", "favorite": false, "media": { "BRAND_MEDIA_HERO_MOBILE_MOBILE": "", "BRAND_MEDIA_HERO_MOBILE_TABLET": "", "BRAND_MEDIA_HOME_ALL": "media/697/69/697/arica-1-325bb1eff59f4b6-fashionalia.jpeg", "BRAND_MEDIA_HOME_WOMAN": "media/697/69/697/arica-1-325bb1eff59f4b6-fashionalia.jpeg", "BRAND_MEDIA_HOME_MAN": "media/697/69/697/arica-1-325bb1eff59f4b6-fashionalia.jpeg", "BRAND_MEDIA_HOME_CHILDREN": "media/697/69/697/arica-1-325bb1eff59f4b6-fashionalia.jpeg" } } } } } ] }

]

}

Fork me on GitHub