fromAst static method

BooleanLiteral? fromAst(
  1. Map? ast
)

Implementation

static BooleanLiteral? fromAst(Map? ast) {
  if (ast != null &&
      ast['type'] == astNodeNameValue(AstNodeName.BooleanLiteral)) {
    return BooleanLiteral(ast['value'], ast: ast);
  }
  return null;
}