parseRectangles method
Implementation
ViewerElement<List<Rectangle<num>>>? parseRectangles(node) {
return _parseViewerElement(node, ['rectangles', 'rects'],
constructorValue: CanvasImageViewer.rectanglesViewerElement,
mapperList: ((list) =>
list.map(parseRectangle).toList() as List<Rectangle<num>>));
}