parse static method
Implementation
static CompletionSuggestion parse(Map m) {
return new CompletionSuggestion(
m['kind'],
m['relevance'],
m['completion'],
m['selectionOffset'],
m['selectionLength'],
m['isDeprecated'],
m['isPotential'],
displayText: m['displayText'],
replacementOffset: m['replacementOffset'],
replacementLength: m['replacementLength'],
docSummary: m['docSummary'],
docComplete: m['docComplete'],
declaringType: m['declaringType'],
defaultArgumentListString: m['defaultArgumentListString'],
defaultArgumentListTextRanges:
m['defaultArgumentListTextRanges'] == null
? null
: new List.from(m['defaultArgumentListTextRanges']),
element: m['element'] == null ? null : Element.parse(m['element']),
returnType: m['returnType'],
parameterNames: m['parameterNames'] == null
? null
: new List.from(m['parameterNames']),
parameterTypes: m['parameterTypes'] == null
? null
: new List.from(m['parameterTypes']),
requiredParameterCount: m['requiredParameterCount'],
hasNamedParameters: m['hasNamedParameters'],
parameterName: m['parameterName'],
parameterType: m['parameterType'],
libraryUri: m['libraryUri'],
isNotImported: m['isNotImported']);
}