/* Options: Date: 2026-02-26 07:15:29 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: UpdateAppConfigsBySection.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum AppConfigSection { AppInfo, Smtp, Keycloak, } class AppConfigItem implements IConvertible { String? key; String? value; String? description; AppConfigItem({this.key,this.value,this.description}); AppConfigItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { key = json['key']; value = json['value']; description = json['description']; return this; } Map toJson() => { 'key': key, 'value': value, 'description': description }; getTypeName() => "AppConfigItem"; TypeContext? context = _ctx; } // @Route("/app-configs/{Section}", "POST") class UpdateAppConfigsBySection implements IReturn, IConvertible, IPost { AppConfigSection? section; List? items; UpdateAppConfigsBySection({this.section,this.items}); UpdateAppConfigsBySection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { section = JsonConverters.fromJson(json['section'],'AppConfigSection',context!); items = JsonConverters.fromJson(json['items'],'List',context!); return this; } Map toJson() => { 'section': JsonConverters.toJson(section,'AppConfigSection',context!), 'items': JsonConverters.toJson(items,'List',context!) }; createResponse() => dynamic(); getResponseTypeName() => "dynamic"; getTypeName() => "UpdateAppConfigsBySection"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: { 'AppConfigSection': TypeInfo(TypeOf.Enum, enumValues:AppConfigSection.values), 'AppConfigItem': TypeInfo(TypeOf.Class, create:() => AppConfigItem()), 'UpdateAppConfigsBySection': TypeInfo(TypeOf.Class, create:() => UpdateAppConfigsBySection()), 'List': TypeInfo(TypeOf.Class, create:() => []), });