public JObject GetState() { var obj = new JObject(); obj.AddValue(nameof(IsRunning), IsRunning); obj.AddCollection(nameof(Turns), Turns); obj.AddCollection(nameof(Segments), Segments); return(obj); }