toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (angerLikelihood != null) 'angerLikelihood': angerLikelihood!,
      if (blurredLikelihood != null) 'blurredLikelihood': blurredLikelihood!,
      if (boundingPoly != null) 'boundingPoly': boundingPoly!,
      if (detectionConfidence != null)
        'detectionConfidence': detectionConfidence!,
      if (fdBoundingPoly != null) 'fdBoundingPoly': fdBoundingPoly!,
      if (headwearLikelihood != null)
        'headwearLikelihood': headwearLikelihood!,
      if (joyLikelihood != null) 'joyLikelihood': joyLikelihood!,
      if (landmarkingConfidence != null)
        'landmarkingConfidence': landmarkingConfidence!,
      if (landmarks != null) 'landmarks': landmarks!,
      if (panAngle != null) 'panAngle': panAngle!,
      if (rollAngle != null) 'rollAngle': rollAngle!,
      if (sorrowLikelihood != null) 'sorrowLikelihood': sorrowLikelihood!,
      if (surpriseLikelihood != null)
        'surpriseLikelihood': surpriseLikelihood!,
      if (tiltAngle != null) 'tiltAngle': tiltAngle!,
      if (underExposedLikelihood != null)
        'underExposedLikelihood': underExposedLikelihood!,
    };