AnalysisUpdateOptionsParams.fromJson constructor
AnalysisUpdateOptionsParams.fromJson(
- JsonDecoder jsonDecoder,
- String jsonPath,
- Object? json
)
Implementation
factory AnalysisUpdateOptionsParams.fromJson(
JsonDecoder jsonDecoder, String jsonPath, Object? json) {
json ??= {};
if (json is Map) {
AnalysisOptions options;
if (json.containsKey('options')) {
options = AnalysisOptions.fromJson(
jsonDecoder, '$jsonPath.options', json['options']);
} else {
throw jsonDecoder.mismatch(jsonPath, 'options');
}
return AnalysisUpdateOptionsParams(options);
} else {
throw jsonDecoder.mismatch(
jsonPath, 'analysis.updateOptions params', json);
}
}