I receive the below from an api call. Is it possible to use nested objects in a model? If so, how would I use the regModel to register the below hierarchy?
Thanks.
Code:{ "Store": { "id":"1721", "name":"The Widget Store", "address_1":"91 Widget Rd", "address_2":"-", "marker":"default_marker.png", "lat":"-33.8868", "lng":"151.177" }, "Suburb": { "name":"Widget Land" } }
Code:Ext.regModel('Store', { fields: ['id', 'name', 'address_1', 'address_2', 'marker', 'lat', 'lng', 'suburb'] });