I'm a Flutter language learner, new to this world,
{
"USDBRL":
{
"id": "...",
"name": "...",...
}
}
My Dolar Model:
class Dolar {
String param1;
String param2;
// Constructor
Dolar({
required this.param1,
required this.param2,
});
factory Dolar.fromJson(Map<String, dynamic> json) {
return Dolar(
param1: json['param1'],
param2: json['param2'],
);
}
}
I need to grab all "USDBRL" fields, but when I run the app I get "flutter: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' ".
I've tried searching for resolutions on the internet, but none of the alternatives I've tried have worked.
