/* Options: Date: 2025-02-05 21:49:27 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.clubmanagercentral.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: FindUser.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class UserInstance implements IConvertible { int? UserId; String? UserName; String? Name; String? Email; String? MobilePhone; bool? Enabled; DateTime? LastLogin; DateTime? Created; bool? Training; bool? Deleted; int? CoursesCompleted; bool? DisplayHomeNotification; bool? TwoFactorEnabled; bool? EmailConfirmed; bool? MobilePhoneConfirmed; bool? Notifications; DateTime? ChangePassword; DateTime? Activated; UserInstance({this.UserId,this.UserName,this.Name,this.Email,this.MobilePhone,this.Enabled,this.LastLogin,this.Created,this.Training,this.Deleted,this.CoursesCompleted,this.DisplayHomeNotification,this.TwoFactorEnabled,this.EmailConfirmed,this.MobilePhoneConfirmed,this.Notifications,this.ChangePassword,this.Activated}); UserInstance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; UserName = json['UserName']; Name = json['Name']; Email = json['Email']; MobilePhone = json['MobilePhone']; Enabled = json['Enabled']; LastLogin = JsonConverters.fromJson(json['LastLogin'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); Training = json['Training']; Deleted = json['Deleted']; CoursesCompleted = json['CoursesCompleted']; DisplayHomeNotification = json['DisplayHomeNotification']; TwoFactorEnabled = json['TwoFactorEnabled']; EmailConfirmed = json['EmailConfirmed']; MobilePhoneConfirmed = json['MobilePhoneConfirmed']; Notifications = json['Notifications']; ChangePassword = JsonConverters.fromJson(json['ChangePassword'],'DateTime',context!); Activated = JsonConverters.fromJson(json['Activated'],'DateTime',context!); return this; } Map toJson() => { 'UserId': UserId, 'UserName': UserName, 'Name': Name, 'Email': Email, 'MobilePhone': MobilePhone, 'Enabled': Enabled, 'LastLogin': JsonConverters.toJson(LastLogin,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'Training': Training, 'Deleted': Deleted, 'CoursesCompleted': CoursesCompleted, 'DisplayHomeNotification': DisplayHomeNotification, 'TwoFactorEnabled': TwoFactorEnabled, 'EmailConfirmed': EmailConfirmed, 'MobilePhoneConfirmed': MobilePhoneConfirmed, 'Notifications': Notifications, 'ChangePassword': JsonConverters.toJson(ChangePassword,'DateTime',context!), 'Activated': JsonConverters.toJson(Activated,'DateTime',context!) }; getTypeName() => "UserInstance"; TypeContext? context = _ctx; } // @Route("/api/Query/User") // @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="User") class FindUser extends QueryDb implements IReturn>, IConvertible { FindUser(); FindUser.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "FindUser"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'UserInstance': TypeInfo(TypeOf.Class, create:() => UserInstance()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'FindUser': TypeInfo(TypeOf.Class, create:() => FindUser()), 'List': TypeInfo(TypeOf.Class, create:() => []), });