// #pragma warning disable CS0618 using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System; namespace Marechai.App.Models { [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 public partial class CompanyDto : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The address property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Address { get; set; } #nullable restore #else public string Address { get; set; } #endif /// The city property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? City { get; set; } #nullable restore #else public string City { get; set; } #endif /// The country property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Country { get; set; } #nullable restore #else public string Country { get; set; } #endif /// The country_id property public int? CountryId { get; set; } /// The facebook property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Facebook { get; set; } #nullable restore #else public string Facebook { get; set; } #endif /// The founded property public DateTimeOffset? Founded { get; set; } /// The founded_day_is_unknown property public bool? FoundedDayIsUnknown { get; set; } /// The founded_month_is_unknown property public bool? FoundedMonthIsUnknown { get; set; } /// The id property public int? Id { get; set; } /// The last_logo property public Guid? LastLogo { get; set; } /// The legal_name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? LegalName { get; set; } #nullable restore #else public string LegalName { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { get; set; } #nullable restore #else public string Name { get; set; } #endif /// The postal_code property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? PostalCode { get; set; } #nullable restore #else public string PostalCode { get; set; } #endif /// The province property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Province { get; set; } #nullable restore #else public string Province { get; set; } #endif /// The sold property public DateTimeOffset? Sold { get; set; } /// The sold_day_is_unknown property public bool? SoldDayIsUnknown { get; set; } /// The sold_month_is_unknown property public bool? SoldMonthIsUnknown { get; set; } /// The sold_to property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SoldTo { get; set; } #nullable restore #else public string SoldTo { get; set; } #endif /// The sold_to_id property public int? SoldToId { get; set; } /// The status property public int? Status { get; set; } /// The twitter property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Twitter { get; set; } #nullable restore #else public string Twitter { get; set; } #endif /// The website property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Website { get; set; } #nullable restore #else public string Website { get; set; } #endif /// /// Instantiates a new and sets the default values. /// public CompanyDto() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// A /// The parse node to use to read the discriminator value and create the object public static global::Marechai.App.Models.CompanyDto CreateFromDiscriminatorValue(IParseNode parseNode) { if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); return new global::Marechai.App.Models.CompanyDto(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { { "address", n => { Address = n.GetStringValue(); } }, { "city", n => { City = n.GetStringValue(); } }, { "country", n => { Country = n.GetStringValue(); } }, { "country_id", n => { CountryId = n.GetIntValue(); } }, { "facebook", n => { Facebook = n.GetStringValue(); } }, { "founded", n => { Founded = n.GetDateTimeOffsetValue(); } }, { "founded_day_is_unknown", n => { FoundedDayIsUnknown = n.GetBoolValue(); } }, { "founded_month_is_unknown", n => { FoundedMonthIsUnknown = n.GetBoolValue(); } }, { "id", n => { Id = n.GetIntValue(); } }, { "last_logo", n => { LastLogo = n.GetGuidValue(); } }, { "legal_name", n => { LegalName = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, { "postal_code", n => { PostalCode = n.GetStringValue(); } }, { "province", n => { Province = n.GetStringValue(); } }, { "sold", n => { Sold = n.GetDateTimeOffsetValue(); } }, { "sold_day_is_unknown", n => { SoldDayIsUnknown = n.GetBoolValue(); } }, { "sold_month_is_unknown", n => { SoldMonthIsUnknown = n.GetBoolValue(); } }, { "sold_to", n => { SoldTo = n.GetStringValue(); } }, { "sold_to_id", n => { SoldToId = n.GetIntValue(); } }, { "status", n => { Status = n.GetIntValue(); } }, { "twitter", n => { Twitter = n.GetStringValue(); } }, { "website", n => { Website = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("address", Address); writer.WriteStringValue("city", City); writer.WriteStringValue("country", Country); writer.WriteIntValue("country_id", CountryId); writer.WriteStringValue("facebook", Facebook); writer.WriteDateTimeOffsetValue("founded", Founded); writer.WriteBoolValue("founded_day_is_unknown", FoundedDayIsUnknown); writer.WriteBoolValue("founded_month_is_unknown", FoundedMonthIsUnknown); writer.WriteIntValue("id", Id); writer.WriteGuidValue("last_logo", LastLogo); writer.WriteStringValue("legal_name", LegalName); writer.WriteStringValue("name", Name); writer.WriteStringValue("postal_code", PostalCode); writer.WriteStringValue("province", Province); writer.WriteDateTimeOffsetValue("sold", Sold); writer.WriteBoolValue("sold_day_is_unknown", SoldDayIsUnknown); writer.WriteBoolValue("sold_month_is_unknown", SoldMonthIsUnknown); writer.WriteStringValue("sold_to", SoldTo); writer.WriteIntValue("sold_to_id", SoldToId); writer.WriteIntValue("status", Status); writer.WriteStringValue("twitter", Twitter); writer.WriteStringValue("website", Website); writer.WriteAdditionalData(AdditionalData); } } } #pragma warning restore CS0618