/* Options: Date: 2024-11-21 05:12:01 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: TopicListRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/topicsList", "GET") public class TopicListRequest : BasicResourceLibraryRequest, IReturn { public typealias Return = TopicListResponse 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 TopicListResponse : Codable { public var topicsList:[TopicItem] = [] required public init(){} } public class BasicResourceLibraryRequest : Codable { public var resourceLibraryMemberId:Int? 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(){} }