/* Options: Date: 2024-05-15 06:01:53 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: GetCustomCategoryItemsRequest.* //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 GetCustomCategoriesRequestDto extends ApiDtoBase implements IConvertible { int? CustomCategoryId; GetCustomCategoriesRequestDto({this.CustomCategoryId}); GetCustomCategoriesRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CustomCategoryId = json['CustomCategoryId']; return this; } Map toJson() => super.toJson()..addAll({ 'CustomCategoryId': CustomCategoryId }); getTypeName() => "GetCustomCategoriesRequestDto"; TypeContext? context = _ctx; } class ApiGenericType implements IConvertible { int? Id; String? Name; int? StoreId; int? ChainId; ApiGenericType({this.Id,this.Name,this.StoreId,this.ChainId}); ApiGenericType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; StoreId = json['StoreId']; ChainId = json['ChainId']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'StoreId': StoreId, 'ChainId': ChainId }; getTypeName() => "ApiGenericType"; TypeContext? context = _ctx; } class ApiResponseBase implements IConvertible { bool? Success; String? Message; ApiResponseBase({this.Success,this.Message}); ApiResponseBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Success = json['Success']; Message = json['Message']; return this; } Map toJson() => { 'Success': Success, 'Message': Message }; getTypeName() => "ApiResponseBase"; TypeContext? context = _ctx; } class GetCustomCategoryItemsResposeDto extends ApiResponseBase implements IConvertible { List? CategoryItems; GetCustomCategoryItemsResposeDto({this.CategoryItems}); GetCustomCategoryItemsResposeDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CategoryItems = JsonConverters.fromJson(json['CategoryItems'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CategoryItems': JsonConverters.toJson(CategoryItems,'List',context!) }); getTypeName() => "GetCustomCategoryItemsResposeDto"; TypeContext? context = _ctx; } class GetCustomCategoryItemsResponse extends GetCustomCategoryItemsResposeDto implements IConvertible { List? CategoryItems; GetCustomCategoryItemsResponse({this.CategoryItems}); GetCustomCategoryItemsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CategoryItems = JsonConverters.fromJson(json['CategoryItems'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CategoryItems': JsonConverters.toJson(CategoryItems,'List',context!) }); getTypeName() => "GetCustomCategoryItemsResponse"; TypeContext? context = _ctx; } // @Route("/club/custom-category/items", "GET") class GetCustomCategoryItemsRequest extends GetCustomCategoriesRequestDto implements IReturn, 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; /** * Either StoreId or ChainId is required */ // @ApiMember(DataType="integer", Description="Either StoreId or ChainId is required", Name="ChainId", ParameterType="query") int? ChainId; /** * Either StoreId or ChainId is required */ // @ApiMember(DataType="integer", Description="Either StoreId or ChainId is required", Name="StoreId", ParameterType="query") int? StoreId; /** * Custom Category ID */ // @ApiMember(DataType="integer", Description="Custom Category ID", IsRequired=true, Name="CustomCategoryId", ParameterType="query") int? CustomCategoryId; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; GetCustomCategoryItemsRequest({this.ApiKey,this.ChainId,this.StoreId,this.CustomCategoryId,this.RestrictedId,this.RestrictedResourceType}); GetCustomCategoryItemsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; ChainId = json['ChainId']; StoreId = json['StoreId']; CustomCategoryId = json['CustomCategoryId']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'ChainId': ChainId, 'StoreId': StoreId, 'CustomCategoryId': CustomCategoryId, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }); createResponse() => GetCustomCategoryItemsResponse(); getResponseTypeName() => "GetCustomCategoryItemsResponse"; getTypeName() => "GetCustomCategoryItemsRequest"; 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()), 'GetCustomCategoriesRequestDto': TypeInfo(TypeOf.Class, create:() => GetCustomCategoriesRequestDto()), 'ApiGenericType': TypeInfo(TypeOf.Class, create:() => ApiGenericType()), 'ApiResponseBase': TypeInfo(TypeOf.Class, create:() => ApiResponseBase()), 'GetCustomCategoryItemsResposeDto': TypeInfo(TypeOf.Class, create:() => GetCustomCategoryItemsResposeDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCustomCategoryItemsResponse': TypeInfo(TypeOf.Class, create:() => GetCustomCategoryItemsResponse()), 'GetCustomCategoryItemsRequest': TypeInfo(TypeOf.Class, create:() => GetCustomCategoryItemsRequest()), });