/* Options: Date: 2026-02-04 10:26:04 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: MergeFileRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class TemplateDefinitionDto implements IConvertible { int? id; int? documentId; String? title; String? description; bool? isActive; TemplateDefinitionDto({this.id,this.documentId,this.title,this.description,this.isActive}); TemplateDefinitionDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; documentId = json['documentId']; title = json['title']; description = json['description']; isActive = json['isActive']; return this; } Map toJson() => { 'id': id, 'documentId': documentId, 'title': title, 'description': description, 'isActive': isActive }; getTypeName() => "TemplateDefinitionDto"; TypeContext? context = _ctx; } class ElementDefinitionDto implements IConvertible { int? id; int? templateId; String? elementKey; String? tag; String? title; String? description; String? dataType; String? templateType; int? orderIndex; int? parentId; dynamic? value; List? children; ElementDefinitionDto({this.id,this.templateId,this.elementKey,this.tag,this.title,this.description,this.dataType,this.templateType,this.orderIndex,this.parentId,this.value,this.children}); ElementDefinitionDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; templateId = json['templateId']; elementKey = json['elementKey']; tag = json['tag']; title = json['title']; description = json['description']; dataType = json['dataType']; templateType = json['templateType']; orderIndex = json['orderIndex']; parentId = json['parentId']; value = JsonConverters.fromJson(json['value'],'dynamic',context!); children = JsonConverters.fromJson(json['children'],'List',context!); return this; } Map toJson() => { 'id': id, 'templateId': templateId, 'elementKey': elementKey, 'tag': tag, 'title': title, 'description': description, 'dataType': dataType, 'templateType': templateType, 'orderIndex': orderIndex, 'parentId': parentId, 'value': JsonConverters.toJson(value,'dynamic',context!), 'children': JsonConverters.toJson(children,'List',context!) }; getTypeName() => "ElementDefinitionDto"; TypeContext? context = _ctx; } // @Route("/merge-file", "POST") class MergeFileRequest implements IReturn, IConvertible, IPost { TemplateDefinitionDto? template; List? elements; MergeFileRequest({this.template,this.elements}); MergeFileRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { template = JsonConverters.fromJson(json['template'],'TemplateDefinitionDto',context!); elements = JsonConverters.fromJson(json['elements'],'List',context!); return this; } Map toJson() => { 'template': JsonConverters.toJson(template,'TemplateDefinitionDto',context!), 'elements': JsonConverters.toJson(elements,'List',context!) }; createResponse() => dynamic(); getResponseTypeName() => "dynamic"; getTypeName() => "MergeFileRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: { 'TemplateDefinitionDto': TypeInfo(TypeOf.Class, create:() => TemplateDefinitionDto()), 'ElementDefinitionDto': TypeInfo(TypeOf.Class, create:() => ElementDefinitionDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'MergeFileRequest': TypeInfo(TypeOf.Class, create:() => MergeFileRequest()), });