toJson method

  1. @override
Map<String, dynamic> toJson()
override

Returns the JSON representation of the operation.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'op': 'update',
    'path': path,
    'attributes': {...attributes},
    'oldAttributes': {...oldAttributes},
  };
}