Convert class object to data value flutter dart
This is my JSON: { 'malls' : [{'id':1 , 'name': 'salam'},{'id':2 , 'name': 'salam2'}] } And this is my modeling JSON classes: class MALL { final int id; final String name; MALL({required this.id, required this.name}); factory MALL.fromJson(Map<String, dynamic> data) {…