toMap method
Convert Document to a Map
Some nodes, metadata and attributions might not be mapped.
Implementation
Map<String, dynamic> toMap({
//Append a list of keys containing the order of nodes
///
/// This is useful if you are using something like Firebase Firestore with sorts data on creation
bool appendOrder = false,
///Will retain the node id found in the document
///
/// If `false` then nodes will be returned in a list
bool keepID = true,
}) =>
documentToMap(this, appendOrder: appendOrder, keepID: keepID);