/* Options: Date: 2025-07-04 09:37:54 SwiftVersion: 5.0 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://doapigw.baasbv.nl/api //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: SetWorkflowTaskFinished.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack public class SetWorkflowTaskFinished : IReturnVoid, Codable { public var id:Int public var connectionID:String? public var details:WorkflowTaskActionDetails required public init(){} } public class WorkflowTaskActionDetails : AdhocTransitionDetails { public var title:String public var comment:WorkflowTaskActionComment public var reason:WorkflowTaskReason required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case title case comment case reason } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) title = try container.decodeIfPresent(String.self, forKey: .title) comment = try container.decodeIfPresent(WorkflowTaskActionComment.self, forKey: .comment) reason = try container.decodeIfPresent(WorkflowTaskReason.self, forKey: .reason) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if title != nil { try container.encode(title, forKey: .title) } if comment != nil { try container.encode(comment, forKey: .comment) } if reason != nil { try container.encode(reason, forKey: .reason) } } }