/* Options: Date: 2024-11-24 13:53:23 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: GetClassScheduleRequestV2.* //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 GetClassScheduleRequestDto extends ApiDtoBase implements IConvertible { DateTime? FromDate; DateTime? ToDate; int? FilterByCategoryId; GetClassScheduleRequestDto({this.FromDate,this.ToDate,this.FilterByCategoryId}); GetClassScheduleRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); FromDate = JsonConverters.fromJson(json['FromDate'],'DateTime',context!); ToDate = JsonConverters.fromJson(json['ToDate'],'DateTime',context!); FilterByCategoryId = json['FilterByCategoryId']; return this; } Map toJson() => super.toJson()..addAll({ 'FromDate': JsonConverters.toJson(FromDate,'DateTime',context!), 'ToDate': JsonConverters.toJson(ToDate,'DateTime',context!), 'FilterByCategoryId': FilterByCategoryId }); getTypeName() => "GetClassScheduleRequestDto"; TypeContext? context = _ctx; } // @Route("/v2/{Apikey}/club/{StoreID}/classschedule", "GET") class GetClassScheduleRequestV2 extends GetClassScheduleRequestDto implements IRestrictedApiRequest, IConvertible { String? ApiKey; int? StoreId; DateTime? FromDate; DateTime? ToDate; /** * Id of CategoryNames to filter results by */ // @ApiMember(DataType="integer", Description=" Id of CategoryNames to filter results by", Name="FilterByCategoryId", ParameterType="query") int? FilterByCategoryId; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; GetClassScheduleRequestV2({this.ApiKey,this.StoreId,this.FromDate,this.ToDate,this.FilterByCategoryId,this.RestrictedId,this.RestrictedResourceType}); GetClassScheduleRequestV2.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; StoreId = json['StoreId']; FromDate = JsonConverters.fromJson(json['FromDate'],'DateTime',context!); ToDate = JsonConverters.fromJson(json['ToDate'],'DateTime',context!); FilterByCategoryId = json['FilterByCategoryId']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'StoreId': StoreId, 'FromDate': JsonConverters.toJson(FromDate,'DateTime',context!), 'ToDate': JsonConverters.toJson(ToDate,'DateTime',context!), 'FilterByCategoryId': FilterByCategoryId, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }); getTypeName() => "GetClassScheduleRequestV2"; 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()), 'GetClassScheduleRequestDto': TypeInfo(TypeOf.Class, create:() => GetClassScheduleRequestDto()), 'GetClassScheduleRequestV2': TypeInfo(TypeOf.Class, create:() => GetClassScheduleRequestV2()), });