/* Options: Date: 2025-12-06 07:49:54 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: AddCategoryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; import 'package:servicestack/servicestack.dart'; class AddCategoryResponse implements IConvertible { int? id; AddCategoryResponse({this.id}); AddCategoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; getTypeName() => "AddCategoryResponse"; TypeContext? context = _ctx; } // @Route("/category/add", "POST") class AddCategoryRequest implements IReturn, IPost, IConvertible { String? slug; String? title; int? parentId; AddCategoryRequest({this.slug,this.title,this.parentId}); AddCategoryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slug = json['slug']; title = json['title']; parentId = json['parentId']; return this; } Map toJson() => { 'slug': slug, 'title': title, 'parentId': parentId }; createResponse() => AddCategoryResponse(); getResponseTypeName() => "AddCategoryResponse"; getTypeName() => "AddCategoryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BackofficeApi', types: { 'AddCategoryResponse': TypeInfo(TypeOf.Class, create:() => AddCategoryResponse()), 'AddCategoryRequest': TypeInfo(TypeOf.Class, create:() => AddCategoryRequest()), });