// this file is @generated using System.Text; using Newtonsoft.Json; namespace Svix.Models { public class EventTypePatch { [JsonProperty("description")] public string? Description { get; set; } = null; public bool ShouldSerializeDescription() => Description != null; [JsonProperty("descriptionTranslations")] public MaybeUnset?> DescriptionTranslations { get; set; } = MaybeUnset?>.Unset(); public bool ShouldSerializeDescriptionTranslations() => !DescriptionTranslations.IsUnset; [JsonProperty("archived")] public bool? Archived { get; set; } = null; public bool ShouldSerializeArchived() => Archived != null; [JsonProperty("deprecated")] public bool? Deprecated { get; set; } = null; public bool ShouldSerializeDeprecated() => Deprecated != null; [JsonProperty("schemas")] public MaybeUnset Schemas { get; set; } = MaybeUnset.Unset(); public bool ShouldSerializeSchemas() => !Schemas.IsUnset; [JsonProperty("featureFlags")] public MaybeUnset?> FeatureFlags { get; set; } = MaybeUnset?>.Unset(); public bool ShouldSerializeFeatureFlags() => !FeatureFlags.IsUnset; [JsonProperty("groupName")] public MaybeUnset GroupName { get; set; } = MaybeUnset.Unset(); public bool ShouldSerializeGroupName() => !GroupName.IsUnset; public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class EventTypePatch {\n"); sb.Append(" Description: ").Append(Description).Append('\n'); sb.Append(" DescriptionTranslations: ").Append(DescriptionTranslations).Append('\n'); sb.Append(" Archived: ").Append(Archived).Append('\n'); sb.Append(" Deprecated: ").Append(Deprecated).Append('\n'); sb.Append(" Schemas: ").Append(Schemas).Append('\n'); sb.Append(" FeatureFlags: ").Append(FeatureFlags).Append('\n'); sb.Append(" GroupName: ").Append(GroupName).Append('\n'); sb.Append("}\n"); return sb.ToString(); } } }