/* Options: Date: 2024-11-24 13:33:15 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: StaffListRequest.* //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 StaffListRequestDto extends ApiDtoBase implements IConvertible { int? StaffType; StaffListRequestDto({this.StaffType}); StaffListRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); StaffType = json['StaffType']; return this; } Map toJson() => super.toJson()..addAll({ 'StaffType': StaffType }); getTypeName() => "StaffListRequestDto"; TypeContext? context = _ctx; } // @Route("/staff", "GET") class StaffListRequest extends StaffListRequestDto 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; /** * StoreId is required */ // @ApiMember(DataType="integer", Description="StoreId is required", IsRequired=true, Name="StoreId", ParameterType="query") int? StoreId; /** * ClubReady AdminTypeId */ // @ApiMember(DataType="integer", Description="ClubReady AdminTypeId", Name="StaffType", ParameterType="query") int? StaffType; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; /** * Restricts results to staff that are available for scheduling */ // @ApiMember(DataType="bool", Description="Restricts results to staff that are available for scheduling", Name="AvailableForScheduling", ParameterType="query") bool? AvailableForScheduling; StaffListRequest({this.ApiKey,this.StoreId,this.StaffType,this.RestrictedId,this.RestrictedResourceType,this.AvailableForScheduling}); StaffListRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; StoreId = json['StoreId']; StaffType = json['StaffType']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); AvailableForScheduling = json['AvailableForScheduling']; return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'StoreId': StoreId, 'StaffType': StaffType, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!), 'AvailableForScheduling': AvailableForScheduling }); getTypeName() => "StaffListRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'clubready.com', types: { 'RestrictedResourceType': TypeInfo(TypeOf.Enum, enumValues:RestrictedResourceType.values), 'IRestrictedApiRequest': TypeInfo(TypeOf.Interface), 'IApiKeyEndpoint': TypeInfo(TypeOf.Interface), 'ApiDtoBase': TypeInfo(TypeOf.Class, create:() => ApiDtoBase()), 'StaffListRequestDto': TypeInfo(TypeOf.Class, create:() => StaffListRequestDto()), 'StaffListRequest': TypeInfo(TypeOf.Class, create:() => StaffListRequest()), });