fromAst static method

InterpolationExpression? fromAst(
  1. Map? ast
)

Implementation

static InterpolationExpression? fromAst(Map? ast) {
  if (ast != null &&
      ast['type'] ==
          astNodeNameValue(AstRuntimeNodeName.InterpolationExpression)) {
    return InterpolationExpression(
      AstRuntimeNodeParser.fromAst(ast['value']),
    );
  }
  logDebug(_tag, 'Can not parse ast to InterpolationExpression');
  return null;
}