They are not found in the same dart JSON:
{
"museum1" : {
"info1" : "value1",
"info2" : "value1"
},
"museum2" : {
"info1" : "value2",
"info2" : "value2"
}
...
}
museum class:
class museo{
String info1;
String info2
museo({this.info1, this.info2});
}
Is there a way to retrieve info1 and info2 by knowing the id? I would like to create museum object and just do museum.info1