/* Options: Date: 2025-12-06 08:54:55 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: LotteryUploadImageRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; import 'package:servicestack/servicestack.dart'; class ImageUrls implements IConvertible { String? preview; String? small; String? medium; String? large; ImageUrls({this.preview,this.small,this.medium,this.large}); ImageUrls.fromJson(Map json) { fromMap(json); } fromMap(Map json) { preview = json['preview']; small = json['small']; medium = json['medium']; large = json['large']; return this; } Map toJson() => { 'preview': preview, 'small': small, 'medium': medium, 'large': large }; getTypeName() => "ImageUrls"; TypeContext? context = _ctx; } class LotteryImageDto implements IConvertible { int? id; ImageUrls? imageUrl; int? position; LotteryImageDto({this.id,this.imageUrl,this.position}); LotteryImageDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; imageUrl = JsonConverters.fromJson(json['imageUrl'],'ImageUrls',context!); position = json['position']; return this; } Map toJson() => { 'id': id, 'imageUrl': JsonConverters.toJson(imageUrl,'ImageUrls',context!), 'position': position }; getTypeName() => "LotteryImageDto"; TypeContext? context = _ctx; } class LotteryUploadImageResponse implements IConvertible { LotteryImageDto? addedLotteryImage; LotteryUploadImageResponse({this.addedLotteryImage}); LotteryUploadImageResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { addedLotteryImage = JsonConverters.fromJson(json['addedLotteryImage'],'LotteryImageDto',context!); return this; } Map toJson() => { 'addedLotteryImage': JsonConverters.toJson(addedLotteryImage,'LotteryImageDto',context!) }; getTypeName() => "LotteryUploadImageResponse"; TypeContext? context = _ctx; } // @Route("/lottery/image/upload", "POST") class LotteryUploadImageRequest implements IReturn, IPost, IConvertible { int? lotteryId; String? base64EncodedImage; LotteryUploadImageRequest({this.lotteryId,this.base64EncodedImage}); LotteryUploadImageRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { lotteryId = json['lotteryId']; base64EncodedImage = json['base64EncodedImage']; return this; } Map toJson() => { 'lotteryId': lotteryId, 'base64EncodedImage': base64EncodedImage }; createResponse() => LotteryUploadImageResponse(); getResponseTypeName() => "LotteryUploadImageResponse"; getTypeName() => "LotteryUploadImageRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BackofficeApi', types: { 'ImageUrls': TypeInfo(TypeOf.Class, create:() => ImageUrls()), 'LotteryImageDto': TypeInfo(TypeOf.Class, create:() => LotteryImageDto()), 'LotteryUploadImageResponse': TypeInfo(TypeOf.Class, create:() => LotteryUploadImageResponse()), 'LotteryUploadImageRequest': TypeInfo(TypeOf.Class, create:() => LotteryUploadImageRequest()), });