/* Options: Date: 2025-12-06 07:01:28 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://backoffice-api.brovs.com //GlobalNamespace: BackofficeApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetCategoryTreeRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; 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 FeatureTypeDto implements IConvertible { FeatureType? slug; String? label; FeatureTypeDto({this.slug,this.label}); FeatureTypeDto.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() => "FeatureTypeDto"; TypeContext? context = _ctx; } class BackofficeCategoryTreeDto implements IConvertible { int? id; String? slug; String? absoluteSlug; String? name; String? imageUrl; String? allImageUrl; String? defaultPlaceImageUrl; List? children = []; List? featureTypes = []; BackofficeCategoryTreeDto({this.id,this.slug,this.absoluteSlug,this.name,this.imageUrl,this.allImageUrl,this.defaultPlaceImageUrl,this.children,this.featureTypes}); BackofficeCategoryTreeDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; slug = json['slug']; absoluteSlug = json['absoluteSlug']; name = json['name']; imageUrl = json['imageUrl']; allImageUrl = json['allImageUrl']; defaultPlaceImageUrl = json['defaultPlaceImageUrl']; 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, 'imageUrl': imageUrl, 'allImageUrl': allImageUrl, 'defaultPlaceImageUrl': defaultPlaceImageUrl, 'children': JsonConverters.toJson(children,'List',context!), 'featureTypes': JsonConverters.toJson(featureTypes,'List',context!) }; getTypeName() => "BackofficeCategoryTreeDto"; 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: 'BackofficeApi', types: { 'FeatureType': TypeInfo(TypeOf.Enum, enumValues:FeatureType.values), 'FeatureTypeDto': TypeInfo(TypeOf.Class, create:() => FeatureTypeDto()), 'BackofficeCategoryTreeDto': TypeInfo(TypeOf.Class, create:() => BackofficeCategoryTreeDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCategoryTreeResponse': TypeInfo(TypeOf.Class, create:() => GetCategoryTreeResponse()), 'GetCategoryTreeRequest': TypeInfo(TypeOf.Class, create:() => GetCategoryTreeRequest()), });