/* Options: Date: 2025-12-06 07:06:18 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: UpdateBrandRequest.* //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 UpdateBrandResponse implements IConvertible { BackofficeBrandDto? brand; UpdateBrandResponse({this.brand}); UpdateBrandResponse.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() => "UpdateBrandResponse"; TypeContext? context = _ctx; } // @Route("/brand/update", "PUT") class UpdateBrandRequest implements IReturn, IPut, IConvertible { int? id; int? definedByRootCategoryId; String? name; bool? selectedForEditingInBackoffice; UpdateBrandRequest({this.id,this.definedByRootCategoryId,this.name,this.selectedForEditingInBackoffice}); UpdateBrandRequest.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 }; createResponse() => UpdateBrandResponse(); getResponseTypeName() => "UpdateBrandResponse"; getTypeName() => "UpdateBrandRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BackofficeApi', types: { 'BackofficeBrandDto': TypeInfo(TypeOf.Class, create:() => BackofficeBrandDto()), 'UpdateBrandResponse': TypeInfo(TypeOf.Class, create:() => UpdateBrandResponse()), 'UpdateBrandRequest': TypeInfo(TypeOf.Class, create:() => UpdateBrandRequest()), });