In the drawing you have provided that installation would be non compliant to IPC plumbing code. A washer machine is not an approved wet vent fixture to be used to vent a toilet. You cannot replace the lavatory sink with a washer machine and be code compliant.
912.1 Horizontal wet vent permitted. Any combination of fixtures within two
bathroom groups located on the same floor level is permitted to be vented by a
horizontal wet vent. The wet vent shall be considered the vent for the fixtures and
shall extend from the connection of the dry vent along the direction of the flow in
the drain pipe to the most downstream fixture drain connection to the horizontal
branch drain. Each wet-vented fixture drain shall connect independently to the
horizontal wet vent. Only the fixtures within the bathroom groups shall connect to
the wet-vented horizontal branch drain. Any additional fixtures shall discharge
downstream of the horizontal wet vent.
BATHROOM GROUP. A group of fixtures consisting of a water closet,
lavatory, bathtub or shower, including or excluding a bidet, an emergency floor
drain or both. Such fixtures are located together on the same floor level
To install the washer you would need to reinstall the lavatory sink and then tie the washer in downstream of your toilet on its own branch.