toMap method

  1. @override
Map<String, dynamic> toMap()
override

Outputs the attributes as a Map.

Implementation

@override
Map<String, dynamic> toMap() => {
      'text': text,
      'textContent': textContent,
      'start': start.toMap(),
      'end': end.toMap(),
    };