Created
September 5, 2021 08:15
-
-
Save jack24254029/e74ebbd6c5a74bb80b0d7dfb397bfc68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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