fromMap static method

DDefVariable fromMap(
  1. FormMapTip f,
  2. Map m
)

Implementation

static DDefVariable fromMap(FormMapTip f, Map m) {
  assert(m['statement_name'] == statementName);
  final _type = TranEngine.fromMap(f, m['type']);
  final _target = TranEngine.fromMap(f, m['target']);
  final _content = TranEngine.fromMap(f, m['content']);
  return ODefVariable(
    type: _type as DType?,
    target: _target as DVar,
    content: _content as DExpression?,
    changeable: m['changeable'],
  );
}