Spin only magnetic moment can be calculated by the following formula
Magnetic moment =n(n+2)
Where, n is number of unpaired electrons.
In the given compound, Pt2+(d8)

Pt2+→dsp2 hybridization and have no unpaired electrons..
∴ Magnetic moment
=n(n+2)=0(0+2)=0