toJson method

Map<String, dynamic> toJson()

Implementation

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