The class is called legacy because it is kept mainly for compatibility: for new code, use the class RationalMap of the package MultiprojectiveVarieties. Up to version 5.2.1 of Cremona, this class was called RationalMap; that name is now used by the package MultiprojectiveVarieties for its own class of rational maps.
An object of the class LegacyRationalMap can be basically replaced by a homogeneous ring map of quotients of polynomial rings by homogeneous ideals. One main advantage to using this class is that things computed using non-probabilistic algorithms are stored internally (or partially stored).
The constructor for the class is legacyRationalMap, which works quite similar to toMap. See in particular the methods: legacyRationalMap(RingMap), legacyRationalMap(Ideal,ZZ,ZZ), legacyRationalMap(Tally), and legacyRationalMap(PolynomialRing,List).
In the package MultiprojectiveVarieties, this class has been extended to provide support to rational maps between multi-projective varieties, see RationalMap.
The object LegacyRationalMap is a type, with ancestor classes MutableHashTable < HashTable < Thing.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/Cremona/documentation.m2:354:0.