toMap method

  1. @override
Map<String, dynamic> toMap({
  1. bool showNull = false,
  2. bool showEmpty = false,
  3. bool showRuntimeType = false,
})
override

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