From 30ac25c8fb11dda3157901079b73c262b5720feb Mon Sep 17 00:00:00 2001 From: Luke Else Date: Wed, 9 Feb 2022 20:40:24 +0000 Subject: [PATCH] Added addition constructor for JSON Serialisation --- Models/ChartModel.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Models/ChartModel.cs b/Models/ChartModel.cs index b62e8c1..8b2ffba 100644 --- a/Models/ChartModel.cs +++ b/Models/ChartModel.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using EFB.Models.JSON; +using Newtonsoft.Json; namespace EFB.Models { @@ -16,7 +17,11 @@ namespace EFB.Models public Chart[] Approach { get; set; } public Chart[] Transition { get; set; } public Chart[] PilotBriefing { get; set; } - + + [JsonConstructor] + public ChartModel(){ + //Empty constructor for JSON Serialisation Purposes + } public ChartModel(ChartList response) { General = FillChart(response.General);