Skip to content

Instantly share code, notes, and snippets.

@jack24254029
Created September 5, 2021 08:15
Show Gist options
  • Save jack24254029/e74ebbd6c5a74bb80b0d7dfb397bfc68 to your computer and use it in GitHub Desktop.
Save jack24254029/e74ebbd6c5a74bb80b0d7dfb397bfc68 to your computer and use it in GitHub Desktop.
void main() {
var jsondata = [
{
'value': '1',
'label': 'Red',
},
{
'value': '2',
'label': 'Green',
},
{
'value': '3',
'label': 'Yellow',
},
];
List<Map<String, String>> _items = jsondata;
for (var item in _items) {
print('${item['value']} : ${item['label']}');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment