Serialize() public method

Serialize the object
public Serialize ( ) : OSDMap
return OSDMap
        public void UpdateAgentInformationMessage()
        {
            UpdateAgentInformationMessage s = new UpdateAgentInformationMessage();
            s.MaxAccess = "PG";
            OSDMap map = s.Serialize();

            UpdateAgentInformationMessage t = new UpdateAgentInformationMessage();
            t.Deserialize(map);

            Assert.AreEqual(s.MaxAccess, t.MaxAccess);
        }