// <auto-generated/>
#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 MachinePhotoDto : IAdditionalDataHolder, IParsable
    #pragma warning restore CS1591
    {
        /// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
        public IDictionary<string, object> AdditionalData { get; set; }
        /// <summary>The aperture property</summary>
        public double? Aperture { get; set; }
        /// <summary>The author property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? Author { get; set; }
#nullable restore
#else
        public string Author { get; set; }
#endif
        /// <summary>The camera_manufacturer property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? CameraManufacturer { get; set; }
#nullable restore
#else
        public string CameraManufacturer { get; set; }
#endif
        /// <summary>The camera_model property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? CameraModel { get; set; }
#nullable restore
#else
        public string CameraModel { get; set; }
#endif
        /// <summary>The colorspace property</summary>
        public int? Colorspace { get; set; }
        /// <summary>The comments property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? Comments { get; set; }
#nullable restore
#else
        public string Comments { get; set; }
#endif
        /// <summary>The contrast property</summary>
        public int? Contrast { get; set; }
        /// <summary>The creation_date property</summary>
        public DateTimeOffset? CreationDate { get; set; }
        /// <summary>The digital_zoom property</summary>
        public double? DigitalZoom { get; set; }
        /// <summary>The exif_version property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? ExifVersion { get; set; }
#nullable restore
#else
        public string ExifVersion { get; set; }
#endif
        /// <summary>The exposure property</summary>
        public double? Exposure { get; set; }
        /// <summary>The exposure_method property</summary>
        public int? ExposureMethod { get; set; }
        /// <summary>The exposure_program property</summary>
        public int? ExposureProgram { get; set; }
        /// <summary>The flash property</summary>
        public int? Flash { get; set; }
        /// <summary>The focal property</summary>
        public double? Focal { get; set; }
        /// <summary>The focal_equivalent property</summary>
        public double? FocalEquivalent { get; set; }
        /// <summary>The focal_length property</summary>
        public double? FocalLength { get; set; }
        /// <summary>The horizontal_resolution property</summary>
        public double? HorizontalResolution { get; set; }
        /// <summary>The id property</summary>
        public Guid? Id { get; set; }
        /// <summary>The iso property</summary>
        public int? Iso { get; set; }
        /// <summary>The lens property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? Lens { get; set; }
#nullable restore
#else
        public string Lens { get; set; }
#endif
        /// <summary>The license_id property</summary>
        public int? LicenseId { get; set; }
        /// <summary>The license_name property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? LicenseName { get; set; }
#nullable restore
#else
        public string LicenseName { get; set; }
#endif
        /// <summary>The light_source property</summary>
        public int? LightSource { get; set; }
        /// <summary>The machine_company_name property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? MachineCompanyName { get; set; }
#nullable restore
#else
        public string MachineCompanyName { get; set; }
#endif
        /// <summary>The machine_id property</summary>
        public int? MachineId { get; set; }
        /// <summary>The machine_name property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? MachineName { get; set; }
#nullable restore
#else
        public string MachineName { get; set; }
#endif
        /// <summary>The metering_mode property</summary>
        public int? MeteringMode { get; set; }
        /// <summary>The orientation property</summary>
        public int? Orientation { get; set; }
        /// <summary>The original_extension property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? OriginalExtension { get; set; }
#nullable restore
#else
        public string OriginalExtension { get; set; }
#endif
        /// <summary>The resolution_unit property</summary>
        public int? ResolutionUnit { get; set; }
        /// <summary>The saturation property</summary>
        public int? Saturation { get; set; }
        /// <summary>The scene_capture_type property</summary>
        public int? SceneCaptureType { get; set; }
        /// <summary>The sensing_method property</summary>
        public int? SensingMethod { get; set; }
        /// <summary>The sharpness property</summary>
        public int? Sharpness { get; set; }
        /// <summary>The software property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? Software { get; set; }
#nullable restore
#else
        public string Software { get; set; }
#endif
        /// <summary>The source property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? Source { get; set; }
#nullable restore
#else
        public string Source { get; set; }
#endif
        /// <summary>The subject_distance_range property</summary>
        public byte? SubjectDistanceRange { get; set; }
        /// <summary>The upload_date property</summary>
        public DateTimeOffset? UploadDate { get; set; }
        /// <summary>The user_id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
        public string? UserId { get; set; }
#nullable restore
#else
        public string UserId { get; set; }
#endif
        /// <summary>The vertical_resolution property</summary>
        public double? VerticalResolution { get; set; }
        /// <summary>The white_balance property</summary>
        public int? WhiteBalance { get; set; }
        /// <summary>
        /// Instantiates a new <see cref="global::Marechai.App.Models.MachinePhotoDto"/> and sets the default values.
        /// </summary>
        public MachinePhotoDto()
        {
            AdditionalData = new Dictionary<string, object>();
        }
        /// <summary>
        /// Creates a new instance of the appropriate class based on discriminator value
        /// </summary>
        /// <returns>A <see cref="global::Marechai.App.Models.MachinePhotoDto"/></returns>
        /// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
        public static global::Marechai.App.Models.MachinePhotoDto CreateFromDiscriminatorValue(IParseNode parseNode)
        {
            if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
            return new global::Marechai.App.Models.MachinePhotoDto();
        }
        /// <summary>
        /// The deserialization information for the current model
        /// </summary>
        /// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
        public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
        {
            return new Dictionary<string, Action<IParseNode>>
            {
                { "aperture", n => { Aperture = n.GetDoubleValue(); } },
                { "author", n => { Author = n.GetStringValue(); } },
                { "camera_manufacturer", n => { CameraManufacturer = n.GetStringValue(); } },
                { "camera_model", n => { CameraModel = n.GetStringValue(); } },
                { "colorspace", n => { Colorspace = n.GetIntValue(); } },
                { "comments", n => { Comments = n.GetStringValue(); } },
                { "contrast", n => { Contrast = n.GetIntValue(); } },
                { "creation_date", n => { CreationDate = n.GetDateTimeOffsetValue(); } },
                { "digital_zoom", n => { DigitalZoom = n.GetDoubleValue(); } },
                { "exif_version", n => { ExifVersion = n.GetStringValue(); } },
                { "exposure", n => { Exposure = n.GetDoubleValue(); } },
                { "exposure_method", n => { ExposureMethod = n.GetIntValue(); } },
                { "exposure_program", n => { ExposureProgram = n.GetIntValue(); } },
                { "flash", n => { Flash = n.GetIntValue(); } },
                { "focal", n => { Focal = n.GetDoubleValue(); } },
                { "focal_equivalent", n => { FocalEquivalent = n.GetDoubleValue(); } },
                { "focal_length", n => { FocalLength = n.GetDoubleValue(); } },
                { "horizontal_resolution", n => { HorizontalResolution = n.GetDoubleValue(); } },
                { "id", n => { Id = n.GetGuidValue(); } },
                { "iso", n => { Iso = n.GetIntValue(); } },
                { "lens", n => { Lens = n.GetStringValue(); } },
                { "license_id", n => { LicenseId = n.GetIntValue(); } },
                { "license_name", n => { LicenseName = n.GetStringValue(); } },
                { "light_source", n => { LightSource = n.GetIntValue(); } },
                { "machine_company_name", n => { MachineCompanyName = n.GetStringValue(); } },
                { "machine_id", n => { MachineId = n.GetIntValue(); } },
                { "machine_name", n => { MachineName = n.GetStringValue(); } },
                { "metering_mode", n => { MeteringMode = n.GetIntValue(); } },
                { "orientation", n => { Orientation = n.GetIntValue(); } },
                { "original_extension", n => { OriginalExtension = n.GetStringValue(); } },
                { "resolution_unit", n => { ResolutionUnit = n.GetIntValue(); } },
                { "saturation", n => { Saturation = n.GetIntValue(); } },
                { "scene_capture_type", n => { SceneCaptureType = n.GetIntValue(); } },
                { "sensing_method", n => { SensingMethod = n.GetIntValue(); } },
                { "sharpness", n => { Sharpness = n.GetIntValue(); } },
                { "software", n => { Software = n.GetStringValue(); } },
                { "source", n => { Source = n.GetStringValue(); } },
                { "subject_distance_range", n => { SubjectDistanceRange = n.GetByteValue(); } },
                { "upload_date", n => { UploadDate = n.GetDateTimeOffsetValue(); } },
                { "user_id", n => { UserId = n.GetStringValue(); } },
                { "vertical_resolution", n => { VerticalResolution = n.GetDoubleValue(); } },
                { "white_balance", n => { WhiteBalance = n.GetIntValue(); } },
            };
        }
        /// <summary>
        /// Serializes information the current object
        /// </summary>
        /// <param name="writer">Serialization writer to use to serialize this model</param>
        public virtual void Serialize(ISerializationWriter writer)
        {
            if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
            writer.WriteDoubleValue("aperture", Aperture);
            writer.WriteStringValue("author", Author);
            writer.WriteStringValue("camera_manufacturer", CameraManufacturer);
            writer.WriteStringValue("camera_model", CameraModel);
            writer.WriteIntValue("colorspace", Colorspace);
            writer.WriteStringValue("comments", Comments);
            writer.WriteIntValue("contrast", Contrast);
            writer.WriteDateTimeOffsetValue("creation_date", CreationDate);
            writer.WriteDoubleValue("digital_zoom", DigitalZoom);
            writer.WriteStringValue("exif_version", ExifVersion);
            writer.WriteDoubleValue("exposure", Exposure);
            writer.WriteIntValue("exposure_method", ExposureMethod);
            writer.WriteIntValue("exposure_program", ExposureProgram);
            writer.WriteIntValue("flash", Flash);
            writer.WriteDoubleValue("focal", Focal);
            writer.WriteDoubleValue("focal_equivalent", FocalEquivalent);
            writer.WriteDoubleValue("focal_length", FocalLength);
            writer.WriteDoubleValue("horizontal_resolution", HorizontalResolution);
            writer.WriteGuidValue("id", Id);
            writer.WriteIntValue("iso", Iso);
            writer.WriteStringValue("lens", Lens);
            writer.WriteIntValue("license_id", LicenseId);
            writer.WriteStringValue("license_name", LicenseName);
            writer.WriteIntValue("light_source", LightSource);
            writer.WriteStringValue("machine_company_name", MachineCompanyName);
            writer.WriteIntValue("machine_id", MachineId);
            writer.WriteStringValue("machine_name", MachineName);
            writer.WriteIntValue("metering_mode", MeteringMode);
            writer.WriteIntValue("orientation", Orientation);
            writer.WriteStringValue("original_extension", OriginalExtension);
            writer.WriteIntValue("resolution_unit", ResolutionUnit);
            writer.WriteIntValue("saturation", Saturation);
            writer.WriteIntValue("scene_capture_type", SceneCaptureType);
            writer.WriteIntValue("sensing_method", SensingMethod);
            writer.WriteIntValue("sharpness", Sharpness);
            writer.WriteStringValue("software", Software);
            writer.WriteStringValue("source", Source);
            writer.WriteByteValue("subject_distance_range", SubjectDistanceRange);
            writer.WriteDateTimeOffsetValue("upload_date", UploadDate);
            writer.WriteStringValue("user_id", UserId);
            writer.WriteDoubleValue("vertical_resolution", VerticalResolution);
            writer.WriteIntValue("white_balance", WhiteBalance);
            writer.WriteAdditionalData(AdditionalData);
        }
    }
}
#pragma warning restore CS0618
