/* Options: Date: 2026-06-13 03:56:40 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UploadRfpAttachment.* //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 UploadAttachmentResponse implements IConvertible { ResponseStatus? ResponseStatus; String? AttachmentId; int? ProjectId; String? FileType; String? FileName; String? ContentType; int? ContentLength; DateTime? CreatedUtc; UploadAttachmentResponse({this.ResponseStatus,this.AttachmentId,this.ProjectId,this.FileType,this.FileName,this.ContentType,this.ContentLength,this.CreatedUtc}); UploadAttachmentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); AttachmentId = json['AttachmentId']; ProjectId = json['ProjectId']; FileType = json['FileType']; FileName = json['FileName']; ContentType = json['ContentType']; ContentLength = json['ContentLength']; CreatedUtc = JsonConverters.fromJson(json['CreatedUtc'],'DateTime',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'AttachmentId': AttachmentId, 'ProjectId': ProjectId, 'FileType': FileType, 'FileName': FileName, 'ContentType': ContentType, 'ContentLength': ContentLength, 'CreatedUtc': JsonConverters.toJson(CreatedUtc,'DateTime',context!) }; getTypeName() => "UploadAttachmentResponse"; TypeContext? context = _ctx; } // @Route("/v1/project/rfp/attachment", "POST") class UploadRfpAttachment implements IReturn, IConvertible, IPost { HttpFile? File; UploadRfpAttachment({this.File}); UploadRfpAttachment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { File = JsonConverters.fromJson(json['File'],'HttpFile',context!); return this; } Map toJson() => { 'File': JsonConverters.toJson(File,'HttpFile',context!) }; createResponse() => UploadAttachmentResponse(); getResponseTypeName() => "UploadAttachmentResponse"; getTypeName() => "UploadRfpAttachment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'HttpFile': TypeInfo(TypeOf.Class, create:() => HttpFile()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'UploadAttachmentResponse': TypeInfo(TypeOf.Class, create:() => UploadAttachmentResponse()), 'UploadRfpAttachment': TypeInfo(TypeOf.Class, create:() => UploadRfpAttachment()), });