toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    if (sampledShapleyAttribution != null)
      'sampledShapleyAttribution': sampledShapleyAttribution!.toJson(),
    if (integratedGradientsAttribution != null)
      'integratedGradientsAttribution': integratedGradientsAttribution!
          .toJson(),
    if (xraiAttribution != null) 'xraiAttribution': xraiAttribution!.toJson(),
    if (examples != null) 'examples': examples!.toJson(),
    if (topK.isNotDefault) 'topK': topK,
    if (outputIndices != null) 'outputIndices': outputIndices!.toJson(),
  };
}