Converts this node to a JSON representation.
The returned map must include at least the 'id' key.
Map<String, dynamic> toJson();