/* Options: Date: 2025-12-06 07:57:03 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: ReportManagerModuleSaveRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ReportManagerModule implements IReportManagerDocument, IConvertible { int? id; String? name; String? text; DateTime? updated; ReportManagerModule({this.id,this.name,this.text,this.updated}); ReportManagerModule.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; text = json['text']; updated = JsonConverters.fromJson(json['updated'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'text': text, 'updated': JsonConverters.toJson(updated,'DateTime',context!) }; getTypeName() => "ReportManagerModule"; TypeContext? context = _ctx; } abstract class IReportManagerDocument { } class ReportManagerSaveDeleteResponse implements IConvertible { int? id; ReportManagerSaveDeleteResponse({this.id}); ReportManagerSaveDeleteResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; getTypeName() => "ReportManagerSaveDeleteResponse"; TypeContext? context = _ctx; } // @Route("/v1/ReportManager/api/Modules", "POST,OPTIONS") // @Route("/v1/ReportManager/api/Modules/{id}", "PUT,OPTIONS") class ReportManagerModuleSaveRequest extends ReportManagerModule implements IReturn, IConvertible, IPost { ReportManagerModuleSaveRequest(); ReportManagerModuleSaveRequest.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => ReportManagerSaveDeleteResponse(); getResponseTypeName() => "ReportManagerSaveDeleteResponse"; getTypeName() => "ReportManagerModuleSaveRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ReportManagerModule': TypeInfo(TypeOf.Class, create:() => ReportManagerModule()), 'IReportManagerDocument': TypeInfo(TypeOf.Interface), 'ReportManagerSaveDeleteResponse': TypeInfo(TypeOf.Class, create:() => ReportManagerSaveDeleteResponse()), 'ReportManagerModuleSaveRequest': TypeInfo(TypeOf.Class, create:() => ReportManagerModuleSaveRequest()), });