Browse Source

undo

pull/629/head
JT 7 months ago
parent
commit
9b13cb5a76
  1. 15
      StabilityMatrix.Core/Models/ConnectedModelInfo.cs

15
StabilityMatrix.Core/Models/ConnectedModelInfo.cs

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

Loading…
Cancel
Save