How to deserialize affiliations

Hi all,

Is this snippet reflective of the right way to deserialize affiliation data in a  12.1 environment?

 Affiliation affiliationData = SerializationHelper.Deserialize<Affiliation>(input.Data);

If not, how should one do it?

Thanks,

Matt