flutter parse json string code example
Example 1: flutter generate json files
flutter packages pub run build_runner build
Example 2: flutter convert json string to json
flutter convert json string to json
----------------------
var x1 = '[{"id": "1"}]';
List<dynamic> x2 = jsonDecode(x1);
print(x2[0]);