toMap method

Map toMap()

Implementation

Map toMap() {
  return {"contents": _contents.map((e) => e.toMap()).toList()};
}