public OriginGroupOverrideActionParameters(OriginGroupOverrideActionParametersTypeName typeName, WritableSubResource originGroup) { if (originGroup == null) { throw new ArgumentNullException(nameof(originGroup)); } TypeName = typeName; OriginGroup = originGroup; }
internal static OriginGroupOverrideActionParameters DeserializeOriginGroupOverrideActionParameters(JsonElement element) { OriginGroupOverrideActionParametersTypeName typeName = default; WritableSubResource originGroup = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("typeName")) { typeName = new OriginGroupOverrideActionParametersTypeName(property.Value.GetString()); continue; } if (property.NameEquals("originGroup")) { originGroup = JsonSerializer.Deserialize <WritableSubResource>(property.Value.ToString()); continue; } } return(new OriginGroupOverrideActionParameters(typeName, originGroup)); }