I have one data type Map<String,CartItem> _items = {};
And using print(_items)
And the output is:
{
p1: Instance of 'CartItem',
p2: Instance of 'CartItem'
}
Is there any method by which I can see the full logs(values) of CartItem
? as my expectation is:
{
p1: some json formatted structure,
p2: some json formatted structure
}
class CartItem {
final String id;
final String title;
CartItem({
@required this.id,
@required this.title,
});
}