/* Options: Date: 2024-11-28 09:29:49 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: GetFavoriteDocuments.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Explorer implements IConvertible { String? ID; String? Title; int? Order; Explorer({this.ID,this.Title,this.Order}); Explorer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; Title = json['Title']; Order = json['Order']; return this; } Map toJson() => { 'ID': ID, 'Title': Title, 'Order': Order }; getTypeName() => "Explorer"; TypeContext? context = _ctx; } // @DataContract abstract class MobileView { // @DataMember String? ID; // @DataMember String? Title; // @DataMember String? ImageUrl; // @DataMember int? ChildrenCount; // @DataMember int? Order; // @DataMember List? Explorers; MobileView({this.ID,this.Title,this.ImageUrl,this.ChildrenCount,this.Order,this.Explorers}); MobileView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; Title = json['Title']; ImageUrl = json['ImageUrl']; ChildrenCount = json['ChildrenCount']; Order = json['Order']; Explorers = JsonConverters.fromJson(json['Explorers'],'List',context!); return this; } Map toJson() => { 'ID': ID, 'Title': Title, 'ImageUrl': ImageUrl, 'ChildrenCount': ChildrenCount, 'Order': Order, 'Explorers': JsonConverters.toJson(Explorers,'List',context!) }; getTypeName() => "MobileView"; TypeContext? context = _ctx; } class RecentlyOpenedDocument implements IConvertible { String? DocumentID; String? DocumentNumber; String? DocumentVersion; String? DocumentTitle; String? FileExtension; DateTime? LastOpenedDate; String? ProgCode; String? FileUrl; RecentlyOpenedDocument({this.DocumentID,this.DocumentNumber,this.DocumentVersion,this.DocumentTitle,this.FileExtension,this.LastOpenedDate,this.ProgCode,this.FileUrl}); RecentlyOpenedDocument.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DocumentID = json['DocumentID']; DocumentNumber = json['DocumentNumber']; DocumentVersion = json['DocumentVersion']; DocumentTitle = json['DocumentTitle']; FileExtension = json['FileExtension']; LastOpenedDate = JsonConverters.fromJson(json['LastOpenedDate'],'DateTime',context!); ProgCode = json['ProgCode']; FileUrl = json['FileUrl']; return this; } Map toJson() => { 'DocumentID': DocumentID, 'DocumentNumber': DocumentNumber, 'DocumentVersion': DocumentVersion, 'DocumentTitle': DocumentTitle, 'FileExtension': FileExtension, 'LastOpenedDate': JsonConverters.toJson(LastOpenedDate,'DateTime',context!), 'ProgCode': ProgCode, 'FileUrl': FileUrl }; getTypeName() => "RecentlyOpenedDocument"; TypeContext? context = _ctx; } 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; } class FavoriteDocument implements IConvertible { Document? Document; DateTime? Date; DateTime? ModifiedDate; FavoriteDocument({this.Document,this.Date,this.ModifiedDate}); FavoriteDocument.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Document = JsonConverters.fromJson(json['Document'],'Document',context!); Date = JsonConverters.fromJson(json['Date'],'DateTime',context!); ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); return this; } Map toJson() => { 'Document': JsonConverters.toJson(Document,'Document',context!), 'Date': JsonConverters.toJson(Date,'DateTime',context!), 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!) }; getTypeName() => "FavoriteDocument"; TypeContext? context = _ctx; } // @Route("/me/documents/favorites", "GET") class GetFavoriteDocuments implements IReturn>, IConvertible { int? PageNumber; int? PageSize; List? FileExtensions; GetFavoriteDocuments({this.PageNumber,this.PageSize,this.FileExtensions}); GetFavoriteDocuments.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PageNumber = json['PageNumber']; PageSize = json['PageSize']; FileExtensions = JsonConverters.fromJson(json['FileExtensions'],'List',context!); return this; } Map toJson() => { 'PageNumber': PageNumber, 'PageSize': PageSize, 'FileExtensions': JsonConverters.toJson(FileExtensions,'List',context!) }; createResponse() => ObservableCollection(); getResponseTypeName() => "ObservableCollection"; getTypeName() => "GetFavoriteDocuments"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: { 'Explorer': TypeInfo(TypeOf.Class, create:() => Explorer()), 'MobileView': TypeInfo(TypeOf.AbstractClass), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RecentlyOpenedDocument': TypeInfo(TypeOf.Class, create:() => RecentlyOpenedDocument()), 'Document': TypeInfo(TypeOf.Class, create:() => Document()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'FavoriteDocument': TypeInfo(TypeOf.Class, create:() => FavoriteDocument()), 'GetFavoriteDocuments': TypeInfo(TypeOf.Class, create:() => GetFavoriteDocuments()), });