GlobalExplanation.fromJson constructor

GlobalExplanation.fromJson(
  1. Map json_
)

Implementation

GlobalExplanation.fromJson(core.Map json_)
    : this(
        classLabel: json_.containsKey('classLabel')
            ? json_['classLabel'] as core.String
            : null,
        explanations: json_.containsKey('explanations')
            ? (json_['explanations'] as core.List)
                .map((value) => Explanation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );