/* Options: Date: 2025-12-06 07:05:13 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: DeleteCategoryImageRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; import 'package:servicestack/servicestack.dart'; enum DeploymentSlot { Production, Qa, Unstable, Test, Local, Docker, } class CloudBlob implements IConvertible { String? publicUrl; String? key; DeploymentSlot? environment; String? bucket; String? identifyingSuffix; String? mimeType; CloudBlob({this.publicUrl,this.key,this.environment,this.bucket,this.identifyingSuffix,this.mimeType}); CloudBlob.fromJson(Map json) { fromMap(json); } fromMap(Map json) { publicUrl = json['publicUrl']; key = json['key']; environment = JsonConverters.fromJson(json['environment'],'DeploymentSlot',context!); bucket = json['bucket']; identifyingSuffix = json['identifyingSuffix']; mimeType = json['mimeType']; return this; } Map toJson() => { 'publicUrl': publicUrl, 'key': key, 'environment': JsonConverters.toJson(environment,'DeploymentSlot',context!), 'bucket': bucket, 'identifyingSuffix': identifyingSuffix, 'mimeType': mimeType }; getTypeName() => "CloudBlob"; TypeContext? context = _ctx; } class DeleteCategoryImageResponse implements IConvertible { CloudBlob? deletedImage; DeleteCategoryImageResponse({this.deletedImage}); DeleteCategoryImageResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { deletedImage = JsonConverters.fromJson(json['deletedImage'],'CloudBlob',context!); return this; } Map toJson() => { 'deletedImage': JsonConverters.toJson(deletedImage,'CloudBlob',context!) }; getTypeName() => "DeleteCategoryImageResponse"; TypeContext? context = _ctx; } // @Route("/category/delete_image", "DELETE") class DeleteCategoryImageRequest implements IReturn, IDelete, IConvertible { int? categoryId; DeleteCategoryImageRequest({this.categoryId}); DeleteCategoryImageRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { categoryId = json['categoryId']; return this; } Map toJson() => { 'categoryId': categoryId }; createResponse() => DeleteCategoryImageResponse(); getResponseTypeName() => "DeleteCategoryImageResponse"; getTypeName() => "DeleteCategoryImageRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BackofficeApi', types: { 'DeploymentSlot': TypeInfo(TypeOf.Enum, enumValues:DeploymentSlot.values), 'CloudBlob': TypeInfo(TypeOf.Class, create:() => CloudBlob()), 'DeleteCategoryImageResponse': TypeInfo(TypeOf.Class, create:() => DeleteCategoryImageResponse()), 'DeleteCategoryImageRequest': TypeInfo(TypeOf.Class, create:() => DeleteCategoryImageRequest()), });