//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace Brutal.GltfApi { using System.Linq; using System.Runtime.Serialization; using System.Text.Json.Serialization; /// /// Object part of the GLTF file schema /// Metadata about the glTF asset. /// public partial class Asset { /// /// Backing field for Copyright. /// private string m_copyright; /// /// Backing field for Generator. /// private string m_generator; /// /// Backing field for Version. /// private string m_version; /// /// Backing field for MinVersion. /// private string m_minVersion; /// /// Backing field for Extensions. /// private System.Collections.Generic.Dictionary m_extensions; /// /// Backing field for Extras. /// private Extras m_extras; /// /// A copyright message suitable for display to credit the content creator. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("copyright")] public string Copyright { get { return this.m_copyright; } set { this.m_copyright = value; } } /// /// Tool that generated this glTF model. Useful for debugging. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("generator")] public string Generator { get { return this.m_generator; } set { this.m_generator = value; } } /// /// The glTF version in the form of `<major>.<minor>` that this asset targets. /// [System.Text.Json.Serialization.JsonRequiredAttribute()] [System.Text.Json.Serialization.JsonPropertyNameAttribute("version")] public string Version { get { return this.m_version; } set { this.m_version = value; } } /// /// The minimum glTF version in the form of `<major>.<minor>` that this asset targets. This property **MUST NOT** be greater than the asset version. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("minVersion")] public string MinVersion { get { return this.m_minVersion; } set { this.m_minVersion = value; } } /// /// JSON object with extension-specific objects. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("extensions")] public System.Collections.Generic.Dictionary Extensions { get { return this.m_extensions; } set { this.m_extensions = value; } } /// /// Application-specific data. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("extras")] public Extras Extras { get { return this.m_extras; } set { this.m_extras = value; } } /// /// This method is used to determine if the Copyright property should be serialized. /// public bool ShouldSerializeCopyright() { return ((m_copyright == null) == false); } /// /// This method is used to determine if the Generator property should be serialized. /// public bool ShouldSerializeGenerator() { return ((m_generator == null) == false); } /// /// This method is used to determine if the Version property should be serialized. /// public bool ShouldSerializeVersion() { return ((m_version == null) == false); } /// /// This method is used to determine if the MinVersion property should be serialized. /// public bool ShouldSerializeMinVersion() { return ((m_minVersion == null) == false); } /// /// This method is used to determine if the Extensions property should be serialized. /// public bool ShouldSerializeExtensions() { return ((m_extensions == null) == false); } /// /// This method is used to determine if the Extras property should be serialized. /// public bool ShouldSerializeExtras() { return ((m_extras == null) == false); } } }