dart list of json to list of objects code example
Example: dart list to json
import 'dart:convert';
main() {
List<String> tags = ['tagA', 'tagB', 'tagC'];
String jsonTags = jsonEncode(tags);
print(jsonTags); // ["tagA","tagB","tagC"]
}
import 'dart:convert';
main() {
List<String> tags = ['tagA', 'tagB', 'tagC'];
String jsonTags = jsonEncode(tags);
print(jsonTags); // ["tagA","tagB","tagC"]
}