AnalysisStatus.fromJson constructor
AnalysisStatus.fromJson(})
Implementation
factory AnalysisStatus.fromJson(
JsonDecoder jsonDecoder,
String jsonPath,
Object? json, {
ClientUriConverter? clientUriConverter,
}) {
json ??= {};
if (json is Map) {
bool isAnalyzing;
if (json.containsKey('isAnalyzing')) {
isAnalyzing = jsonDecoder.decodeBool(
'$jsonPath.isAnalyzing',
json['isAnalyzing'],
);
} else {
throw jsonDecoder.mismatch(jsonPath, "'isAnalyzing'", json);
}
return AnalysisStatus(isAnalyzing);
} else {
throw jsonDecoder.mismatch(jsonPath, "'AnalysisStatus'", json);
}
}