Due to the fact that the spell describes the berries as "infused with magic", I take their consumption as the equivalent of using a magic item. Magic item usage has specific rules governing this case:
Activating some magic items requires a user to do something special, such as holding the item and uttering a command word. The description of each item category or individual item details how an item is activated. Certain items use the following rules for their activation.
If an item requires an action to activate, that action isn't a function of the Use an Object action, so a feature such as the rogue's Fast Hands can't be used to activate the item.
(From the DMG & SRD's Magic Items -> Activating an Item section)
As such, I would rule that no, goodberries could not be consumed as a bonus action via Fast Hands.
Were it not for this rule and the berries being described as magical, then I would say yes, the action to consume them would be subsumed into the "Use an Object" action type as per that action's description:
When an object requires your action for its use, you take the Use an Object action.