fromMatch method

  1. @override
TConcatenation fromMatch(
  1. Match match
)
override

Implementation

@override
TConcatenation fromMatch(Match match) {
  var entriesStr = match.group(1)!;
  var entries = ENTRY_PATTERN.allMatches(entriesStr).map((m) {
    return m.group(1) ?? m.group(2);
  }).toList();
  var group = entries.map((e) => JSONTransformer.parse(e)!).toList();
  return TConcatenation(group);
}