internal static Model_internal DeserializeModel_internal(JsonElement element) { Model_internal result = new Model_internal(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("modelInfo")) { result.ModelInfo = ModelInfo_internal.DeserializeModelInfo_internal(property.Value); continue; } if (property.NameEquals("keys")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } result.Keys = KeysResult_internal.DeserializeKeysResult_internal(property.Value); continue; } if (property.NameEquals("trainResult")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } result.TrainResult = TrainResult_internal.DeserializeTrainResult_internal(property.Value); continue; } } return(result); }
internal static Model_internal DeserializeModel_internal(JsonElement element) { ModelInfo_internal modelInfo = default; KeysResult_internal keys = default; TrainResult_internal trainResult = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("modelInfo")) { modelInfo = ModelInfo_internal.DeserializeModelInfo_internal(property.Value); continue; } if (property.NameEquals("keys")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } keys = KeysResult_internal.DeserializeKeysResult_internal(property.Value); continue; } if (property.NameEquals("trainResult")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } trainResult = TrainResult_internal.DeserializeTrainResult_internal(property.Value); continue; } } return(new Model_internal(modelInfo, keys, trainResult)); }