toMap method
Implementation
@override
Map<String, dynamic> toMap() {
var json = super.toMap();
json.addAll({
'hasTip': hasTip,
'isEntireAnnotationTappable': isEntireAnnotationTappable,
'anchor': anchor.toString(),
'width': width.toString(),
'body': body.map((e) => e.toMap()).toList(),
'header': header?.toMap(),
'footer': footer?.toMap(),
'backgroundColor': backgroundColor.jsonValue,
'hasListener': listener != null
});
return json;
}