fromAst static method
Implementation
static Annotation? fromAst(Map? ast) {
if (ast != null &&
ast['type'] == astNodeNameValue(AstRuntimeNodeName.Annotation)) {
return Annotation(
SimpleIdentifier.fromAst(ast['id']),
SimpleIdentifier.fromAst(ast['constructorName']),
_parseArgumentList(ast['argumentList']));
}
logDebug(_tag, 'Can not parse ast to Annotation');
return null;
}