Move away from Newtonsoft.Json

This commit is contained in:
2024-01-05 16:51:28 -08:00
parent 04d00e0fe9
commit 14f8ea618a
3 changed files with 5 additions and 11 deletions

View File

@@ -1,5 +1,4 @@
using Newtonsoft.Json;
using System.Text.Json.Serialization;
namespace AS1024.GeoFeed.Models
{
public class NetboxData
@@ -12,21 +11,15 @@ namespace AS1024.GeoFeed.Models
public class Result
{
public string? Prefix { get; set; }
[JsonProperty("custom_fields")]
public CustomFields? CustomFields { get; set; }
}
public class CustomFields
{
[JsonProperty("geoloc_city")]
public string? GeolocCity { get; set; }
[JsonProperty("geoloc_country")]
public string? GeolocCountry { get; set; }
[JsonProperty("geoloc_has_location")]
public bool? GeolocHasLocation { get; set; }
[JsonProperty("geoloc_region")]
public string? GeolocRegion { get; set; }
[JsonProperty("geoloc_postal_code")]
public string? GeolocPostalCode { get; set; }
}