toJson method
Converts the DocumentChange to JSON.
Returns: A JSON map representation.
Example:
var json = change.toJson();
Implementation
dynamic toJson() {
Map<String, dynamic> json = {
'doc': _doc.toJson(),
'newIndex': _newIndex,
'oldIndex': _oldIndex,
'ctype': _type.asString
};
return json;
}