toJson method
Returns the JSON representation of the operation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'op': 'update',
'path': path,
'attributes': {...attributes},
'oldAttributes': {...oldAttributes},
};
}