toJson method
Implementation
Map<String, dynamic> toJson() => {
'op': kind.name,
'schemaName': schemaName,
'canonicalField': canonicalField,
'jsonPath': jsonPath,
'jsonPointer': jsonPointer,
'value': JsonValue.clone(value),
'hasPreviousValue': hasPreviousValue,
if (hasPreviousValue) 'previousValue': JsonValue.clone(previousValue),
'changesValue': changesValue,
'isValid': isValid,
if (valueKey != null) 'valueKey': valueKey,
};