public void Deserialize(OSDMap map) { Success = map["success"].AsBoolean(); Message = map["message"].AsString(); OSDMap objMap = map["object"] as OSDMap; if (objMap != null) { if (objMap.ContainsKey("asset_id")) Object = new InventoryBlockItem(); else Object = new InventoryBlockFolder(); Object.Deserialize(objMap); } else { Object = null; } }
public void Deserialize(OSDMap map) { Identity = map["identity"].AsUri(); OSDMap objMap = (OSDMap)map["object"]; if (objMap.ContainsKey("asset_id")) Object = new InventoryBlockItem(); else Object = new InventoryBlockFolder(); Object.Deserialize(objMap); }