/* Options: Date: 2024-12-22 21:46:51 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: QueryAppUsers.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack public class QueryAppUsers : QueryDb, IReturn { public typealias Return = QueryResponse public var emailContains:String? public var firstNameContains:String? public var lastNameContains:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case emailContains case firstNameContains case lastNameContains } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) emailContains = try container.decodeIfPresent(String.self, forKey: .emailContains) firstNameContains = try container.decodeIfPresent(String.self, forKey: .firstNameContains) lastNameContains = try container.decodeIfPresent(String.self, forKey: .lastNameContains) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if emailContains != nil { try container.encode(emailContains, forKey: .emailContains) } if firstNameContains != nil { try container.encode(firstNameContains, forKey: .firstNameContains) } if lastNameContains != nil { try container.encode(lastNameContains, forKey: .lastNameContains) } } } public class AppUser : Codable { public var id:String? public var firstName:String? public var lastName:String? public var displayName:String? public var profileUrl:String? required public init(){} }