/* Options: Date: 2026-01-12 03:02:41 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://qa-business-api.brovs.com //GlobalNamespace: BusinessApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetCategoryEnabledAdDetailRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; enum AdDetailsType { PercentageOnAllMerchandise, PercentageRangeOnAllMerchandise, PercentageOnSelectedMerchandise, AbsoluteOnSelectedMerchandise, AbsoluteRangeOnAllMerchandise, TotalAmountOverXgivesYdiscount, XforY, NewArrivals, Freetext, TodaysBreakFastOffer, TodaysLunchOffer, TodaysDinnerOffer, SaveFoodAndMoney, PercentageOfYourFoodBill, HappyHour, SomeFreeTablesLeftToday, TwoDishesForThePriceOfOne, } class GetCategoryEnabledAdDetailResponse implements IConvertible { List? adDetailsTypes = []; GetCategoryEnabledAdDetailResponse({this.adDetailsTypes}); GetCategoryEnabledAdDetailResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { adDetailsTypes = JsonConverters.fromJson(json['adDetailsTypes'],'List',context!); return this; } Map toJson() => { 'adDetailsTypes': JsonConverters.toJson(adDetailsTypes,'List',context!) }; getTypeName() => "GetCategoryEnabledAdDetailResponse"; TypeContext? context = _ctx; } // @Route("/ad/get_category_enabled_details", "GET") class GetCategoryEnabledAdDetailRequest implements IReturn, IGet, IConvertible { List? categoryAbsoluteSlug = []; GetCategoryEnabledAdDetailRequest({this.categoryAbsoluteSlug}); GetCategoryEnabledAdDetailRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { categoryAbsoluteSlug = JsonConverters.fromJson(json['categoryAbsoluteSlug'],'List',context!); return this; } Map toJson() => { 'categoryAbsoluteSlug': JsonConverters.toJson(categoryAbsoluteSlug,'List',context!) }; createResponse() => GetCategoryEnabledAdDetailResponse(); getResponseTypeName() => "GetCategoryEnabledAdDetailResponse"; getTypeName() => "GetCategoryEnabledAdDetailRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'AdDetailsType': TypeInfo(TypeOf.Enum, enumValues:AdDetailsType.values), 'GetCategoryEnabledAdDetailResponse': TypeInfo(TypeOf.Class, create:() => GetCategoryEnabledAdDetailResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCategoryEnabledAdDetailRequest': TypeInfo(TypeOf.Class, create:() => GetCategoryEnabledAdDetailRequest()), });