SearchFindElementReferencesResult.fromJson constructor
SearchFindElementReferencesResult.fromJson()
Implementation
factory SearchFindElementReferencesResult.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']);
}
Element? element;
if (json.containsKey('element')) {
element =
Element.fromJson(jsonDecoder, '$jsonPath.element', json['element']);
}
return SearchFindElementReferencesResult(id: id, element: element);
} else {
throw jsonDecoder.mismatch(
jsonPath, 'search.findElementReferences result', json);
}
}