EditGetFixesResult.fromJson constructor
EditGetFixesResult.fromJson(})
Implementation
factory EditGetFixesResult.fromJson(
JsonDecoder jsonDecoder,
String jsonPath,
Object? json, {
ClientUriConverter? clientUriConverter,
}) {
json ??= {};
if (json is! Map) {
throw jsonDecoder.mismatch(jsonPath, "'edit.getFixes result'", json);
}
List<AnalysisErrorFixes> fixes;
if (json case {'fixes': var encodedFixes}) {
fixes = jsonDecoder.decodeList(
'$jsonPath.fixes',
encodedFixes,
(String jsonPath, Object? json) => AnalysisErrorFixes.fromJson(
jsonDecoder,
jsonPath,
json,
clientUriConverter: clientUriConverter,
),
);
} else {
throw jsonDecoder.mismatch(jsonPath, "'fixes'", json);
}
return EditGetFixesResult(fixes);
}