fromAst static method

MapLiteralEntry? fromAst(
  1. Map? ast
)

Implementation

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