/* Options: Date: 2024-12-22 21:03:37 SwiftVersion: 6.0 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: UpdateTodo.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/todos/{Id}", "PUT") public class UpdateTodo : IReturn, IPut, Codable { public typealias Return = Todo public var id:Int? // @Validate(Validator="NotEmpty") public var text:String? public var isFinished:Bool? required public init(){} } public class Todo : Codable { public var id:Int? public var text:String? public var isFinished:Bool? required public init(){} }