/* Options: Date: 2025-12-06 07:02:46 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: GetRootCategoriesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; import 'package:servicestack/servicestack.dart'; class CategoryDto implements IConvertible { int? id; String? name; String? slug; String? absoluteSlug; int? parentId; String? state; int? position; CategoryDto({this.id,this.name,this.slug,this.absoluteSlug,this.parentId,this.state,this.position}); CategoryDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; slug = json['slug']; absoluteSlug = json['absoluteSlug']; parentId = json['parentId']; state = json['state']; position = json['position']; return this; } Map toJson() => { 'id': id, 'name': name, 'slug': slug, 'absoluteSlug': absoluteSlug, 'parentId': parentId, 'state': state, 'position': position }; getTypeName() => "CategoryDto"; TypeContext? context = _ctx; } class GetRootCategoriesResponse implements IConvertible { List? categories = []; GetRootCategoriesResponse({this.categories}); GetRootCategoriesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { categories = JsonConverters.fromJson(json['categories'],'List',context!); return this; } Map toJson() => { 'categories': JsonConverters.toJson(categories,'List',context!) }; getTypeName() => "GetRootCategoriesResponse"; TypeContext? context = _ctx; } // @Route("/category/get_roots", "GET") class GetRootCategoriesRequest implements IReturn, IGet, IConvertible { GetRootCategoriesRequest(); GetRootCategoriesRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetRootCategoriesResponse(); getResponseTypeName() => "GetRootCategoriesResponse"; getTypeName() => "GetRootCategoriesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BackofficeApi', types: { 'CategoryDto': TypeInfo(TypeOf.Class, create:() => CategoryDto()), 'GetRootCategoriesResponse': TypeInfo(TypeOf.Class, create:() => GetRootCategoriesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetRootCategoriesRequest': TypeInfo(TypeOf.Class, create:() => GetRootCategoriesRequest()), });