internal static Models_internal DeserializeModels_internal(JsonElement element) { Models_internal result = new Models_internal(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("summary")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } result.Summary = ModelsSummary_internal.DeserializeModelsSummary_internal(property.Value); continue; } if (property.NameEquals("modelList")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } result.ModelList = new List <ModelInfo_internal>(); foreach (var item in property.Value.EnumerateArray()) { result.ModelList.Add(ModelInfo_internal.DeserializeModelInfo_internal(item)); } continue; } if (property.NameEquals("nextLink")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } result.NextLink = property.Value.GetString(); continue; } } return(result); }
internal CustomModels(Models_internal models) { SubscriptionProperties = new SubscriptionProperties(models.Summary); ModelInfos = ConvertModelList(models.ModelList); NextLink = models.NextLink; }