Added addition constructor for JSON Serialisation
This commit is contained in:
parent
c3a414285a
commit
30ac25c8fb
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using EFB.Models.JSON;
|
using EFB.Models.JSON;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace EFB.Models
|
namespace EFB.Models
|
||||||
{
|
{
|
||||||
@ -16,7 +17,11 @@ namespace EFB.Models
|
|||||||
public Chart[] Approach { get; set; }
|
public Chart[] Approach { get; set; }
|
||||||
public Chart[] Transition { get; set; }
|
public Chart[] Transition { get; set; }
|
||||||
public Chart[] PilotBriefing { get; set; }
|
public Chart[] PilotBriefing { get; set; }
|
||||||
|
|
||||||
|
[JsonConstructor]
|
||||||
|
public ChartModel(){
|
||||||
|
//Empty constructor for JSON Serialisation Purposes
|
||||||
|
}
|
||||||
public ChartModel(ChartList response)
|
public ChartModel(ChartList response)
|
||||||
{
|
{
|
||||||
General = FillChart(response.General);
|
General = FillChart(response.General);
|
||||||
|
Loading…
Reference in New Issue
Block a user