/* Options: Date: 2025-12-06 06:29:55 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: PlaceGetSelectedBrandsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; abstract class IHasPlaceId { int? placeId; } class BrandDto implements IConvertible { int? id; int? definedByRootCategoryId; String? name; BrandDto({this.id,this.definedByRootCategoryId,this.name}); BrandDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; definedByRootCategoryId = json['definedByRootCategoryId']; name = json['name']; return this; } Map toJson() => { 'id': id, 'definedByRootCategoryId': definedByRootCategoryId, 'name': name }; getTypeName() => "BrandDto"; TypeContext? context = _ctx; } class CategoryDto implements IConvertible { int? id; String? slug; String? absoluteSlug; String? name; int? parentId; CategoryDto({this.id,this.slug,this.absoluteSlug,this.name,this.parentId}); CategoryDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; slug = json['slug']; absoluteSlug = json['absoluteSlug']; name = json['name']; parentId = json['parentId']; return this; } Map toJson() => { 'id': id, 'slug': slug, 'absoluteSlug': absoluteSlug, 'name': name, 'parentId': parentId }; getTypeName() => "CategoryDto"; TypeContext? context = _ctx; } class BrandWithCategoriesDto extends BrandDto implements IConvertible { List? categories = []; BrandWithCategoriesDto({this.categories}); BrandWithCategoriesDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); categories = JsonConverters.fromJson(json['categories'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'categories': JsonConverters.toJson(categories,'List',context!) }); getTypeName() => "BrandWithCategoriesDto"; TypeContext? context = _ctx; } class PlaceCustomBrandWithCategoriesDto implements IConvertible { int? id; int? definedByPlaceId; String? label; List? categories = []; PlaceCustomBrandWithCategoriesDto({this.id,this.definedByPlaceId,this.label,this.categories}); PlaceCustomBrandWithCategoriesDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; definedByPlaceId = json['definedByPlaceId']; label = json['label']; categories = JsonConverters.fromJson(json['categories'],'List',context!); return this; } Map toJson() => { 'id': id, 'definedByPlaceId': definedByPlaceId, 'label': label, 'categories': JsonConverters.toJson(categories,'List',context!) }; getTypeName() => "PlaceCustomBrandWithCategoriesDto"; TypeContext? context = _ctx; } class PlaceGetSelectedBrandsResponse implements IConvertible { List? brandsWithCategories = []; List? customBrandsWithCategories = []; PlaceGetSelectedBrandsResponse({this.brandsWithCategories,this.customBrandsWithCategories}); PlaceGetSelectedBrandsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brandsWithCategories = JsonConverters.fromJson(json['brandsWithCategories'],'List',context!); customBrandsWithCategories = JsonConverters.fromJson(json['customBrandsWithCategories'],'List',context!); return this; } Map toJson() => { 'brandsWithCategories': JsonConverters.toJson(brandsWithCategories,'List',context!), 'customBrandsWithCategories': JsonConverters.toJson(customBrandsWithCategories,'List',context!) }; getTypeName() => "PlaceGetSelectedBrandsResponse"; TypeContext? context = _ctx; } // @Route("/place/get_selected_brands", "GET") class PlaceGetSelectedBrandsRequest implements IReturn, IGet, IHasPlaceId, IConvertible { int? placeId; PlaceGetSelectedBrandsRequest({this.placeId}); PlaceGetSelectedBrandsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { placeId = json['placeId']; return this; } Map toJson() => { 'placeId': placeId }; createResponse() => PlaceGetSelectedBrandsResponse(); getResponseTypeName() => "PlaceGetSelectedBrandsResponse"; getTypeName() => "PlaceGetSelectedBrandsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'IHasPlaceId': TypeInfo(TypeOf.Interface), 'BrandDto': TypeInfo(TypeOf.Class, create:() => BrandDto()), 'CategoryDto': TypeInfo(TypeOf.Class, create:() => CategoryDto()), 'BrandWithCategoriesDto': TypeInfo(TypeOf.Class, create:() => BrandWithCategoriesDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PlaceCustomBrandWithCategoriesDto': TypeInfo(TypeOf.Class, create:() => PlaceCustomBrandWithCategoriesDto()), 'PlaceGetSelectedBrandsResponse': TypeInfo(TypeOf.Class, create:() => PlaceGetSelectedBrandsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PlaceGetSelectedBrandsRequest': TypeInfo(TypeOf.Class, create:() => PlaceGetSelectedBrandsRequest()), });