toMap method
Outputs the attributes as a Map
.
Implementation
@override
Map<String, dynamic> toMap({
bool showNull = false,
bool showEmpty = false,
bool showRuntimeType = false,
}) =>
{
'type': type,
'start': start.toMap(),
'end': end.toMap(),
'lineEndings': lineEndings.map((e) => e.toMap()).toList(),
'markers': markers.map((e) => e.toMap()).toList(),
'children': children.map((e) => e.toMap()).toList(),
};