fromAst static method
Implementation
static MethodInvocation? fromAst(Map? ast) {
if (ast != null &&
ast['type'] == astNodeNameValue(AstRuntimeNodeName.MethodInvocation)) {
return MethodInvocation(AstRuntimeNodeParser.fromAst(ast['callee']),
_parseArgumentList(ast['argumentList']), ast['isNullAware'] ?? false);
}
logDebug(_tag, 'Can not parse ast to MethodInvocation');
return null;
}