/* Options: Date: 2024-09-19 22:59:50 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://initiation.sirva.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ClientDownloadRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class DocumentRequestBase { /** * ExternalID */ // @ApiMember(Description="ExternalID", ExcludeInSchema=true, IsRequired=true, ParameterType="path") String? ExternalId; DocumentRequestBase({this.ExternalId}); DocumentRequestBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ExternalId = json['ExternalId']; return this; } Map toJson() => { 'ExternalId': ExternalId }; getTypeName() => "DocumentRequestBase"; TypeContext? context = _ctx; } abstract class ResponseBase { String? Message; bool? IsSuccess; ResponseBase({this.Message,this.IsSuccess}); ResponseBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Message = json['Message']; IsSuccess = json['IsSuccess']; return this; } Map toJson() => { 'Message': Message, 'IsSuccess': IsSuccess }; getTypeName() => "ResponseBase"; TypeContext? context = _ctx; } class ClientDownloadResponse extends ResponseBase implements IConvertible { String? FileName; Uint8List? Stream; ClientDownloadResponse({this.FileName,this.Stream}); ClientDownloadResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); FileName = json['FileName']; Stream = JsonConverters.fromJson(json['Stream'],'Uint8List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'FileName': FileName, 'Stream': JsonConverters.toJson(Stream,'Uint8List',context!) }); getTypeName() => "ClientDownloadResponse"; TypeContext? context = _ctx; } // @Route("/documents/download", "POST, PUT") class ClientDownloadRequest extends DocumentRequestBase implements IReturn, IConvertible, IPost { String? FileName; /** * Month */ // @ApiMember(Description="Month", ExcludeInSchema=true, IsRequired=true, ParameterType="path") int? Month; /** * Day */ // @ApiMember(Description="Day", ExcludeInSchema=true, IsRequired=true, ParameterType="path") int? Day; ClientDownloadRequest({this.FileName,this.Month,this.Day}); ClientDownloadRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); FileName = json['FileName']; Month = json['Month']; Day = json['Day']; return this; } Map toJson() => super.toJson()..addAll({ 'FileName': FileName, 'Month': Month, 'Day': Day }); createResponse() => ClientDownloadResponse(); getResponseTypeName() => "ClientDownloadResponse"; getTypeName() => "ClientDownloadRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'initiation.sirva.com', types: { 'DocumentRequestBase': TypeInfo(TypeOf.AbstractClass), 'ResponseBase': TypeInfo(TypeOf.AbstractClass), 'ClientDownloadResponse': TypeInfo(TypeOf.Class, create:() => ClientDownloadResponse()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'ClientDownloadRequest': TypeInfo(TypeOf.Class, create:() => ClientDownloadRequest()), });