/* Options: Date: 2026-05-09 19:52:28 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://chienbinhdevias-admin-api-sandbox.adnx.vn //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UploadS3FileRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class HttpFile implements IConvertible { String? name; String? fileName; int? contentLength; String? contentType; Uint8List? inputStream; HttpFile({this.name,this.fileName,this.contentLength,this.contentType,this.inputStream}); HttpFile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; fileName = json['fileName']; contentLength = json['contentLength']; contentType = json['contentType']; inputStream = JsonConverters.fromJson(json['inputStream'],'Uint8List',context!); return this; } Map toJson() => { 'name': name, 'fileName': fileName, 'contentLength': contentLength, 'contentType': contentType, 'inputStream': JsonConverters.toJson(inputStream,'Uint8List',context!) }; getTypeName() => "HttpFile"; TypeContext? context = _ctx; } class BaseResponse implements IResponseRequest, IConvertible { int? code; String? message; String? data; BaseResponse({this.code,this.message,this.data}); BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; message = json['message']; data = json['data']; return this; } Map toJson() => { 'code': code, 'message': message, 'data': data }; getTypeName() => "BaseResponse<$String>"; TypeContext? context = _ctx; } // @Route("/s3/files", "POST") class UploadS3FileRequest implements IReturn>, IConvertible, IPost { String? path; HttpFile? file; UploadS3FileRequest({this.path,this.file}); UploadS3FileRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { path = json['path']; file = JsonConverters.fromJson(json['file'],'HttpFile',context!); return this; } Map toJson() => { 'path': path, 'file': JsonConverters.toJson(file,'HttpFile',context!) }; createResponse() => BaseResponse(); getResponseTypeName() => "BaseResponse"; getTypeName() => "UploadS3FileRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'chienbinhdevias_admin_api_sandbox.adnx.vn', types: { 'HttpFile': TypeInfo(TypeOf.Class, create:() => HttpFile()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'UploadS3FileRequest': TypeInfo(TypeOf.Class, create:() => UploadS3FileRequest()), });