/* Options: Date: 2025-12-06 06:41:01 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: LookupBrandsByRootCategoryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; 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 LookupBrandsByRootCategoryResponse implements IConvertible { List? brands = []; LookupBrandsByRootCategoryResponse({this.brands}); LookupBrandsByRootCategoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brands = JsonConverters.fromJson(json['brands'],'List',context!); return this; } Map toJson() => { 'brands': JsonConverters.toJson(brands,'List',context!) }; getTypeName() => "LookupBrandsByRootCategoryResponse"; TypeContext? context = _ctx; } // @Route("/brand/lookup_by_rootcategory", "GET") class LookupBrandsByRootCategoryRequest implements IReturn, IGet, IConvertible { String? query; int? rootCategoryId; int? size; int? offset; LookupBrandsByRootCategoryRequest({this.query,this.rootCategoryId,this.size,this.offset}); LookupBrandsByRootCategoryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { query = json['query']; rootCategoryId = json['rootCategoryId']; size = json['size']; offset = json['offset']; return this; } Map toJson() => { 'query': query, 'rootCategoryId': rootCategoryId, 'size': size, 'offset': offset }; createResponse() => LookupBrandsByRootCategoryResponse(); getResponseTypeName() => "LookupBrandsByRootCategoryResponse"; getTypeName() => "LookupBrandsByRootCategoryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'BrandDto': TypeInfo(TypeOf.Class, create:() => BrandDto()), 'LookupBrandsByRootCategoryResponse': TypeInfo(TypeOf.Class, create:() => LookupBrandsByRootCategoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LookupBrandsByRootCategoryRequest': TypeInfo(TypeOf.Class, create:() => LookupBrandsByRootCategoryRequest()), });