hrntsm/Tunny

View on GitHub
Tunny.Core/Util/PrunerReport.cs

Summary

Maintainability
A
0 mins
Test Coverage
using System.IO;

using Newtonsoft.Json;

namespace Tunny.Core.Util
{
    public class PrunerReport
    {
        public double IntermediateValue { get; set; }
        public string Attribute { get; set; }
        public double? TrialTellValue { get; set; }

        public static PrunerReport Deserialize(string path)
        {
            string value = File.ReadAllText(path);
            return JsonConvert.DeserializeObject<PrunerReport>(value);
        }
    }
}