|
|
@ -57,17 +57,10 @@ public class ConnectedModelInfo |
|
|
|
|
|
|
|
|
|
|
|
public static ConnectedModelInfo? FromJson(string json) |
|
|
|
public static ConnectedModelInfo? FromJson(string json) |
|
|
|
{ |
|
|
|
{ |
|
|
|
try |
|
|
|
return JsonSerializer.Deserialize<ConnectedModelInfo>( |
|
|
|
{ |
|
|
|
json, |
|
|
|
return JsonSerializer.Deserialize<ConnectedModelInfo>( |
|
|
|
new JsonSerializerOptions { DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull } |
|
|
|
json, |
|
|
|
); |
|
|
|
new JsonSerializerOptions { DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull } |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
catch (JsonException) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return default; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|