/* Options: Date: 2024-10-18 04:14:40 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: AddDocument.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @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; } class Mailings implements IConvertible { Mailings(); Mailings.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "Mailings"; TypeContext? context = _ctx; } class AttachmentMailing implements IConvertible { AttachmentMailing(); AttachmentMailing.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "AttachmentMailing"; TypeContext? context = _ctx; } enum DocInfoSilentMode { Off, AllowUserInteraction, DoNotAllowUserInteraction, } class Bookmark implements IConvertible { bool? RemoveLastBreak; bool? ReplaceOnChange; bool? IsDynamic; Bookmark({this.RemoveLastBreak,this.ReplaceOnChange,this.IsDynamic}); Bookmark.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RemoveLastBreak = json['RemoveLastBreak']; ReplaceOnChange = json['ReplaceOnChange']; IsDynamic = json['IsDynamic']; return this; } Map toJson() => { 'RemoveLastBreak': RemoveLastBreak, 'ReplaceOnChange': ReplaceOnChange, 'IsDynamic': IsDynamic }; getTypeName() => "Bookmark"; TypeContext? context = _ctx; } abstract class IInformationMessages { } class Bookmark implements IConvertible { String? Name; int? Order; Bookmark({this.Name,this.Order}); Bookmark.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Order = json['Order']; return this; } Map toJson() => { 'Name': Name, 'Order': Order }; getTypeName() => "Bookmark"; TypeContext? context = _ctx; } class DocumentResponse implements IConvertible { String? DocumentID; String? DocumentNr; String? RootDocumentID; List? MetaData; List? Bookmarks; Mailings? Mailings; List? AttachmentsMailings; IInformationMessages? Messages; String? SourceDocumentPath; String? DestinationDocumentPath; String? SharePointContentTypeName; bool? ZIPAttachments; DocumentResponse({this.DocumentID,this.DocumentNr,this.RootDocumentID,this.MetaData,this.Bookmarks,this.Mailings,this.AttachmentsMailings,this.Messages,this.SourceDocumentPath,this.DestinationDocumentPath,this.SharePointContentTypeName,this.ZIPAttachments}); DocumentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DocumentID = json['DocumentID']; DocumentNr = json['DocumentNr']; RootDocumentID = json['RootDocumentID']; MetaData = JsonConverters.fromJson(json['MetaData'],'List',context!); Bookmarks = JsonConverters.fromJson(json['Bookmarks'],'List',context!); Mailings = JsonConverters.fromJson(json['Mailings'],'Mailings',context!); AttachmentsMailings = JsonConverters.fromJson(json['AttachmentsMailings'],'List',context!); Messages = JsonConverters.fromJson(json['Messages'],'IInformationMessages',context!); SourceDocumentPath = json['SourceDocumentPath']; DestinationDocumentPath = json['DestinationDocumentPath']; SharePointContentTypeName = json['SharePointContentTypeName']; ZIPAttachments = json['ZIPAttachments']; return this; } Map toJson() => { 'DocumentID': DocumentID, 'DocumentNr': DocumentNr, 'RootDocumentID': RootDocumentID, 'MetaData': JsonConverters.toJson(MetaData,'List',context!), 'Bookmarks': JsonConverters.toJson(Bookmarks,'List',context!), 'Mailings': JsonConverters.toJson(Mailings,'Mailings',context!), 'AttachmentsMailings': JsonConverters.toJson(AttachmentsMailings,'List',context!), 'Messages': JsonConverters.toJson(Messages,'IInformationMessages',context!), 'SourceDocumentPath': SourceDocumentPath, 'DestinationDocumentPath': DestinationDocumentPath, 'SharePointContentTypeName': SharePointContentTypeName, 'ZIPAttachments': ZIPAttachments }; getTypeName() => "DocumentResponse"; TypeContext? context = _ctx; } class AddDocument implements IReturn, IConvertible { String? RegistrationProfileID; String? DocumentID; String? RootDocumentID; int? AssignToUserID; int? AssignToGroupID; List? MetaData; Mailings? Mailings; List? AttachmentsMailings; String? FileID; DocInfoSilentMode? SilentMode; bool? updateStorageSystem; int? MessageQueueId; AddDocument({this.RegistrationProfileID,this.DocumentID,this.RootDocumentID,this.AssignToUserID,this.AssignToGroupID,this.MetaData,this.Mailings,this.AttachmentsMailings,this.FileID,this.SilentMode,this.updateStorageSystem,this.MessageQueueId}); AddDocument.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RegistrationProfileID = json['RegistrationProfileID']; DocumentID = json['DocumentID']; RootDocumentID = json['RootDocumentID']; AssignToUserID = json['AssignToUserID']; AssignToGroupID = json['AssignToGroupID']; MetaData = JsonConverters.fromJson(json['MetaData'],'List',context!); Mailings = JsonConverters.fromJson(json['Mailings'],'Mailings',context!); AttachmentsMailings = JsonConverters.fromJson(json['AttachmentsMailings'],'List',context!); FileID = json['FileID']; SilentMode = JsonConverters.fromJson(json['SilentMode'],'DocInfoSilentMode',context!); updateStorageSystem = json['updateStorageSystem']; MessageQueueId = json['MessageQueueId']; return this; } Map toJson() => { 'RegistrationProfileID': RegistrationProfileID, 'DocumentID': DocumentID, 'RootDocumentID': RootDocumentID, 'AssignToUserID': AssignToUserID, 'AssignToGroupID': AssignToGroupID, 'MetaData': JsonConverters.toJson(MetaData,'List',context!), 'Mailings': JsonConverters.toJson(Mailings,'Mailings',context!), 'AttachmentsMailings': JsonConverters.toJson(AttachmentsMailings,'List',context!), 'FileID': FileID, 'SilentMode': JsonConverters.toJson(SilentMode,'DocInfoSilentMode',context!), 'updateStorageSystem': updateStorageSystem, 'MessageQueueId': MessageQueueId }; createResponse() => DocumentResponse(); getResponseTypeName() => "DocumentResponse"; getTypeName() => "AddDocument"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: { 'MetaDataField': TypeInfo(TypeOf.Class, create:() => MetaDataField()), 'Mailings': TypeInfo(TypeOf.Class, create:() => Mailings()), 'AttachmentMailing': TypeInfo(TypeOf.Class, create:() => AttachmentMailing()), 'DocInfoSilentMode': TypeInfo(TypeOf.Enum, enumValues:DocInfoSilentMode.values), 'Bookmark': TypeInfo(TypeOf.Class, create:() => Bookmark()), 'IInformationMessages': TypeInfo(TypeOf.Interface), 'DocumentResponse': TypeInfo(TypeOf.Class, create:() => DocumentResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AddDocument': TypeInfo(TypeOf.Class, create:() => AddDocument()), });