JsonPatch class abstract

A JSONPatch document as defined by RFC 6902

Properties:

  • from - This field is used together with operation "move" and uses JSON Pointer notation. Learn more about JSON Pointers.
  • op - The operation to be performed. One of "add", "remove", "replace", "move", "copy", or "test".
  • path - The path to the target path. Uses JSON pointer notation. Learn more about JSON Pointers.
  • value - The value to be used within the operations. Learn more about JSON Pointers.
Annotations
  • @BuiltValue()

Constructors

JsonPatch([void updates(JsonPatchBuilder b)])
factory

Properties

from String?
This field is used together with operation "move" and uses JSON Pointer notation. Learn more about JSON Pointers.
no setter
hashCode int
The hash code for this object.
no setterinherited
op String
The operation to be performed. One of "add", "remove", "replace", "move", "copy", or "test".
no setter
path String
The path to the target path. Uses JSON pointer notation. Learn more about JSON Pointers.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → JsonObject?
The value to be used within the operations. Learn more about JSON Pointers.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(JsonPatchBuilder)) JsonPatch
Rebuilds the instance.
inherited
toBuilder() JsonPatchBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

serializer → Serializer<JsonPatch>
no setter