toMap method

dynamic toMap()

Implementation

toMap() {
  return {'text': text, 'segments': segments.map((e) => e.toMap()).toList()};
}