Data returns the JSON representation of patch.
(client.Object)
| 105 | |
| 106 | // Data returns the JSON representation of patch. |
| 107 | func (patch *JSON6902) Data(client.Object) ([]byte, error) { return json.Marshal(*patch) } |
| 108 | |
| 109 | // IsEmpty returns true when patch has no operations. |
| 110 | func (patch *JSON6902) IsEmpty() bool { return len(*patch) == 0 } |