/* Options: Date: 2024-05-10 04:26:26 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.clubready.com/api/current //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetAllUsersRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum RestrictedResourceType { Store, Chain, User, Undefined, } abstract class IRestrictedApiRequest extends IApiKeyEndpoint { int? RestrictedId; RestrictedResourceType? RestrictedResourceType; } abstract class IApiKeyEndpoint { String? ApiKey; } class ApiDtoBase implements IConvertible { String? ApiKey; int? StoreId; int? ChainId; ApiDtoBase({this.ApiKey,this.StoreId,this.ChainId}); ApiDtoBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; StoreId = json['StoreId']; ChainId = json['ChainId']; return this; } Map toJson() => { 'ApiKey': ApiKey, 'StoreId': StoreId, 'ChainId': ChainId }; getTypeName() => "ApiDtoBase"; TypeContext? context = _ctx; } class GetAllUsersRequestDto extends ApiDtoBase implements IConvertible { bool? IncludeDeleted; GetAllUsersRequestDto({this.IncludeDeleted}); GetAllUsersRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); IncludeDeleted = json['IncludeDeleted']; return this; } Map toJson() => super.toJson()..addAll({ 'IncludeDeleted': IncludeDeleted }); getTypeName() => "GetAllUsersRequestDto"; TypeContext? context = _ctx; } // @Route("/club/{StoreId}/Users/all", "GET") class GetAllUsersRequest extends GetAllUsersRequestDto implements IRestrictedApiRequest, IConvertible { /** * Api Key - grants access to resources */ // @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query") String? ApiKey; /** * Chain ID */ // @ApiMember(DataType="integer", Description="Chain ID", Name="ChainId", ParameterType="query") int? ChainId; /** * Store ID */ // @ApiMember(DataType="integer", Description="Store ID", IsRequired=true, Name="StoreId", ParameterType="query") int? StoreId; /** * Include deleted users in result? (defaults to false) */ // @ApiMember(DataType="bool", Description="Include deleted users in result? (defaults to false)", Name="IncludeDeleted", ParameterType="query") bool? IncludeDeleted; /** * Max number of records to include in the response. */ // @ApiMember(DataType="int", Description="Max number of records to include in the response.", Name="PageSize", ParameterType="query") int? PageSize; /** * Page number to retrieve. */ // @ApiMember(DataType="int", Description="Page number to retrieve.", Name="PageNumber", ParameterType="query") int? PageNumber; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; GetAllUsersRequest({this.ApiKey,this.ChainId,this.StoreId,this.IncludeDeleted,this.PageSize,this.PageNumber,this.RestrictedId,this.RestrictedResourceType}); GetAllUsersRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; ChainId = json['ChainId']; StoreId = json['StoreId']; IncludeDeleted = json['IncludeDeleted']; PageSize = json['PageSize']; PageNumber = json['PageNumber']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'ChainId': ChainId, 'StoreId': StoreId, 'IncludeDeleted': IncludeDeleted, 'PageSize': PageSize, 'PageNumber': PageNumber, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }); getTypeName() => "GetAllUsersRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.clubready.com', types: { 'RestrictedResourceType': TypeInfo(TypeOf.Enum, enumValues:RestrictedResourceType.values), 'IRestrictedApiRequest': TypeInfo(TypeOf.Interface), 'IApiKeyEndpoint': TypeInfo(TypeOf.Interface), 'ApiDtoBase': TypeInfo(TypeOf.Class, create:() => ApiDtoBase()), 'GetAllUsersRequestDto': TypeInfo(TypeOf.Class, create:() => GetAllUsersRequestDto()), 'GetAllUsersRequest': TypeInfo(TypeOf.Class, create:() => GetAllUsersRequest()), });