/* Options: Date: 2025-02-05 09:51:14 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: SecurityService.GetUserByBranchForAppRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @Flags() class TrainingCourse { static const TrainingCourse AddMember = const TrainingCourse._(1); static const TrainingCourse EditMember = const TrainingCourse._(2); static const TrainingCourse AddMembership = const TrainingCourse._(4); static const TrainingCourse Journal = const TrainingCourse._(8); static const TrainingCourse Home = const TrainingCourse._(16); static const TrainingCourse Till = const TrainingCourse._(32); static const TrainingCourse Accounting = const TrainingCourse._(64); static const TrainingCourse UnexplainedPayments = const TrainingCourse._(128); static const TrainingCourse Bookings = const TrainingCourse._(256); static const TrainingCourse Users = const TrainingCourse._(512); final int _value; const TrainingCourse._(this._value); int get value => _value; static List get values => const [AddMember,EditMember,AddMembership,Journal,Home,Till,Accounting,UnexplainedPayments,Bookings,Users]; } class User implements IConvertible { User(); User.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "User"; TypeContext? context = _ctx; } class User implements IConvertible { int? UserId; String? UserName; String? Name; String? Email; bool? EmailConfirmed; String? MobilePhone; bool? MobilePhoneConfirmed; String? ConfirmPassword; String? Password; String? PasswordSalt; bool? Enabled; bool? Training; DateTime? LastLogin; DateTime? Created; int? BranchId; int? ParentBranchId; int? MemberId; List? Roles; TrainingCourse? CoursesCompleted; bool? DisplayHomeNotification; bool? TwoFactorEnabled; String? BranchName; String? BranchKey; bool? Notifications; String? PublishableKey; String? SecretKey; String? AppRegistrationId; String? AppRegistrationLink; String? AppQrImageLink; DateTime? ChangePassword; DateTime? Activated; User({this.UserId,this.UserName,this.Name,this.Email,this.EmailConfirmed,this.MobilePhone,this.MobilePhoneConfirmed,this.ConfirmPassword,this.Password,this.PasswordSalt,this.Enabled,this.Training,this.LastLogin,this.Created,this.BranchId,this.ParentBranchId,this.MemberId,this.Roles,this.CoursesCompleted,this.DisplayHomeNotification,this.TwoFactorEnabled,this.BranchName,this.BranchKey,this.Notifications,this.PublishableKey,this.SecretKey,this.AppRegistrationId,this.AppRegistrationLink,this.AppQrImageLink,this.ChangePassword,this.Activated}); User.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; UserName = json['UserName']; Name = json['Name']; Email = json['Email']; EmailConfirmed = json['EmailConfirmed']; MobilePhone = json['MobilePhone']; MobilePhoneConfirmed = json['MobilePhoneConfirmed']; ConfirmPassword = json['ConfirmPassword']; Password = json['Password']; PasswordSalt = json['PasswordSalt']; Enabled = json['Enabled']; Training = json['Training']; LastLogin = JsonConverters.fromJson(json['LastLogin'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); BranchId = json['BranchId']; ParentBranchId = json['ParentBranchId']; MemberId = json['MemberId']; Roles = JsonConverters.fromJson(json['Roles'],'List',context!); CoursesCompleted = JsonConverters.fromJson(json['CoursesCompleted'],'TrainingCourse',context!); DisplayHomeNotification = json['DisplayHomeNotification']; TwoFactorEnabled = json['TwoFactorEnabled']; BranchName = json['BranchName']; BranchKey = json['BranchKey']; Notifications = json['Notifications']; PublishableKey = json['PublishableKey']; SecretKey = json['SecretKey']; AppRegistrationId = json['AppRegistrationId']; AppRegistrationLink = json['AppRegistrationLink']; AppQrImageLink = json['AppQrImageLink']; 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, 'EmailConfirmed': EmailConfirmed, 'MobilePhone': MobilePhone, 'MobilePhoneConfirmed': MobilePhoneConfirmed, 'ConfirmPassword': ConfirmPassword, 'Password': Password, 'PasswordSalt': PasswordSalt, 'Enabled': Enabled, 'Training': Training, 'LastLogin': JsonConverters.toJson(LastLogin,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'BranchId': BranchId, 'ParentBranchId': ParentBranchId, 'MemberId': MemberId, 'Roles': JsonConverters.toJson(Roles,'List',context!), 'CoursesCompleted': JsonConverters.toJson(CoursesCompleted,'TrainingCourse',context!), 'DisplayHomeNotification': DisplayHomeNotification, 'TwoFactorEnabled': TwoFactorEnabled, 'BranchName': BranchName, 'BranchKey': BranchKey, 'Notifications': Notifications, 'PublishableKey': PublishableKey, 'SecretKey': SecretKey, 'AppRegistrationId': AppRegistrationId, 'AppRegistrationLink': AppRegistrationLink, 'AppQrImageLink': AppQrImageLink, 'ChangePassword': JsonConverters.toJson(ChangePassword,'DateTime',context!), 'Activated': JsonConverters.toJson(Activated,'DateTime',context!) }; getTypeName() => "User"; TypeContext? context = _ctx; } // @Route("/api/Security/GetUserByBranchForApp", "POST,GET") class GetUserByBranchForAppRequest implements IReturn, IConvertible { int? AppUserId; GetUserByBranchForAppRequest({this.AppUserId}); GetUserByBranchForAppRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AppUserId = json['AppUserId']; return this; } Map toJson() => { 'AppUserId': AppUserId }; createResponse() => User(); getResponseTypeName() => "User"; getTypeName() => "GetUserByBranchForAppRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'TrainingCourse': TypeInfo(TypeOf.Enum, enumValues:TrainingCourse.values), 'User': TypeInfo(TypeOf.Class, create:() => User()), 'GetUserByBranchForAppRequest': TypeInfo(TypeOf.Class, create:() => GetUserByBranchForAppRequest()), });