/* Options: Date: 2024-10-18 04:29:19 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: GetDocumentViewDetails.* //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/{Key}", "GET POST") class GetDocumentViewDetails implements IReturn, IConvertible { String? Key; bool? IncludeExplorers; GetDocumentViewDetails({this.Key,this.IncludeExplorers}); GetDocumentViewDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; IncludeExplorers = json['IncludeExplorers']; return this; } Map toJson() => { 'Key': Key, 'IncludeExplorers': IncludeExplorers }; createResponse() => DocumentView(); getResponseTypeName() => "DocumentView"; getTypeName() => "GetDocumentViewDetails"; 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:() => []), 'DocumentView': TypeInfo(TypeOf.Class, create:() => DocumentView()), 'GetDocumentViewDetails': TypeInfo(TypeOf.Class, create:() => GetDocumentViewDetails()), });