using Newtonsoft.Json.Linq; namespace EDPlayerJournal.Entries; public class DockedEntry : Entry { public string? StationName { get; set; } public string? StarSystem { get; set; } public ulong? SystemAddress { get; set; } public string? StationFaction { get; set; } protected override void Initialise() { StationName = JSON.Value("StationName"); StarSystem = JSON.Value("StarSystem"); SystemAddress = JSON.Value("SystemAddress"); JObject? faction = JSON.Value("StationFaction"); if (faction != null) { StationFaction = faction.Value("Name") ?? ""; } } }