There are two Functions that I use to convert two String variables into JSON and from JSON.
String toJson() {
Map<String,dynamic> map = {'name': name,'count':checkListCount,'description':description,};
return jsonEncode(map)
}
fromJson(String context){
Map<String,dynamic> map = jsonDecode(contents)
name = map['name'];
description = map['description'];
return '0';
}
How i can use this to functions to covert List? There is my list
List<CheckListPoint> checkListPoints = [];
CheckListPoint{
bool correctly = false;
bool passed = false;
String requirement = '';
}
variables that I have in CheckListPoint will change by the user later in the app.