toMap method

Map<String, dynamic> toMap()

Converts the document to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    'pageContent': pageContent,
    'metadata': metadata,
  };
}