/* Options: Date: 2025-12-06 07:09:43 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ReportManagerObjectsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; abstract class ReportManagerRequest { ReportManagerRequest(); ReportManagerRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "ReportManagerRequest<$T>"; TypeContext? context = _ctx; } // @DataContract class ReportManagerObjectData implements IConvertible { // @DataMember(Name="id") String? id; // @DataMember(Name="name") String? name; // @DataMember(Name="filter") bool? filter; // @DataMember(Name="edit") bool? edit; // @DataMember(Name="type") String? type; // @DataMember(Name="ref") String? ref; // @DataMember(Name="key") bool? key; // @DataMember(Name="show") bool? Show; ReportManagerObjectData({this.id,this.name,this.filter,this.edit,this.type,this.ref,this.key,this.Show}); ReportManagerObjectData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['ID']; name = json['Name']; filter = json['Filter']; edit = json['Edit']; type = json['TypeName']; ref = json['Ref']; key = json['IsKey']; Show = json['IsLabel']; return this; } Map toJson() => { 'id': id, 'name': name, 'filter': filter, 'edit': edit, 'type': type, 'ref': ref, 'key': key, 'Show': Show }; getTypeName() => "ReportManagerObjectData"; TypeContext? context = _ctx; } // @DataContract class ReportManagerObjectRef implements IConvertible { // @DataMember(Name="id") int? id; // @DataMember(Name="target") String? target; // @DataMember(Name="source") String? source; // @DataMember(Name="name") String? name; ReportManagerObjectRef({this.id,this.target,this.source,this.name}); ReportManagerObjectRef.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['ID']; target = json['Target']; source = json['Source']; name = json['Name']; return this; } Map toJson() => { 'id': id, 'target': target, 'source': source, 'name': name }; getTypeName() => "ReportManagerObjectRef"; TypeContext? context = _ctx; } // @DataContract class ReportManagerObject implements IReportManagerDocument, IConvertible { // @DataMember(Name="id") String? id; // @DataMember(Name="name") String? name; // @DataMember(Name="data") List? data = []; // @DataMember(Name="refs") List? refs = []; ReportManagerObject({this.id,this.name,this.data,this.refs}); ReportManagerObject.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['ID']; name = json['Name']; data = JsonConverters.fromJson(json['Fields'],'List',context!); refs = JsonConverters.fromJson(json['References'],'List',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'data': JsonConverters.toJson(data,'List',context!), 'refs': JsonConverters.toJson(refs,'List',context!) }; getTypeName() => "ReportManagerObject"; TypeContext? context = _ctx; } abstract class IReportManagerDocument { } // @Route("/v1/ReportManager/api/Objects", "GET,OPTIONS") class ReportManagerObjectsRequest extends ReportManagerRequest implements IReturn>, IConvertible, IGet { ReportManagerObjectsRequest(); ReportManagerObjectsRequest.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "ReportManagerObjectsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ReportManagerRequest': TypeInfo(TypeOf.GenericDef,create:() => ReportManagerRequest()), 'ReportManagerObjectData': TypeInfo(TypeOf.Class, create:() => ReportManagerObjectData()), 'ReportManagerObjectRef': TypeInfo(TypeOf.Class, create:() => ReportManagerObjectRef()), 'ReportManagerObject': TypeInfo(TypeOf.Class, create:() => ReportManagerObject()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'IReportManagerDocument': TypeInfo(TypeOf.Interface), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ReportManagerObjectsRequest': TypeInfo(TypeOf.Class, create:() => ReportManagerObjectsRequest()), });