public static PassiveEquipmentUpgradeModelView Deserialize(System.IO.StreamReader input)
        {
            PassiveEquipmentUpgradeModelView _obj = new PassiveEquipmentUpgradeModelView();
            // PassiveAlterations
            List <StateAlterationModelView> _obj_PassiveAlterations = new List <StateAlterationModelView>();
            int _obj_PassiveAlterations_count = Int32.Parse(input.ReadLine());

            for (int _obj_PassiveAlterations_i = 0; _obj_PassiveAlterations_i < _obj_PassiveAlterations_count; _obj_PassiveAlterations_i++)
            {
                StateAlterationModelView _obj_PassiveAlterations_e = StateAlterationModelView.Deserialize(input);
                _obj_PassiveAlterations.Add((StateAlterationModelView)_obj_PassiveAlterations_e);
            }
            _obj.PassiveAlterations = (List <StateAlterationModelView>)_obj_PassiveAlterations;
            // Cost
            float _obj_Cost = Single.Parse(input.ReadLine());

            _obj.Cost = (float)_obj_Cost;
            return(_obj);
        }
        public static PassiveEquipmentModelView Deserialize(System.IO.StreamReader input)
        {
            PassiveEquipmentModelView _obj = new PassiveEquipmentModelView();
            // ID
            int _obj_ID = Int32.Parse(input.ReadLine());

            _obj.ID = (int)_obj_ID;
            // Price
            float _obj_Price = Single.Parse(input.ReadLine());

            _obj.Price = (float)_obj_Price;
            // Upgrades
            List <PassiveEquipmentUpgradeModelView> _obj_Upgrades = new List <PassiveEquipmentUpgradeModelView>();
            int _obj_Upgrades_count = Int32.Parse(input.ReadLine());

            for (int _obj_Upgrades_i = 0; _obj_Upgrades_i < _obj_Upgrades_count; _obj_Upgrades_i++)
            {
                PassiveEquipmentUpgradeModelView _obj_Upgrades_e = PassiveEquipmentUpgradeModelView.Deserialize(input);
                _obj_Upgrades.Add((PassiveEquipmentUpgradeModelView)_obj_Upgrades_e);
            }
            _obj.Upgrades = (List <PassiveEquipmentUpgradeModelView>)_obj_Upgrades;
            return(_obj);
        }