I am using sqflite package to store data offline as well once it got from API. I had seen a couple of examples and all used the simple Strings and not lists in their models as a type and due to that I am feeling difficulty in the conversion of these classes in respective tables and link them so that data can be fetch easily once synced. Can someone guide me on how to make create and link tables in sqflite with these types of classes so that they work perfectly?
TodayDeliveriesModel class
class TodayDeliveriesModel {
final String Name;
final List<ItemsModel> allItems;
final bool pending;
TodayDeliveriesModel({this.Name, this.allItems, this.pending});
}
Items Model class:
class ItemsModel {
String name;
String quantity;
ItemsModel({this.name, this.quantity});
}