parse static method

SourceChange parse(
  1. Map m
)

Implementation

static SourceChange parse(Map m) {
  return new SourceChange(
      m['message'],
      new List.from(m['edits'].map((obj) => SourceFileEdit.parse(obj))),
      new List.from(
          m['linkedEditGroups'].map((obj) => LinkedEditGroup.parse(obj))),
      selection:
          m['selection'] == null ? null : Position.parse(m['selection']),
      selectionLength: m['selectionLength'],
      id: m['id']);
}