ExplainResponse_ConcurrentExplanation.fromJson constructor
ExplainResponse_ConcurrentExplanation.fromJson(
- Object? j
Implementation
factory ExplainResponse_ConcurrentExplanation.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ExplainResponse_ConcurrentExplanation(
explanations: switch (json['explanations']) {
null => [],
List<Object?> $1 => [for (final i in $1) Explanation.fromJson(i)],
_ => throw const FormatException('"explanations" is not a list'),
},
);
}