/* Options: Date: 2026-03-31 23:02:01 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dogw.klokgroep.nl/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddUploadFile.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @DataContract class MetaDataField implements IConvertible { // @DataMember String? ID; // @DataMember String? DocumentVeldID; // @DataMember String? Name; // @DataMember String? Label; // @DataMember String? Datatype; // @DataMember String? PrintLabel; // @DataMember String? Entity; // @DataMember String? PrintValue; // @DataMember String? RegistrationValue; // @DataMember String? SPSiteColumnName; // @DataMember String? ShadowName; // @DataMember String? ShadowDatatype; // @DataMember String? ShadowSPSiteColumnName; // @DataMember String? ShadowSPSiteColumnRegistrationValue; // @DataMember String? ShadowRegistrationValue; // @DataMember bool? IsKeyField; // @DataMember bool? KopierenBijNieuweVersie; MetaDataField({this.ID,this.DocumentVeldID,this.Name,this.Label,this.Datatype,this.PrintLabel,this.Entity,this.PrintValue,this.RegistrationValue,this.SPSiteColumnName,this.ShadowName,this.ShadowDatatype,this.ShadowSPSiteColumnName,this.ShadowSPSiteColumnRegistrationValue,this.ShadowRegistrationValue,this.IsKeyField,this.KopierenBijNieuweVersie}); MetaDataField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; DocumentVeldID = json['DocumentVeldID']; Name = json['Name']; Label = json['Label']; Datatype = json['Datatype']; PrintLabel = json['PrintLabel']; Entity = json['Entity']; PrintValue = json['PrintValue']; RegistrationValue = json['RegistrationValue']; SPSiteColumnName = json['SPSiteColumnName']; ShadowName = json['ShadowName']; ShadowDatatype = json['ShadowDatatype']; ShadowSPSiteColumnName = json['ShadowSPSiteColumnName']; ShadowSPSiteColumnRegistrationValue = json['ShadowSPSiteColumnRegistrationValue']; ShadowRegistrationValue = json['ShadowRegistrationValue']; IsKeyField = json['IsKeyField']; KopierenBijNieuweVersie = json['KopierenBijNieuweVersie']; return this; } Map toJson() => { 'ID': ID, 'DocumentVeldID': DocumentVeldID, 'Name': Name, 'Label': Label, 'Datatype': Datatype, 'PrintLabel': PrintLabel, 'Entity': Entity, 'PrintValue': PrintValue, 'RegistrationValue': RegistrationValue, 'SPSiteColumnName': SPSiteColumnName, 'ShadowName': ShadowName, 'ShadowDatatype': ShadowDatatype, 'ShadowSPSiteColumnName': ShadowSPSiteColumnName, 'ShadowSPSiteColumnRegistrationValue': ShadowSPSiteColumnRegistrationValue, 'ShadowRegistrationValue': ShadowRegistrationValue, 'IsKeyField': IsKeyField, 'KopierenBijNieuweVersie': KopierenBijNieuweVersie }; getTypeName() => "MetaDataField"; TypeContext? context = _ctx; } abstract class IInformationMessages { } enum MessageType { Information, Warning, Error, Success, } abstract class InformationMessageBase implements IInformationMessage { MessageType? Type; String? Summary; String? FullMessage; String? FieldName; bool? KeepOpen; InformationMessageBase({this.Type,this.Summary,this.FullMessage,this.FieldName,this.KeepOpen}); InformationMessageBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Type = JsonConverters.fromJson(json['Type'],'MessageType',context!); Summary = json['Summary']; FullMessage = json['FullMessage']; FieldName = json['FieldName']; KeepOpen = json['KeepOpen']; return this; } Map toJson() => { 'Type': JsonConverters.toJson(Type,'MessageType',context!), 'Summary': Summary, 'FullMessage': FullMessage, 'FieldName': FieldName, 'KeepOpen': KeepOpen }; getTypeName() => "InformationMessageBase"; TypeContext? context = _ctx; } class InformationMessages extends ListBase implements IInformationMessages, IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; InformationMessageBase operator [](int index) => l[index]; void operator []=(int index, InformationMessageBase value) { l[index] = value; } InformationMessages(); InformationMessages.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "InformationMessages"; TypeContext? context = _ctx; } abstract class IInformationMessage { // @DataMember MessageType? Type; // @DataMember String? Summary; // @DataMember String? FullMessage; // @DataMember String? FieldName; // @DataMember bool? KeepOpen; } // @DataContract class AddUploadFileResponse implements IConvertible { // @DataMember String? DocumentId; // @DataMember int? DocumentUploadId; // @DataMember String? DocumentNr; // @DataMember InformationMessages? Messages; AddUploadFileResponse({this.DocumentId,this.DocumentUploadId,this.DocumentNr,this.Messages}); AddUploadFileResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DocumentId = json['DocumentId']; DocumentUploadId = json['DocumentUploadId']; DocumentNr = json['DocumentNr']; Messages = JsonConverters.fromJson(json['Messages'],'InformationMessages',context!); return this; } Map toJson() => { 'DocumentId': DocumentId, 'DocumentUploadId': DocumentUploadId, 'DocumentNr': DocumentNr, 'Messages': JsonConverters.toJson(Messages,'InformationMessages',context!) }; getTypeName() => "AddUploadFileResponse"; TypeContext? context = _ctx; } /** * Add a uploadfile with metadata. */ // @Route("/DMS/AddUploadFile", "POST") // @Api(Description="Add a uploadfile with metadata.") class AddUploadFile implements IReturn, IConvertible, IPost { /** * Registration profile ID */ // @ApiMember(Description="Registration profile ID", IsRequired=true) String? RegistrationProfileID; /** * Registration navigation path */ // @ApiMember(Description="Registration navigation path") String? NavigationPath; /** * File name */ // @ApiMember(Description="File name", IsRequired=true) String? FileName; /** * File date */ // @ApiMember(Description="File date", IsRequired=true) DateTime? FileDate; /** * File content */ // @ApiMember(Description="File content", IsRequired=true) Uint8List? FileContent = []; /** * File description */ // @ApiMember(Description="File description", IsRequired=true) String? Description; /** * Keep document in uploads (false; register immediately) */ // @ApiMember(Description="Keep document in uploads (false; register immediately)") bool? DocumentUpload; /** * Source of the file */ // @ApiMember(Description="Source of the file") String? Source; /** * MetaDataFields */ // @ApiMember(Description="MetaDataFields") List? MetaDataFields; /** * Document ID */ // @ApiMember(Description="Document ID") String? DocumentID; /** * Main Document ID */ // @ApiMember(Description="Main Document ID") String? MainDocumentID; /** * Sub Document IDs */ // @ApiMember(Description="Sub Document IDs") List? SubDocumentIDs; AddUploadFile({this.RegistrationProfileID,this.NavigationPath,this.FileName,this.FileDate,this.FileContent,this.Description,this.DocumentUpload,this.Source,this.MetaDataFields,this.DocumentID,this.MainDocumentID,this.SubDocumentIDs}); AddUploadFile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RegistrationProfileID = json['RegistrationProfileID']; NavigationPath = json['NavigationPath']; FileName = json['FileName']; FileDate = JsonConverters.fromJson(json['FileDate'],'DateTime',context!); FileContent = JsonConverters.fromJson(json['FileContent'],'Uint8List',context!); Description = json['Description']; DocumentUpload = json['DocumentUpload']; Source = json['Source']; MetaDataFields = JsonConverters.fromJson(json['MetaDataFields'],'List',context!); DocumentID = json['DocumentID']; MainDocumentID = json['MainDocumentID']; SubDocumentIDs = JsonConverters.fromJson(json['SubDocumentIDs'],'List',context!); return this; } Map toJson() => { 'RegistrationProfileID': RegistrationProfileID, 'NavigationPath': NavigationPath, 'FileName': FileName, 'FileDate': JsonConverters.toJson(FileDate,'DateTime',context!), 'FileContent': JsonConverters.toJson(FileContent,'Uint8List',context!), 'Description': Description, 'DocumentUpload': DocumentUpload, 'Source': Source, 'MetaDataFields': JsonConverters.toJson(MetaDataFields,'List',context!), 'DocumentID': DocumentID, 'MainDocumentID': MainDocumentID, 'SubDocumentIDs': JsonConverters.toJson(SubDocumentIDs,'List',context!) }; createResponse() => AddUploadFileResponse(); getResponseTypeName() => "AddUploadFileResponse"; getTypeName() => "AddUploadFile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dogw.klokgroep.nl', types: { 'MetaDataField': TypeInfo(TypeOf.Class, create:() => MetaDataField()), 'IInformationMessages': TypeInfo(TypeOf.Interface), 'MessageType': TypeInfo(TypeOf.Enum, enumValues:MessageType.values), 'InformationMessageBase': TypeInfo(TypeOf.AbstractClass), 'InformationMessages': TypeInfo(TypeOf.Class, create:() => InformationMessages()), 'IInformationMessage': TypeInfo(TypeOf.Interface), 'AddUploadFileResponse': TypeInfo(TypeOf.Class, create:() => AddUploadFileResponse()), 'AddUploadFile': TypeInfo(TypeOf.Class, create:() => AddUploadFile()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'List': TypeInfo(TypeOf.Class, create:() => []), });