mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
Fixed naming policy.
This commit is contained in:
parent
7c0317d232
commit
e869528522
@ -626,6 +626,7 @@ namespace CarCareTracker.Helper
|
||||
public static JsonSerializerOptions GetInvariantOption()
|
||||
{
|
||||
var serializerOption = new JsonSerializerOptions();
|
||||
serializerOption.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;
|
||||
serializerOption.Converters.Add(new InvariantConverter());
|
||||
return serializerOption;
|
||||
}
|
||||
|
||||
@ -99,6 +99,7 @@ namespace CarCareTracker.Models
|
||||
public string FuelConsumed { get; set; }
|
||||
[JsonConverter(typeof(FromDecimalOptional))]
|
||||
public string Cost { get; set; }
|
||||
[JsonConverter(typeof(FromDecimalOptional))]
|
||||
public string FuelEconomy { get; set; }
|
||||
[JsonConverter(typeof(FromBoolOptional))]
|
||||
public string IsFillToFull { get; set; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user