SearchFindMemberDeclarationsResult.fromJson constructor
SearchFindMemberDeclarationsResult.fromJson()
Implementation
factory SearchFindMemberDeclarationsResult.fromJson(
JsonDecoder jsonDecoder, String jsonPath, Object? json) {
json ??= {};
if (json is Map) {
String id;
if (json.containsKey('id')) {
id = jsonDecoder.decodeString('$jsonPath.id', json['id']);
} else {
throw jsonDecoder.mismatch(jsonPath, 'id');
}
return SearchFindMemberDeclarationsResult(id);
} else {
throw jsonDecoder.mismatch(
jsonPath, 'search.findMemberDeclarations result', json);
}
}