toJson method
Implementation
Map<String, dynamic> toJson() => {
'_elementId': _elementId,
'title': title,
'items': items.map((AAListItem item) => item.toJson()).toList(),
'selectedIndex': selectedIndex,
'onSelected': onSelected != null ? true : false,
};