rowsToObjects and objectsToRowsSheet data is easiest as a 2D array. Business logic is easier as objects keyed by header. These two helpers convert back and forth without…