/* Options: Date: 2025-12-06 07:01:39 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://business-api.brovs.com //GlobalNamespace: BusinessApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetCategoryTreeRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; enum FeatureType { BarSpeciality, BarType, Cuisine, SaveFoodAndMoney, MealType, Menu, OutdoorSeating, Parking, PaymentOptions, PriceMainDish, SubCategories, SubCategoriesAndBrands, EatingSuitabilities, TakeAway, WearPriceProfile, WheelChairAccessible, Wifi, WebShop, Filtering, } class FeatureDto implements IConvertible { FeatureType? slug; String? label; FeatureDto({this.slug,this.label}); FeatureDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slug = JsonConverters.fromJson(json['slug'],'FeatureType',context!); label = json['label']; return this; } Map toJson() => { 'slug': JsonConverters.toJson(slug,'FeatureType',context!), 'label': label }; getTypeName() => "FeatureDto"; TypeContext? context = _ctx; } class CategoryTreeWithFeaturesDto implements IConvertible { int? id; String? slug; String? absoluteSlug; String? name; List? children = []; List? featureTypes = []; CategoryTreeWithFeaturesDto({this.id,this.slug,this.absoluteSlug,this.name,this.children,this.featureTypes}); CategoryTreeWithFeaturesDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; slug = json['slug']; absoluteSlug = json['absoluteSlug']; name = json['name']; children = JsonConverters.fromJson(json['children'],'List',context!); featureTypes = JsonConverters.fromJson(json['featureTypes'],'List',context!); return this; } Map toJson() => { 'id': id, 'slug': slug, 'absoluteSlug': absoluteSlug, 'name': name, 'children': JsonConverters.toJson(children,'List',context!), 'featureTypes': JsonConverters.toJson(featureTypes,'List',context!) }; getTypeName() => "CategoryTreeWithFeaturesDto"; TypeContext? context = _ctx; } class GetCategoryTreeResponse implements IConvertible { List? tree = []; GetCategoryTreeResponse({this.tree}); GetCategoryTreeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { tree = JsonConverters.fromJson(json['tree'],'List',context!); return this; } Map toJson() => { 'tree': JsonConverters.toJson(tree,'List',context!) }; getTypeName() => "GetCategoryTreeResponse"; TypeContext? context = _ctx; } // @Route("/category/get_tree", "GET") class GetCategoryTreeRequest implements IReturn, IGet, IConvertible { String? absoluteSlug; GetCategoryTreeRequest({this.absoluteSlug}); GetCategoryTreeRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { absoluteSlug = json['absoluteSlug']; return this; } Map toJson() => { 'absoluteSlug': absoluteSlug }; createResponse() => GetCategoryTreeResponse(); getResponseTypeName() => "GetCategoryTreeResponse"; getTypeName() => "GetCategoryTreeRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'FeatureType': TypeInfo(TypeOf.Enum, enumValues:FeatureType.values), 'FeatureDto': TypeInfo(TypeOf.Class, create:() => FeatureDto()), 'CategoryTreeWithFeaturesDto': TypeInfo(TypeOf.Class, create:() => CategoryTreeWithFeaturesDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCategoryTreeResponse': TypeInfo(TypeOf.Class, create:() => GetCategoryTreeResponse()), 'GetCategoryTreeRequest': TypeInfo(TypeOf.Class, create:() => GetCategoryTreeRequest()), });