/* Options: Date: 2024-10-18 04:26:36 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: GetDocumentNewestDetails.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; 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/{DocumentID}/newest", "GET") class GetDocumentNewestDetails implements IReturn, IConvertible { String? DocumentID; bool? IncludeCustomProperties; GetDocumentNewestDetails({this.DocumentID,this.IncludeCustomProperties}); GetDocumentNewestDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DocumentID = json['DocumentID']; IncludeCustomProperties = json['IncludeCustomProperties']; return this; } Map toJson() => { 'DocumentID': DocumentID, 'IncludeCustomProperties': IncludeCustomProperties }; createResponse() => Document(); getResponseTypeName() => "Document"; getTypeName() => "GetDocumentNewestDetails"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: { 'ICustomProperties': TypeInfo(TypeOf.Interface), 'Document': TypeInfo(TypeOf.Class, create:() => Document()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'GetDocumentNewestDetails': TypeInfo(TypeOf.Class, create:() => GetDocumentNewestDetails()), });