/* Options: Date: 2025-12-06 07:05:05 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://business-api.brovs.com //GlobalNamespace: BusinessApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PlaceDeleteImageRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; abstract class IHasPlaceId { int? placeId; } 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 PlaceDeleteImageResponse implements IConvertible { CloudBlob? deletedImage; PlaceDeleteImageResponse({this.deletedImage}); PlaceDeleteImageResponse.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() => "PlaceDeleteImageResponse"; TypeContext? context = _ctx; } // @Route("/place/delete_image", "POST") class PlaceDeleteImageRequest implements IReturn, IPost, IHasPlaceId, IConvertible { int? placeId; PlaceDeleteImageRequest({this.placeId}); PlaceDeleteImageRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { placeId = json['placeId']; return this; } Map toJson() => { 'placeId': placeId }; createResponse() => PlaceDeleteImageResponse(); getResponseTypeName() => "PlaceDeleteImageResponse"; getTypeName() => "PlaceDeleteImageRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'IHasPlaceId': TypeInfo(TypeOf.Interface), 'DeploymentSlot': TypeInfo(TypeOf.Enum, enumValues:DeploymentSlot.values), 'CloudBlob': TypeInfo(TypeOf.Class, create:() => CloudBlob()), 'PlaceDeleteImageResponse': TypeInfo(TypeOf.Class, create:() => PlaceDeleteImageResponse()), 'PlaceDeleteImageRequest': TypeInfo(TypeOf.Class, create:() => PlaceDeleteImageRequest()), });