SampledShapleyAttribution.fromJson constructor

SampledShapleyAttribution.fromJson(
  1. Object? j
)

Implementation

factory SampledShapleyAttribution.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return SampledShapleyAttribution(
    pathCount: switch (json['pathCount']) {
      null => 0,
      Object $1 => decodeInt($1),
    },
  );
}