/* Options: Date: 2025-09-03 20:35:06 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://foundrystage-api-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SearchAllUsersRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class GetOperationUnTenanted implements IHasGetOptions, IGet { String? embed; GetOperationUnTenanted({this.embed}); GetOperationUnTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { embed = json['embed']; return this; } Map toJson() => { 'embed': embed }; getTypeName() => "GetOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } abstract class IHasGetOptions { String? embed; } abstract class SearchOperationUnTenanted extends GetOperationUnTenanted implements IHasSearchOptions { String? distinct; int? limit; int? offset; String? sort; String? filter; SearchOperationUnTenanted({this.distinct,this.limit,this.offset,this.sort,this.filter}); SearchOperationUnTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); distinct = json['distinct']; limit = json['limit']; offset = json['offset']; sort = json['sort']; filter = json['filter']; return this; } Map toJson() => super.toJson()..addAll({ 'distinct': distinct, 'limit': limit, 'offset': offset, 'sort': sort, 'filter': filter }); getTypeName() => "SearchOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } abstract class IHasSearchOptions extends IHasGetOptions { int? limit; int? offset; String? sort; String? filter; } abstract class ITenantedRequest { String? organisationId; } abstract class SearchOperationTenanted extends SearchOperationUnTenanted implements ITenantedRequest { String? organisationId; SearchOperationTenanted({this.organisationId}); SearchOperationTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); organisationId = json['organisationId']; return this; } Map toJson() => super.toJson()..addAll({ 'organisationId': organisationId }); getTypeName() => "SearchOperationTenanted<$TResponse>"; TypeContext? context = _ctx; } enum AccountStatus { Shadowed, Registered, } enum AccountType { Person, Machine, } class UserAccountMembership implements IIdentifiableResource, IConvertible { String? userId; String? userEmailAddress; AccountStatus? status; AccountType? type; List? roles; String? id; String? organisationId; UserAccountMembership({this.userId,this.userEmailAddress,this.status,this.type,this.roles,this.id,this.organisationId}); UserAccountMembership.fromJson(Map json) { fromMap(json); } fromMap(Map json) { userId = json['userId']; userEmailAddress = json['userEmailAddress']; status = JsonConverters.fromJson(json['status'],'AccountStatus',context!); type = JsonConverters.fromJson(json['type'],'AccountType',context!); roles = JsonConverters.fromJson(json['roles'],'List',context!); id = json['id']; organisationId = json['organisationId']; return this; } Map toJson() => { 'userId': userId, 'userEmailAddress': userEmailAddress, 'status': JsonConverters.toJson(status,'AccountStatus',context!), 'type': JsonConverters.toJson(type,'AccountType',context!), 'roles': JsonConverters.toJson(roles,'List',context!), 'id': id, 'organisationId': organisationId }; getTypeName() => "UserAccountMembership"; TypeContext? context = _ctx; } class UserDetails extends UserAccountMembership implements IConvertible { DateTime? lastLoginDate; bool? twoFactorEnabled; String? name; UserDetails({this.lastLoginDate,this.twoFactorEnabled,this.name}); UserDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); lastLoginDate = JsonConverters.fromJson(json['lastLoginDate'],'DateTime',context!); twoFactorEnabled = json['twoFactorEnabled']; name = json['name']; return this; } Map toJson() => super.toJson()..addAll({ 'lastLoginDate': JsonConverters.toJson(lastLoginDate,'DateTime',context!), 'twoFactorEnabled': twoFactorEnabled, 'name': name }); getTypeName() => "UserDetails"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class SearchAllUsersResponse implements IConvertible { ResponseStatus? responseStatus; List? userDetails; SearchAllUsersResponse({this.responseStatus,this.userDetails}); SearchAllUsersResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); userDetails = JsonConverters.fromJson(json['userDetails'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'userDetails': JsonConverters.toJson(userDetails,'List',context!) }; getTypeName() => "SearchAllUsersResponse"; TypeContext? context = _ctx; } // @Route("/users/all", "GET") class SearchAllUsersRequest extends SearchOperationTenanted implements IReturn, IConvertible { SearchAllUsersRequest(); SearchAllUsersRequest.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => SearchAllUsersResponse(); getResponseTypeName() => "SearchAllUsersResponse"; getTypeName() => "SearchAllUsersRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'foundrystage_api_app.azurewebsites.net', types: { 'GetOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'IHasGetOptions': TypeInfo(TypeOf.Interface), 'SearchOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'IHasSearchOptions': TypeInfo(TypeOf.Interface), 'ITenantedRequest': TypeInfo(TypeOf.Interface), 'SearchOperationTenanted': TypeInfo(TypeOf.AbstractClass), 'AccountStatus': TypeInfo(TypeOf.Enum, enumValues:AccountStatus.values), 'AccountType': TypeInfo(TypeOf.Enum, enumValues:AccountType.values), 'UserAccountMembership': TypeInfo(TypeOf.Class, create:() => UserAccountMembership()), 'UserDetails': TypeInfo(TypeOf.Class, create:() => UserDetails()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'SearchAllUsersResponse': TypeInfo(TypeOf.Class, create:() => SearchAllUsersResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SearchAllUsersRequest': TypeInfo(TypeOf.Class, create:() => SearchAllUsersRequest()), });