/* Options: Date: 2025-12-06 07:05:26 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: AddBrandRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; import 'package:servicestack/servicestack.dart'; class BackofficeBrandDto implements IConvertible { int? id; int? definedByRootCategoryId; String? name; bool? selectedForEditingInBackoffice; BackofficeBrandDto({this.id,this.definedByRootCategoryId,this.name,this.selectedForEditingInBackoffice}); BackofficeBrandDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; definedByRootCategoryId = json['definedByRootCategoryId']; name = json['name']; selectedForEditingInBackoffice = json['selectedForEditingInBackoffice']; return this; } Map toJson() => { 'id': id, 'definedByRootCategoryId': definedByRootCategoryId, 'name': name, 'selectedForEditingInBackoffice': selectedForEditingInBackoffice }; getTypeName() => "BackofficeBrandDto"; TypeContext? context = _ctx; } class AddBrandResponse implements IConvertible { BackofficeBrandDto? brand; AddBrandResponse({this.brand}); AddBrandResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brand = JsonConverters.fromJson(json['brand'],'BackofficeBrandDto',context!); return this; } Map toJson() => { 'brand': JsonConverters.toJson(brand,'BackofficeBrandDto',context!) }; getTypeName() => "AddBrandResponse"; TypeContext? context = _ctx; } // @Route("/brand/add", "POST") class AddBrandRequest implements IReturn, IPost, IConvertible { int? definedByRootCategoryId; String? name; bool? selectedForEditingInBackoffice; AddBrandRequest({this.definedByRootCategoryId,this.name,this.selectedForEditingInBackoffice}); AddBrandRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { definedByRootCategoryId = json['definedByRootCategoryId']; name = json['name']; selectedForEditingInBackoffice = json['selectedForEditingInBackoffice']; return this; } Map toJson() => { 'definedByRootCategoryId': definedByRootCategoryId, 'name': name, 'selectedForEditingInBackoffice': selectedForEditingInBackoffice }; createResponse() => AddBrandResponse(); getResponseTypeName() => "AddBrandResponse"; getTypeName() => "AddBrandRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BackofficeApi', types: { 'BackofficeBrandDto': TypeInfo(TypeOf.Class, create:() => BackofficeBrandDto()), 'AddBrandResponse': TypeInfo(TypeOf.Class, create:() => AddBrandResponse()), 'AddBrandRequest': TypeInfo(TypeOf.Class, create:() => AddBrandRequest()), });