/* Options: Date: 2026-02-10 07:45:57 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://etc-api.vsmlab.vn //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: WorkflowStatisticsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class LeftMenuItem implements IConvertible { int? id; String? name; int? count; bool? isParty; int? level1ParentId; int? level2ParentId; int? level; String? type; String? key; // @ignore() List? children; LeftMenuItem({this.id,this.name,this.count,this.isParty,this.level1ParentId,this.level2ParentId,this.level,this.type,this.key,this.children}); LeftMenuItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; count = json['count']; isParty = json['isParty']; level1ParentId = json['level1ParentId']; level2ParentId = json['level2ParentId']; level = json['level']; type = json['type']; key = json['key']; children = JsonConverters.fromJson(json['children'],'List',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'count': count, 'isParty': isParty, 'level1ParentId': level1ParentId, 'level2ParentId': level2ParentId, 'level': level, 'type': type, 'key': key, 'children': JsonConverters.toJson(children,'List',context!) }; getTypeName() => "LeftMenuItem"; TypeContext? context = _ctx; } class WorkflowStatisticsResponse implements IConvertible { int? code; String? message; List? data; WorkflowStatisticsResponse({this.code,this.message,this.data}); WorkflowStatisticsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; message = json['message']; data = JsonConverters.fromJson(json['data'],'List',context!); return this; } Map toJson() => { 'code': code, 'message': message, 'data': JsonConverters.toJson(data,'List',context!) }; getTypeName() => "WorkflowStatisticsResponse"; TypeContext? context = _ctx; } // @Route("/workflow/statistics", "GET") class WorkflowStatisticsRequest implements IReturn, IConvertible, IGet { WorkflowStatisticsRequest(); WorkflowStatisticsRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => WorkflowStatisticsResponse(); getResponseTypeName() => "WorkflowStatisticsResponse"; getTypeName() => "WorkflowStatisticsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: { 'LeftMenuItem': TypeInfo(TypeOf.Class, create:() => LeftMenuItem()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'WorkflowStatisticsResponse': TypeInfo(TypeOf.Class, create:() => WorkflowStatisticsResponse()), 'WorkflowStatisticsRequest': TypeInfo(TypeOf.Class, create:() => WorkflowStatisticsRequest()), });