Apple used "A1419" as an identifier for six different 27" iMacs released between Late 2012 and 2017. The two that came out in 2015 have Thunderbolt 2 ports, with Mini DisplayPort connectors, that run at up to 20 Gbps.
The 21.5" and 27" iMacs that Apple released in 2019 have Thunderbolt 3 ports, with USB-C connectors.
To make a Thunderbolt connection between your Macs, you can use
- Apple Thunderbolt 3 (USB‑C) to Thunderbolt 2 Adapter
- A Thunderbolt 1/2 cable. Such cables have Mini DisplayPort plugs on both ends, but are, or were, built to higher standards than Mini DisplayPort cables. Because Thunderbolt hasn't lived on the Mini DisplayPort connector for many years, such cables may be hard to find and somewhat expensive.
Note that the Thunderbolt 3-to-2 adapter does not transmit power from one side to another, and only works if the devices on each side have their own power supply (which will be the case for your Macs).
Also, Thunderbolt 4 and 5 accessories are not backwards-compatible with Thunderbolt 1 and 2 … the backwards compatibility is limited to other USB-C-based forms of Thunderbolt (see Other World Computing blog article).