Lose the [Serializable]
. Just throw it away - all of them. XmlSerializer
doesn't care about it, and you don't need it. It isn't helping you, and is causing this false-positive warning.
[Serializable]
relates essentially just to BinaryFormatter
, which usually isn't a good choice.