toMap method
Converts object to map.
Implementation
Map<String, dynamic> toMap() {
List<Map<String, dynamic>> itemsMaps = items.map((c) => c.toMap()).toList();
return {
'type': type,
'key': key,
'label': label,
'items': itemsMaps,
'labelRes': labelRes,
};
}