internal static Trigger DeserializeTrigger(JsonElement element) { if (element.TryGetProperty("type", out JsonElement discriminator)) { switch (discriminator.GetString()) { case "BlobEventsTrigger": return(BlobEventsTrigger.DeserializeBlobEventsTrigger(element)); case "BlobTrigger": return(BlobTrigger.DeserializeBlobTrigger(element)); case "ChainingTrigger": return(ChainingTrigger.DeserializeChainingTrigger(element)); case "MultiplePipelineTrigger": return(MultiplePipelineTrigger.DeserializeMultiplePipelineTrigger(element)); case "RerunTumblingWindowTrigger": return(RerunTumblingWindowTrigger.DeserializeRerunTumblingWindowTrigger(element)); case "ScheduleTrigger": return(ScheduleTrigger.DeserializeScheduleTrigger(element)); case "TumblingWindowTrigger": return(TumblingWindowTrigger.DeserializeTumblingWindowTrigger(element)); } } string type = default; Optional <string> description = default; Optional <TriggerRuntimeState> runtimeState = default; Optional <IList <object> > annotations = default; IDictionary <string, object> additionalProperties = default; Dictionary <string, object> additionalPropertiesDictionary = new Dictionary <string, object>(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("description")) { description = property.Value.GetString(); continue; } if (property.NameEquals("runtimeState")) { runtimeState = new TriggerRuntimeState(property.Value.GetString()); continue; } if (property.NameEquals("annotations")) { List <object> array = new List <object>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetObject()); } annotations = array; continue; } additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; return(new Trigger(type, description.Value, Optional.ToNullable(runtimeState), Optional.ToList(annotations), additionalProperties)); }
internal static MultiplePipelineTrigger DeserializeMultiplePipelineTrigger(JsonElement element) { Optional <IList <TriggerPipelineReference> > pipelines = default; string type = default; Optional <string> description = default; Optional <TriggerRuntimeState> runtimeState = default; Optional <IList <object> > annotations = default; IDictionary <string, object> additionalProperties = default; Dictionary <string, object> additionalPropertiesDictionary = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("pipelines")) { List <TriggerPipelineReference> array = new List <TriggerPipelineReference>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(TriggerPipelineReference.DeserializeTriggerPipelineReference(item)); } pipelines = array; continue; } if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("description")) { description = property.Value.GetString(); continue; } if (property.NameEquals("runtimeState")) { runtimeState = new TriggerRuntimeState(property.Value.GetString()); continue; } if (property.NameEquals("annotations")) { List <object> array = new List <object>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetObject()); } annotations = array; continue; } additionalPropertiesDictionary ??= new Dictionary <string, object>(); additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; return(new MultiplePipelineTrigger(type, description.Value, Optional.ToNullable(runtimeState), Optional.ToList(annotations), additionalProperties, Optional.ToList(pipelines))); }
internal static ChainingTrigger DeserializeChainingTrigger(JsonElement element) { TriggerPipelineReference pipeline = default; string type = default; Optional <string> description = default; Optional <TriggerRuntimeState> runtimeState = default; Optional <IList <object> > annotations = default; IList <PipelineReference> dependsOn = default; string runDimension = default; IDictionary <string, object> additionalProperties = default; Dictionary <string, object> additionalPropertiesDictionary = new Dictionary <string, object>(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("pipeline")) { pipeline = TriggerPipelineReference.DeserializeTriggerPipelineReference(property.Value); continue; } if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("description")) { description = property.Value.GetString(); continue; } if (property.NameEquals("runtimeState")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } runtimeState = new TriggerRuntimeState(property.Value.GetString()); continue; } if (property.NameEquals("annotations")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } List <object> array = new List <object>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetObject()); } annotations = array; continue; } if (property.NameEquals("typeProperties")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } foreach (var property0 in property.Value.EnumerateObject()) { if (property0.NameEquals("dependsOn")) { List <PipelineReference> array = new List <PipelineReference>(); foreach (var item in property0.Value.EnumerateArray()) { array.Add(PipelineReference.DeserializePipelineReference(item)); } dependsOn = array; continue; } if (property0.NameEquals("runDimension")) { runDimension = property0.Value.GetString(); continue; } } continue; } additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; return(new ChainingTrigger(type, description.Value, Optional.ToNullable(runtimeState), Optional.ToList(annotations), additionalProperties, pipeline, dependsOn, runDimension)); }
internal static BlobTrigger DeserializeBlobTrigger(JsonElement element) { Optional <IList <TriggerPipelineReference> > pipelines = default; string type = default; Optional <string> description = default; Optional <TriggerRuntimeState> runtimeState = default; Optional <IList <object> > annotations = default; string folderPath = default; int maxConcurrency = default; LinkedServiceReference linkedService = default; IDictionary <string, object> additionalProperties = default; Dictionary <string, object> additionalPropertiesDictionary = new Dictionary <string, object>(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("pipelines")) { List <TriggerPipelineReference> array = new List <TriggerPipelineReference>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(TriggerPipelineReference.DeserializeTriggerPipelineReference(item)); } pipelines = array; continue; } if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("description")) { description = property.Value.GetString(); continue; } if (property.NameEquals("runtimeState")) { runtimeState = new TriggerRuntimeState(property.Value.GetString()); continue; } if (property.NameEquals("annotations")) { List <object> array = new List <object>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetObject()); } annotations = array; continue; } if (property.NameEquals("typeProperties")) { foreach (var property0 in property.Value.EnumerateObject()) { if (property0.NameEquals("folderPath")) { folderPath = property0.Value.GetString(); continue; } if (property0.NameEquals("maxConcurrency")) { maxConcurrency = property0.Value.GetInt32(); continue; } if (property0.NameEquals("linkedService")) { linkedService = LinkedServiceReference.DeserializeLinkedServiceReference(property0.Value); continue; } } continue; } additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; return(new BlobTrigger(type, description.Value, Optional.ToNullable(runtimeState), Optional.ToList(annotations), additionalProperties, Optional.ToList(pipelines), folderPath, maxConcurrency, linkedService)); }
internal static Trigger DeserializeTrigger(JsonElement element) { if (element.TryGetProperty("type", out JsonElement discriminator)) { switch (discriminator.GetString()) { case "MultiplePipelineTrigger": return(MultiplePipelineTrigger.DeserializeMultiplePipelineTrigger(element)); case "RerunTumblingWindowTrigger": return(RerunTumblingWindowTrigger.DeserializeRerunTumblingWindowTrigger(element)); } } string type = default; string description = default; TriggerRuntimeState? runtimeState = default; IList <object> annotations = default; IDictionary <string, object> additionalProperties = default; Dictionary <string, object> additionalPropertiesDictionary = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("description")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } description = property.Value.GetString(); continue; } if (property.NameEquals("runtimeState")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } runtimeState = new TriggerRuntimeState(property.Value.GetString()); continue; } if (property.NameEquals("annotations")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } List <object> array = new List <object>(); foreach (var item in property.Value.EnumerateArray()) { if (item.ValueKind == JsonValueKind.Null) { array.Add(null); } else { array.Add(item.GetObject()); } } annotations = array; continue; } additionalPropertiesDictionary ??= new Dictionary <string, object>(); if (property.Value.ValueKind == JsonValueKind.Null) { additionalPropertiesDictionary.Add(property.Name, null); } else { additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } } additionalProperties = additionalPropertiesDictionary; return(new Trigger(type, description, runtimeState, annotations, additionalProperties)); }
internal static MultiplePipelineTrigger DeserializeMultiplePipelineTrigger(JsonElement element) { IList <TriggerPipelineReference> pipelines = default; string type = default; string description = default; TriggerRuntimeState? runtimeState = default; IList <object> annotations = default; IDictionary <string, object> additionalProperties = default; Dictionary <string, object> additionalPropertiesDictionary = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("pipelines")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } List <TriggerPipelineReference> array = new List <TriggerPipelineReference>(); foreach (var item in property.Value.EnumerateArray()) { if (item.ValueKind == JsonValueKind.Null) { array.Add(null); } else { array.Add(TriggerPipelineReference.DeserializeTriggerPipelineReference(item)); } } pipelines = array; continue; } if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("description")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } description = property.Value.GetString(); continue; } if (property.NameEquals("runtimeState")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } runtimeState = new TriggerRuntimeState(property.Value.GetString()); continue; } if (property.NameEquals("annotations")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } List <object> array = new List <object>(); foreach (var item in property.Value.EnumerateArray()) { if (item.ValueKind == JsonValueKind.Null) { array.Add(null); } else { array.Add(item.GetObject()); } } annotations = array; continue; } additionalPropertiesDictionary ??= new Dictionary <string, object>(); if (property.Value.ValueKind == JsonValueKind.Null) { additionalPropertiesDictionary.Add(property.Name, null); } else { additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } } additionalProperties = additionalPropertiesDictionary; return(new MultiplePipelineTrigger(type, description, runtimeState, annotations, additionalProperties, pipelines)); }
internal static RerunTumblingWindowTrigger DeserializeRerunTumblingWindowTrigger(JsonElement element) { string type = default; Optional <string> description = default; Optional <TriggerRuntimeState> runtimeState = default; Optional <IList <object> > annotations = default; Optional <object> parentTrigger = default; DateTimeOffset requestedStartTime = default; DateTimeOffset requestedEndTime = default; int maxConcurrency = default; IDictionary <string, object> additionalProperties = default; Dictionary <string, object> additionalPropertiesDictionary = new Dictionary <string, object>(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("description")) { description = property.Value.GetString(); continue; } if (property.NameEquals("runtimeState")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } runtimeState = new TriggerRuntimeState(property.Value.GetString()); continue; } if (property.NameEquals("annotations")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } List <object> array = new List <object>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetObject()); } annotations = array; continue; } if (property.NameEquals("typeProperties")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } foreach (var property0 in property.Value.EnumerateObject()) { if (property0.NameEquals("parentTrigger")) { if (property0.Value.ValueKind == JsonValueKind.Null) { property0.ThrowNonNullablePropertyIsNull(); continue; } parentTrigger = property0.Value.GetObject(); continue; } if (property0.NameEquals("requestedStartTime")) { requestedStartTime = property0.Value.GetDateTimeOffset("O"); continue; } if (property0.NameEquals("requestedEndTime")) { requestedEndTime = property0.Value.GetDateTimeOffset("O"); continue; } if (property0.NameEquals("maxConcurrency")) { maxConcurrency = property0.Value.GetInt32(); continue; } } continue; } additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; return(new RerunTumblingWindowTrigger(type, description.Value, Optional.ToNullable(runtimeState), Optional.ToList(annotations), additionalProperties, parentTrigger.Value, requestedStartTime, requestedEndTime, maxConcurrency)); }
internal static BlobEventsTrigger DeserializeBlobEventsTrigger(JsonElement element) { Optional <IList <TriggerPipelineReference> > pipelines = default; string type = default; Optional <string> description = default; Optional <TriggerRuntimeState> runtimeState = default; Optional <IList <object> > annotations = default; Optional <string> blobPathBeginsWith = default; Optional <string> blobPathEndsWith = default; Optional <bool> ignoreEmptyBlobs = default; IList <BlobEventType> events = default; string scope = default; IDictionary <string, object> additionalProperties = default; Dictionary <string, object> additionalPropertiesDictionary = new Dictionary <string, object>(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("pipelines")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } List <TriggerPipelineReference> array = new List <TriggerPipelineReference>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(TriggerPipelineReference.DeserializeTriggerPipelineReference(item)); } pipelines = array; continue; } if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("description")) { description = property.Value.GetString(); continue; } if (property.NameEquals("runtimeState")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } runtimeState = new TriggerRuntimeState(property.Value.GetString()); continue; } if (property.NameEquals("annotations")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } List <object> array = new List <object>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetObject()); } annotations = array; continue; } if (property.NameEquals("typeProperties")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } foreach (var property0 in property.Value.EnumerateObject()) { if (property0.NameEquals("blobPathBeginsWith")) { blobPathBeginsWith = property0.Value.GetString(); continue; } if (property0.NameEquals("blobPathEndsWith")) { blobPathEndsWith = property0.Value.GetString(); continue; } if (property0.NameEquals("ignoreEmptyBlobs")) { if (property0.Value.ValueKind == JsonValueKind.Null) { property0.ThrowNonNullablePropertyIsNull(); continue; } ignoreEmptyBlobs = property0.Value.GetBoolean(); continue; } if (property0.NameEquals("events")) { List <BlobEventType> array = new List <BlobEventType>(); foreach (var item in property0.Value.EnumerateArray()) { array.Add(new BlobEventType(item.GetString())); } events = array; continue; } if (property0.NameEquals("scope")) { scope = property0.Value.GetString(); continue; } } continue; } additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; return(new BlobEventsTrigger(type, description.Value, Optional.ToNullable(runtimeState), Optional.ToList(annotations), additionalProperties, Optional.ToList(pipelines), blobPathBeginsWith.Value, blobPathEndsWith.Value, Optional.ToNullable(ignoreEmptyBlobs), events, scope)); }
internal static MultiplePipelineTrigger DeserializeMultiplePipelineTrigger(JsonElement element) { if (element.TryGetProperty("type", out JsonElement discriminator)) { switch (discriminator.GetString()) { case "BlobEventsTrigger": return(BlobEventsTrigger.DeserializeBlobEventsTrigger(element)); case "BlobTrigger": return(BlobTrigger.DeserializeBlobTrigger(element)); case "ScheduleTrigger": return(ScheduleTrigger.DeserializeScheduleTrigger(element)); } } Optional <IList <TriggerPipelineReference> > pipelines = default; string type = default; Optional <string> description = default; Optional <TriggerRuntimeState> runtimeState = default; Optional <IList <object> > annotations = default; IDictionary <string, object> additionalProperties = default; Dictionary <string, object> additionalPropertiesDictionary = new Dictionary <string, object>(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("pipelines")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } List <TriggerPipelineReference> array = new List <TriggerPipelineReference>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(TriggerPipelineReference.DeserializeTriggerPipelineReference(item)); } pipelines = array; continue; } if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("description")) { description = property.Value.GetString(); continue; } if (property.NameEquals("runtimeState")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } runtimeState = new TriggerRuntimeState(property.Value.GetString()); continue; } if (property.NameEquals("annotations")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } List <object> array = new List <object>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetObject()); } annotations = array; continue; } additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; return(new MultiplePipelineTrigger(type, description.Value, Optional.ToNullable(runtimeState), Optional.ToList(annotations), additionalProperties, Optional.ToList(pipelines))); }
internal static TumblingWindowTrigger DeserializeTumblingWindowTrigger(JsonElement element) { TriggerPipelineReference pipeline = default; string type = default; Optional<string> description = default; Optional<TriggerRuntimeState> runtimeState = default; Optional<IList<object>> annotations = default; TumblingWindowFrequency frequency = default; int interval = default; DateTimeOffset startTime = default; Optional<DateTimeOffset> endTime = default; Optional<object> delay = default; int maxConcurrency = default; Optional<RetryPolicy> retryPolicy = default; Optional<IList<DependencyReference>> dependsOn = default; IDictionary<string, object> additionalProperties = default; Dictionary<string, object> additionalPropertiesDictionary = new Dictionary<string, object>(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("pipeline")) { pipeline = TriggerPipelineReference.DeserializeTriggerPipelineReference(property.Value); continue; } if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("description")) { description = property.Value.GetString(); continue; } if (property.NameEquals("runtimeState")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } runtimeState = new TriggerRuntimeState(property.Value.GetString()); continue; } if (property.NameEquals("annotations")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } List<object> array = new List<object>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetObject()); } annotations = array; continue; } if (property.NameEquals("typeProperties")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } foreach (var property0 in property.Value.EnumerateObject()) { if (property0.NameEquals("frequency")) { frequency = new TumblingWindowFrequency(property0.Value.GetString()); continue; } if (property0.NameEquals("interval")) { interval = property0.Value.GetInt32(); continue; } if (property0.NameEquals("startTime")) { startTime = property0.Value.GetDateTimeOffset("O"); continue; } if (property0.NameEquals("endTime")) { if (property0.Value.ValueKind == JsonValueKind.Null) { property0.ThrowNonNullablePropertyIsNull(); continue; } endTime = property0.Value.GetDateTimeOffset("O"); continue; } if (property0.NameEquals("delay")) { if (property0.Value.ValueKind == JsonValueKind.Null) { property0.ThrowNonNullablePropertyIsNull(); continue; } delay = property0.Value.GetObject(); continue; } if (property0.NameEquals("maxConcurrency")) { maxConcurrency = property0.Value.GetInt32(); continue; } if (property0.NameEquals("retryPolicy")) { if (property0.Value.ValueKind == JsonValueKind.Null) { property0.ThrowNonNullablePropertyIsNull(); continue; } retryPolicy = RetryPolicy.DeserializeRetryPolicy(property0.Value); continue; } if (property0.NameEquals("dependsOn")) { if (property0.Value.ValueKind == JsonValueKind.Null) { property0.ThrowNonNullablePropertyIsNull(); continue; } List<DependencyReference> array = new List<DependencyReference>(); foreach (var item in property0.Value.EnumerateArray()) { array.Add(DependencyReference.DeserializeDependencyReference(item)); } dependsOn = array; continue; } } continue; } additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; return new TumblingWindowTrigger(type, description.Value, Optional.ToNullable(runtimeState), Optional.ToList(annotations), additionalProperties, pipeline, frequency, interval, startTime, Optional.ToNullable(endTime), delay.Value, maxConcurrency, retryPolicy.Value, Optional.ToList(dependsOn)); }
internal static RerunTumblingWindowTrigger DeserializeRerunTumblingWindowTrigger(JsonElement element) { string type = default; string description = default; TriggerRuntimeState?runtimeState = default; IList <object> annotations = default; object parentTrigger = default; DateTimeOffset requestedStartTime = default; DateTimeOffset requestedEndTime = default; int maxConcurrency = default; IDictionary <string, object> additionalProperties = default; Dictionary <string, object> additionalPropertiesDictionary = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("description")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } description = property.Value.GetString(); continue; } if (property.NameEquals("runtimeState")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } runtimeState = new TriggerRuntimeState(property.Value.GetString()); continue; } if (property.NameEquals("annotations")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } List <object> array = new List <object>(); foreach (var item in property.Value.EnumerateArray()) { if (item.ValueKind == JsonValueKind.Null) { array.Add(null); } else { array.Add(item.GetObject()); } } annotations = array; continue; } if (property.NameEquals("typeProperties")) { foreach (var property0 in property.Value.EnumerateObject()) { if (property0.NameEquals("parentTrigger")) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } parentTrigger = property0.Value.GetObject(); continue; } if (property0.NameEquals("requestedStartTime")) { requestedStartTime = property0.Value.GetDateTimeOffset("O"); continue; } if (property0.NameEquals("requestedEndTime")) { requestedEndTime = property0.Value.GetDateTimeOffset("O"); continue; } if (property0.NameEquals("maxConcurrency")) { maxConcurrency = property0.Value.GetInt32(); continue; } } continue; } additionalPropertiesDictionary ??= new Dictionary <string, object>(); if (property.Value.ValueKind == JsonValueKind.Null) { additionalPropertiesDictionary.Add(property.Name, null); } else { additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } } additionalProperties = additionalPropertiesDictionary; return(new RerunTumblingWindowTrigger(type, description, runtimeState, annotations, additionalProperties, parentTrigger, requestedStartTime, requestedEndTime, maxConcurrency)); }