/* Options: Date: 2024-10-18 04:31:41 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: ViewsAndExplorers.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Node implements IConvertible { String? EntityName; String? ID; String? ParentID; String? Title; int? Count; String? ImageKey; bool? Expanded; bool? Selected; String? DisplayPath; List? ChildNodes; String? RegistrationPathElement; String? QueryPathElement; String? Path; bool? IsHierarchy; Node({this.EntityName,this.ID,this.ParentID,this.Title,this.Count,this.ImageKey,this.Expanded,this.Selected,this.DisplayPath,this.ChildNodes,this.RegistrationPathElement,this.QueryPathElement,this.Path,this.IsHierarchy}); Node.fromJson(Map json) { fromMap(json); } fromMap(Map json) { EntityName = json['EntityName']; ID = json['ID']; ParentID = json['ParentID']; Title = json['Title']; Count = json['Count']; ImageKey = json['ImageKey']; Expanded = json['Expanded']; Selected = json['Selected']; DisplayPath = json['DisplayPath']; ChildNodes = JsonConverters.fromJson(json['ChildNodes'],'List',context!); RegistrationPathElement = json['RegistrationPathElement']; QueryPathElement = json['QueryPathElement']; Path = json['Path']; IsHierarchy = json['IsHierarchy']; return this; } Map toJson() => { 'EntityName': EntityName, 'ID': ID, 'ParentID': ParentID, 'Title': Title, 'Count': Count, 'ImageKey': ImageKey, 'Expanded': Expanded, 'Selected': Selected, 'DisplayPath': DisplayPath, 'ChildNodes': JsonConverters.toJson(ChildNodes,'List',context!), 'RegistrationPathElement': RegistrationPathElement, 'QueryPathElement': QueryPathElement, 'Path': Path, 'IsHierarchy': IsHierarchy }; getTypeName() => "Node"; TypeContext? context = _ctx; } class ViewExplorerNode extends Node implements IConvertible { String? ViewId; String? ExplorerId; List? ChildNodes; ViewExplorerNode({this.ViewId,this.ExplorerId,this.ChildNodes}); ViewExplorerNode.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ViewId = json['ViewId']; ExplorerId = json['ExplorerId']; ChildNodes = JsonConverters.fromJson(json['ChildNodes'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ViewId': ViewId, 'ExplorerId': ExplorerId, 'ChildNodes': JsonConverters.toJson(ChildNodes,'List',context!) }); getTypeName() => "ViewExplorerNode"; TypeContext? context = _ctx; } class ViewsAndExplorers implements IReturn, IConvertible { List? Nodes; ViewsAndExplorers({this.Nodes}); ViewsAndExplorers.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Nodes = JsonConverters.fromJson(json['Nodes'],'List',context!); return this; } Map toJson() => { 'Nodes': JsonConverters.toJson(Nodes,'List',context!) }; createResponse() => ViewsAndExplorers(); getResponseTypeName() => "ViewsAndExplorers"; getTypeName() => "ViewsAndExplorers"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: { 'Node': TypeInfo(TypeOf.Class, create:() => Node()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ViewExplorerNode': TypeInfo(TypeOf.Class, create:() => ViewExplorerNode()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ViewsAndExplorers': TypeInfo(TypeOf.Class, create:() => ViewsAndExplorers()), });