Add empty constructors to allow JSON serialization
This commit is contained in:
parent
145f7b0ee1
commit
8ef53a64ad
2 changed files with 2 additions and 0 deletions
|
@ -13,5 +13,6 @@ public record StationListing(
|
||||||
string Name,
|
string Name,
|
||||||
List<string> StoppedAtBy
|
List<string> StoppedAtBy
|
||||||
) {
|
) {
|
||||||
|
public StationListing() : this(null, "", new()) { }
|
||||||
public StationListing(string name, List<string> stoppedAtBy) : this(null, name, stoppedAtBy) { }
|
public StationListing(string name, List<string> stoppedAtBy) : this(null, name, stoppedAtBy) { }
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,5 +13,6 @@ public record TrainListing(
|
||||||
string Number,
|
string Number,
|
||||||
string Company
|
string Company
|
||||||
) {
|
) {
|
||||||
|
public TrainListing() : this(null, "", "", "") { }
|
||||||
public TrainListing(string rank, string number, string company) : this(null, rank, number, company) { }
|
public TrainListing(string rank, string number, string company) : this(null, rank, number, company) { }
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue