/* Options: Date: 2024-10-18 04:26:56 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://digiofficeapigateway.deltares.nl/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UploadFile.* //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 UploadFileResponse implements IConvertible { // @DataMember String? DocumentId; // @DataMember int? DocumentUploadId; // @DataMember String? DocumentNr; // @DataMember InformationMessages? Messages; UploadFileResponse({this.DocumentId,this.DocumentUploadId,this.DocumentNr,this.Messages}); UploadFileResponse.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() => "UploadFileResponse"; TypeContext? context = _ctx; } // @Route("/DMS/UploadFile", "POST") class UploadFile implements IReturn, IConvertible { String? RegistrationProfileID; String? NavigationPath; String? FileName; String? Description; bool? DocumentUpload; List? MetaData; String? DocumentID; String? HoofdDocumentID; List? SubDocumentIDs; UploadFile({this.RegistrationProfileID,this.NavigationPath,this.FileName,this.Description,this.DocumentUpload,this.MetaData,this.DocumentID,this.HoofdDocumentID,this.SubDocumentIDs}); UploadFile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RegistrationProfileID = json['RegistrationProfileID']; NavigationPath = json['NavigationPath']; FileName = json['FileName']; Description = json['Description']; DocumentUpload = json['DocumentUpload']; MetaData = JsonConverters.fromJson(json['MetaData'],'List',context!); DocumentID = json['DocumentID']; HoofdDocumentID = json['HoofdDocumentID']; SubDocumentIDs = JsonConverters.fromJson(json['SubDocumentIDs'],'List',context!); return this; } Map toJson() => { 'RegistrationProfileID': RegistrationProfileID, 'NavigationPath': NavigationPath, 'FileName': FileName, 'Description': Description, 'DocumentUpload': DocumentUpload, 'MetaData': JsonConverters.toJson(MetaData,'List',context!), 'DocumentID': DocumentID, 'HoofdDocumentID': HoofdDocumentID, 'SubDocumentIDs': JsonConverters.toJson(SubDocumentIDs,'List',context!) }; createResponse() => UploadFileResponse(); getResponseTypeName() => "UploadFileResponse"; getTypeName() => "UploadFile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.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), 'UploadFileResponse': TypeInfo(TypeOf.Class, create:() => UploadFileResponse()), 'UploadFile': TypeInfo(TypeOf.Class, create:() => UploadFile()), 'List': TypeInfo(TypeOf.Class, create:() => []), });