/* Options: Date: 2025-07-04 10:20:10 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: GetDocumentViews.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; 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 DocumentView extends MobileView implements IConvertible { // @DataMember String? TranslateKey; // @DataMember String? SiteMapKey; DocumentView({this.TranslateKey,this.SiteMapKey}); DocumentView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); TranslateKey = json['TranslateKey']; SiteMapKey = json['SiteMapKey']; return this; } Map toJson() => super.toJson()..addAll({ 'TranslateKey': TranslateKey, 'SiteMapKey': SiteMapKey }); getTypeName() => "DocumentView"; TypeContext? context = _ctx; } // @Route("/documentviews", "GET") class GetDocumentViews implements IReturn>, IConvertible, IGet { bool? IncludeExplorers; String? WorkspaceID; GetDocumentViews({this.IncludeExplorers,this.WorkspaceID}); GetDocumentViews.fromJson(Map json) { fromMap(json); } fromMap(Map json) { IncludeExplorers = json['IncludeExplorers']; WorkspaceID = json['WorkspaceID']; return this; } Map toJson() => { 'IncludeExplorers': IncludeExplorers, 'WorkspaceID': WorkspaceID }; createResponse() => ObservableCollection(); getResponseTypeName() => "ObservableCollection"; getTypeName() => "GetDocumentViews"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'doapigw.baasbv.nl', types: { 'Explorer': TypeInfo(TypeOf.Class, create:() => Explorer()), 'MobileView': TypeInfo(TypeOf.AbstractClass), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DocumentView': TypeInfo(TypeOf.Class, create:() => DocumentView()), 'GetDocumentViews': TypeInfo(TypeOf.Class, create:() => GetDocumentViews()), });