toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (dataItemPayload != null) 'dataItemPayload': dataItemPayload!,
      if (errorAnalysisAnnotations != null)
        'errorAnalysisAnnotations': errorAnalysisAnnotations!,
      if (evaluatedDataItemViewId != null)
        'evaluatedDataItemViewId': evaluatedDataItemViewId!,
      if (explanations != null) 'explanations': explanations!,
      if (groundTruths != null) 'groundTruths': groundTruths!,
      if (predictions != null) 'predictions': predictions!,
      if (type != null) 'type': type!,
    };