toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (context != null) 'context': context!,
  if (cropHintsAnnotation != null)
    'cropHintsAnnotation': cropHintsAnnotation!,
  if (error != null) 'error': error!,
  if (faceAnnotations != null) 'faceAnnotations': faceAnnotations!,
  if (fullTextAnnotation != null) 'fullTextAnnotation': fullTextAnnotation!,
  if (imagePropertiesAnnotation != null)
    'imagePropertiesAnnotation': imagePropertiesAnnotation!,
  if (labelAnnotations != null) 'labelAnnotations': labelAnnotations!,
  if (landmarkAnnotations != null)
    'landmarkAnnotations': landmarkAnnotations!,
  if (localizedObjectAnnotations != null)
    'localizedObjectAnnotations': localizedObjectAnnotations!,
  if (logoAnnotations != null) 'logoAnnotations': logoAnnotations!,
  if (productSearchResults != null)
    'productSearchResults': productSearchResults!,
  if (safeSearchAnnotation != null)
    'safeSearchAnnotation': safeSearchAnnotation!,
  if (textAnnotations != null) 'textAnnotations': textAnnotations!,
  if (webDetection != null) 'webDetection': webDetection!,
};