toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (detectedValue != null) 'detectedValue': detectedValue!,
if (expectedValue != null) 'expectedValue': expectedValue!,
if (field != null) 'field': field!,
};