/* Options: Date: 2024-12-15 19:55:23 SwiftVersion: 5.0 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://staging-api.billiecart.com.au //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: ResetEntityStreamsRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/events/reset/entity", "POST") public class ResetEntityStreamsRequest : PostOperationUnTenanted, IReturn { public typealias Return = EmptyResponse public var entityType:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case entityType } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) entityType = try container.decodeIfPresent(String.self, forKey: .entityType) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if entityType != nil { try container.encode(entityType, forKey: .entityType) } } } public class PostOperationUnTenanted : IPost, Codable { required public init(){} }