/* Options: Date: 2024-11-21 03:05:48 SwiftVersion: 5.0 Version: 6.00 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://resourcelibrary.api.ashcompanies.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: LibraryNavTopicsRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/libraryNavTopics", "GET") public class LibraryNavTopicsRequest : BasicResourceLibraryRequest, IReturn { public typealias Return = LibraryNavTopicsResponse public var digitalFitness:Bool? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case digitalFitness } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) digitalFitness = try container.decodeIfPresent(Bool.self, forKey: .digitalFitness) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if digitalFitness != nil { try container.encode(digitalFitness, forKey: .digitalFitness) } } } public class LibraryNavTopicsResponse : Codable { public var libraryNavTopics:[LibraryNavTopic] = [] required public init(){} } public class BasicResourceLibraryRequest : Codable { public var resourceLibraryMemberId:Int? required public init(){} } public class LibraryNavTopic : Codable { public var name:String? public var topics:[TopicItem] = [] required public init(){} } public class TopicItem : Codable { public var id:String? public var title:String? public var isNavItem:Bool? public var isVisible:Bool? required public init(){} }