/* Options: Date: 2024-11-24 14:31:14 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: ClassCategoriesRequest.* //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 ClassCategoryRequestDto implements IConvertible { int? StoreId; int? ChainId; ClassCategoryRequestDto({this.StoreId,this.ChainId}); ClassCategoryRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { StoreId = json['StoreId']; ChainId = json['ChainId']; return this; } Map toJson() => { 'StoreId': StoreId, 'ChainId': ChainId }; getTypeName() => "ClassCategoryRequestDto"; TypeContext? context = _ctx; } // @Route("/scheduling/class-category", "GET") class ClassCategoriesRequest extends ClassCategoryRequestDto 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; /** * Store Id or Chain Id is required */ // @ApiMember(DataType="int", Description="Store Id or Chain Id is required", Name="StoreId", ParameterType="query") int? StoreId; /** * Store Id or Chain Id is required */ // @ApiMember(DataType="integer", Description="Store Id or Chain Id is required", Name="ChainId", ParameterType="query") int? ChainId; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; ClassCategoriesRequest({this.ApiKey,this.StoreId,this.ChainId,this.RestrictedId,this.RestrictedResourceType}); ClassCategoriesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; StoreId = json['StoreId']; ChainId = json['ChainId']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'StoreId': StoreId, 'ChainId': ChainId, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }); getTypeName() => "ClassCategoriesRequest"; 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), 'ClassCategoryRequestDto': TypeInfo(TypeOf.Class, create:() => ClassCategoryRequestDto()), 'ClassCategoriesRequest': TypeInfo(TypeOf.Class, create:() => ClassCategoriesRequest()), });