/* Options: Date: 2025-07-04 10:39:30 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: GetDocumentSearch.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; abstract class ISearchCriteria { String? SearchCriteria; } abstract class IDocumentSearchCriteria extends ISearchCriteria { bool? AllVersions; bool? Archived; } class SearchResult implements IConvertible { List? Results; int? Total; SearchResult({this.Results,this.Total}); SearchResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Results = JsonConverters.fromJson(json['Results'],'List<${runtimeGenericTypeDefs(this,[0]).join(",")}>',context!); Total = json['Total']; return this; } Map toJson() => { 'Results': JsonConverters.toJson(Results,'List',context!), 'Total': Total }; getTypeName() => "SearchResult<$DocumentIdentifier,$Guid>"; TypeContext? context = _ctx; } // @Route("/documents/search", "POST") class GetDocumentSearch implements IReturn>, IDocumentSearchCriteria, IConvertible, IPost { String? SearchCriteria; int? PageNumber; int? PageSize; List? ExcludeID; bool? AllVersions; bool? Archived; GetDocumentSearch({this.SearchCriteria,this.PageNumber,this.PageSize,this.ExcludeID,this.AllVersions,this.Archived}); GetDocumentSearch.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SearchCriteria = json['SearchCriteria']; PageNumber = json['PageNumber']; PageSize = json['PageSize']; ExcludeID = JsonConverters.fromJson(json['ExcludeID'],'List',context!); AllVersions = json['AllVersions']; Archived = json['Archived']; return this; } Map toJson() => { 'SearchCriteria': SearchCriteria, 'PageNumber': PageNumber, 'PageSize': PageSize, 'ExcludeID': JsonConverters.toJson(ExcludeID,'List',context!), 'AllVersions': AllVersions, 'Archived': Archived }; createResponse() => SearchResult(); getResponseTypeName() => "SearchResult"; getTypeName() => "GetDocumentSearch"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'doapigw.baasbv.nl', types: { 'ISearchCriteria': TypeInfo(TypeOf.Interface), 'IDocumentSearchCriteria': TypeInfo(TypeOf.Interface), 'SearchResult': TypeInfo(TypeOf.Class, create:() => SearchResult()), 'GetDocumentSearch': TypeInfo(TypeOf.Class, create:() => GetDocumentSearch()), });