toMap method
Implementation
@override
Map<String, dynamic> toMap() {
var json = super.toMap();
json.addAll({
'isEntirePopoverTappable': isEntirePopoverTappable,
'buttons': buttons.map((e) => e.toMap()).toList(),
'hasListener': listener != null
});
return json;
}