/* Options: Date: 2025-12-06 08:51:36 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: StatusItems.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/v1/StatusItems", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/StatusItems/{Id}", "GET,POST,PUT,DELETE,OPTIONS") public class StatusItems : StatusItemObject, IReturn { public typealias Return = StatusItemsResponse public var apiKey:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case apiKey } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) apiKey = try container.decodeIfPresent(String.self, forKey: .apiKey) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if apiKey != nil { try container.encode(apiKey, forKey: .apiKey) } } } public class StatusItemsResponse : Codable { public var responseStatus:ResponseStatus? public var statusItems:[StatusItemObject] = [] required public init(){} } public class StatusItemObject : Codable { public var id:Int? public var name:String? public var active:Bool? required public init(){} }