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