toJson method
Serializes the change set to a JSON-safe map.
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
'added': List<String>.unmodifiable(added),
'updated': List<String>.unmodifiable(updated),
'removed': List<String>.unmodifiable(removed),
if (note != null) 'note': note,
};
}