IntegratedGradientsAttribution.fromJson constructor

IntegratedGradientsAttribution.fromJson(
  1. Object? j
)

Implementation

factory IntegratedGradientsAttribution.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return IntegratedGradientsAttribution(
    stepCount: switch (json['stepCount']) {
      null => 0,
      Object $1 => decodeInt($1),
    },
    smoothGradConfig: switch (json['smoothGradConfig']) {
      null => null,
      Object $1 => SmoothGradConfig.fromJson($1),
    },
    blurBaselineConfig: switch (json['blurBaselineConfig']) {
      null => null,
      Object $1 => BlurBaselineConfig.fromJson($1),
    },
  );
}