parse static method

FlutterOutline parse(
  1. Map m
)

Implementation

static FlutterOutline parse(Map m) {
  return new FlutterOutline(
      m['kind'], m['offset'], m['length'], m['codeOffset'], m['codeLength'],
      label: m['label'],
      dartElement:
          m['dartElement'] == null ? null : Element.parse(m['dartElement']),
      attributes: m['attributes'] == null
          ? null
          : new List.from(m['attributes']
              .map((obj) => FlutterOutlineAttribute.parse(obj))),
      className: m['className'],
      parentAssociationLabel: m['parentAssociationLabel'],
      variableName: m['variableName'],
      children: m['children'] == null
          ? null
          : new List.from(
              m['children'].map((obj) => FlutterOutline.parse(obj))));
}