parse static method

RefactoringResult? parse(
  1. String? kind,
  2. Map m
)

Implementation

static RefactoringResult? parse(String? kind, Map m) => new RefactoringResult(
    new List.from(
        m['initialProblems'].map((obj) => RefactoringProblem.parse(obj))),
    new List.from(
        m['optionsProblems'].map((obj) => RefactoringProblem.parse(obj))),
    new List.from(
        m['finalProblems'].map((obj) => RefactoringProblem.parse(obj))),
    feedback: m['feedback'] == null
        ? null
        : RefactoringFeedback.parse(kind, m['feedback']),
    change: m['change'] == null ? null : SourceChange.parse(m['change']),
    potentialEdits: m['potentialEdits'] == null
        ? null
        : new List.from(m['potentialEdits']));