toMap method

Map<String, dynamic> toMap()
override

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,
  };
}