/* Options: Date: 2025-07-04 11:01:50 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://doapigw.baasbv.nl/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetDocuments.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class RegistrationProfileFieldValue implements IConvertible { String? DocumentFieldID; String? Value; String? ShadowValue; bool? IsModifiedByUser; RegistrationProfileFieldValue({this.DocumentFieldID,this.Value,this.ShadowValue,this.IsModifiedByUser}); RegistrationProfileFieldValue.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DocumentFieldID = json['DocumentFieldID']; Value = json['Value']; ShadowValue = json['ShadowValue']; IsModifiedByUser = json['IsModifiedByUser']; return this; } Map toJson() => { 'DocumentFieldID': DocumentFieldID, 'Value': Value, 'ShadowValue': ShadowValue, 'IsModifiedByUser': IsModifiedByUser }; getTypeName() => "RegistrationProfileFieldValue"; TypeContext? context = _ctx; } abstract class ICustomProperties { Map? CustomProperties; } class Document implements ICustomProperties, IConvertible { String? ID; String? RootDocumentID; String? RegistrationprofileID; String? Title; String? FullTitle; String? Number; String? Version; String? ExternalNumber; String? ExternalVersion; String? InternalNumber; String? InternalInvoiceNumber; int? PersonID; int? RelationID; String? RelationTitle; int? ProjectID; String? ProjectTitle; String? Extension; DateTime? Date; int? CommentsCount; bool? HasComments; bool? HasPreview; String? ExtraField; bool? IsFavorite; String? DocumentcategoryText; int? FileSize; DateTime? FileDate; String? Hash; String? HashType; String? FileUrl; String? StandardDocumentUrl; bool? IsCorporateIdentity; String? UserTitle; bool? IsFrozen; int? InternalCompanyID; String? DirectUrl; bool? AllowDigitalSigningOnlyOnPrimaryVersions; bool? IsPrimaryVersion; String? FileExtension; Map? CustomProperties; Document({this.ID,this.RootDocumentID,this.RegistrationprofileID,this.Title,this.FullTitle,this.Number,this.Version,this.ExternalNumber,this.ExternalVersion,this.InternalNumber,this.InternalInvoiceNumber,this.PersonID,this.RelationID,this.RelationTitle,this.ProjectID,this.ProjectTitle,this.Extension,this.Date,this.CommentsCount,this.HasComments,this.HasPreview,this.ExtraField,this.IsFavorite,this.DocumentcategoryText,this.FileSize,this.FileDate,this.Hash,this.HashType,this.FileUrl,this.StandardDocumentUrl,this.IsCorporateIdentity,this.UserTitle,this.IsFrozen,this.InternalCompanyID,this.DirectUrl,this.AllowDigitalSigningOnlyOnPrimaryVersions,this.IsPrimaryVersion,this.FileExtension,this.CustomProperties}); Document.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; RootDocumentID = json['RootDocumentID']; RegistrationprofileID = json['RegistrationprofileID']; Title = json['Title']; FullTitle = json['FullTitle']; Number = json['Number']; Version = json['Version']; ExternalNumber = json['ExternalNumber']; ExternalVersion = json['ExternalVersion']; InternalNumber = json['InternalNumber']; InternalInvoiceNumber = json['InternalInvoiceNumber']; PersonID = json['PersonID']; RelationID = json['RelationID']; RelationTitle = json['RelationTitle']; ProjectID = json['ProjectID']; ProjectTitle = json['ProjectTitle']; Extension = json['Extension']; Date = JsonConverters.fromJson(json['Date'],'DateTime',context!); CommentsCount = json['CommentsCount']; HasComments = json['HasComments']; HasPreview = json['HasPreview']; ExtraField = json['ExtraField']; IsFavorite = json['IsFavorite']; DocumentcategoryText = json['DocumentcategoryText']; FileSize = json['FileSize']; FileDate = JsonConverters.fromJson(json['FileDate'],'DateTime',context!); Hash = json['Hash']; HashType = json['HashType']; FileUrl = json['FileUrl']; StandardDocumentUrl = json['StandardDocumentUrl']; IsCorporateIdentity = json['IsCorporateIdentity']; UserTitle = json['UserTitle']; IsFrozen = json['IsFrozen']; InternalCompanyID = json['InternalCompanyID']; DirectUrl = json['DirectUrl']; AllowDigitalSigningOnlyOnPrimaryVersions = json['AllowDigitalSigningOnlyOnPrimaryVersions']; IsPrimaryVersion = json['IsPrimaryVersion']; FileExtension = json['FileExtension']; CustomProperties = JsonConverters.fromJson(json['CustomProperties'],'Map',context!); return this; } Map toJson() => { 'ID': ID, 'RootDocumentID': RootDocumentID, 'RegistrationprofileID': RegistrationprofileID, 'Title': Title, 'FullTitle': FullTitle, 'Number': Number, 'Version': Version, 'ExternalNumber': ExternalNumber, 'ExternalVersion': ExternalVersion, 'InternalNumber': InternalNumber, 'InternalInvoiceNumber': InternalInvoiceNumber, 'PersonID': PersonID, 'RelationID': RelationID, 'RelationTitle': RelationTitle, 'ProjectID': ProjectID, 'ProjectTitle': ProjectTitle, 'Extension': Extension, 'Date': JsonConverters.toJson(Date,'DateTime',context!), 'CommentsCount': CommentsCount, 'HasComments': HasComments, 'HasPreview': HasPreview, 'ExtraField': ExtraField, 'IsFavorite': IsFavorite, 'DocumentcategoryText': DocumentcategoryText, 'FileSize': FileSize, 'FileDate': JsonConverters.toJson(FileDate,'DateTime',context!), 'Hash': Hash, 'HashType': HashType, 'FileUrl': FileUrl, 'StandardDocumentUrl': StandardDocumentUrl, 'IsCorporateIdentity': IsCorporateIdentity, 'UserTitle': UserTitle, 'IsFrozen': IsFrozen, 'InternalCompanyID': InternalCompanyID, 'DirectUrl': DirectUrl, 'AllowDigitalSigningOnlyOnPrimaryVersions': AllowDigitalSigningOnlyOnPrimaryVersions, 'IsPrimaryVersion': IsPrimaryVersion, 'FileExtension': FileExtension, 'CustomProperties': JsonConverters.toJson(CustomProperties,'Map',context!) }; getTypeName() => "Document"; TypeContext? context = _ctx; } // @Route("/documents", "GET POST") class GetDocuments implements IReturn>, IConvertible, IGet { String? ViewID; int? PageSize; int? PageNumber; String? SearchCriteria; String? ExplorerID; String? Path; String? ExternalNumber; DateTime? ModifiedSince; bool? AllVersions; String? OrderBy; bool? Archived; String? FilterName; String? ProgCode; String? RegistrationProfileFieldID; List? DependableFields; bool? IncludeCustomProperties; GetDocuments({this.ViewID,this.PageSize,this.PageNumber,this.SearchCriteria,this.ExplorerID,this.Path,this.ExternalNumber,this.ModifiedSince,this.AllVersions,this.OrderBy,this.Archived,this.FilterName,this.ProgCode,this.RegistrationProfileFieldID,this.DependableFields,this.IncludeCustomProperties}); GetDocuments.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ViewID = json['ViewID']; PageSize = json['PageSize']; PageNumber = json['PageNumber']; SearchCriteria = json['SearchCriteria']; ExplorerID = json['ExplorerID']; Path = json['Path']; ExternalNumber = json['ExternalNumber']; ModifiedSince = JsonConverters.fromJson(json['ModifiedSince'],'DateTime',context!); AllVersions = json['AllVersions']; OrderBy = json['OrderBy']; Archived = json['Archived']; FilterName = json['FilterName']; ProgCode = json['ProgCode']; RegistrationProfileFieldID = json['RegistrationProfileFieldID']; DependableFields = JsonConverters.fromJson(json['DependableFields'],'List',context!); IncludeCustomProperties = json['IncludeCustomProperties']; return this; } Map toJson() => { 'ViewID': ViewID, 'PageSize': PageSize, 'PageNumber': PageNumber, 'SearchCriteria': SearchCriteria, 'ExplorerID': ExplorerID, 'Path': Path, 'ExternalNumber': ExternalNumber, 'ModifiedSince': JsonConverters.toJson(ModifiedSince,'DateTime',context!), 'AllVersions': AllVersions, 'OrderBy': OrderBy, 'Archived': Archived, 'FilterName': FilterName, 'ProgCode': ProgCode, 'RegistrationProfileFieldID': RegistrationProfileFieldID, 'DependableFields': JsonConverters.toJson(DependableFields,'List',context!), 'IncludeCustomProperties': IncludeCustomProperties }; createResponse() => ObservableCollection(); getResponseTypeName() => "ObservableCollection"; getTypeName() => "GetDocuments"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'doapigw.baasbv.nl', types: { 'RegistrationProfileFieldValue': TypeInfo(TypeOf.Class, create:() => RegistrationProfileFieldValue()), 'ICustomProperties': TypeInfo(TypeOf.Interface), 'Document': TypeInfo(TypeOf.Class, create:() => Document()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'GetDocuments': TypeInfo(TypeOf.Class, create:() => GetDocuments()), 'List': TypeInfo(TypeOf.Class, create:() => []), });