public override string Serialize()
        {
            CookingModifierData cookingModifierData = new CookingModifierData
            {
                additionalMinutes          = this.additionalMinutes,
                potableWaterRequiredLiters = this.potableWaterRequiredLiters
            };

            return(Utils.SerializeObject(cookingModifierData));
        }
        public override string Serialize()
        {
            CookingModifierData cookingModifierData = new CookingModifierData
            {
                additionalMinutes          = this.additionalMinutes,
                originalMinutes            = this.originalMinutes,
                potableWaterRequiredLiters = this.potableWaterRequiredLiters
            };

            return(MelonLoader.TinyJSON.JSON.Dump(cookingModifierData));
        }
        public override void Deserialize(string data)
        {
            if (data == null)
            {
                return;
            }

            CookingModifierData cookingModifierData = Utils.DeserializeObject <CookingModifierData>(data);

            this.additionalMinutes          = cookingModifierData.additionalMinutes;
            this.potableWaterRequiredLiters = cookingModifierData.potableWaterRequiredLiters;

            this.Apply();
        }
        public override void Deserialize(string data)
        {
            if (data == null)
            {
                return;
            }

            CookingModifierData cookingModifierData = MelonLoader.TinyJSON.JSON.Load(data).Make <CookingModifierData>();

            this.additionalMinutes          = cookingModifierData.additionalMinutes;
            this.originalMinutes            = cookingModifierData.originalMinutes;
            this.potableWaterRequiredLiters = cookingModifierData.potableWaterRequiredLiters;

            this.Apply();
        }