/* Options: Date: 2025-01-08 03:06:34 SwiftVersion: 6.0 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: CreateTodo.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/todos", "POST") public class CreateTodo : IReturn, IPost, Codable { public typealias Return = Todo // @Validate(Validator="NotEmpty") public var text:String? required public init(){} } public class Todo : Codable { public var id:Int? public var text:String? public var isFinished:Bool? required public init(){} }