/* Options: Date: 2026-04-17 20:49:59 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://qlcn-api.vsmlab.vn //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: HealthCheckRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ServiceHealthResult implements IConvertible { String? name; String? status; int? responseTimeMs; String? message; String? host; ServiceHealthResult({this.name,this.status,this.responseTimeMs,this.message,this.host}); ServiceHealthResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; status = json['status']; responseTimeMs = json['responseTimeMs']; message = json['message']; host = json['host']; return this; } Map toJson() => { 'name': name, 'status': status, 'responseTimeMs': responseTimeMs, 'message': message, 'host': host }; getTypeName() => "ServiceHealthResult"; TypeContext? context = _ctx; } class HealthCheckResponse implements IConvertible { List? services; DateTime? checkedAt; HealthCheckResponse? backgroundServices; HealthCheckResponse({this.services,this.checkedAt,this.backgroundServices}); HealthCheckResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { services = JsonConverters.fromJson(json['services'],'List',context!); checkedAt = JsonConverters.fromJson(json['checkedAt'],'DateTime',context!); backgroundServices = JsonConverters.fromJson(json['backgroundServices'],'HealthCheckResponse',context!); return this; } Map toJson() => { 'services': JsonConverters.toJson(services,'List',context!), 'checkedAt': JsonConverters.toJson(checkedAt,'DateTime',context!), 'backgroundServices': JsonConverters.toJson(backgroundServices,'HealthCheckResponse',context!) }; getTypeName() => "HealthCheckResponse"; TypeContext? context = _ctx; } // @Route("/system/health-check", "GET") class HealthCheckRequest implements IReturn, IConvertible, IGet { HealthCheckRequest(); HealthCheckRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => HealthCheckResponse(); getResponseTypeName() => "HealthCheckResponse"; getTypeName() => "HealthCheckRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'qlcn_api.vsmlab.vn', types: { 'ServiceHealthResult': TypeInfo(TypeOf.Class, create:() => ServiceHealthResult()), 'HealthCheckResponse': TypeInfo(TypeOf.Class, create:() => HealthCheckResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'HealthCheckRequest': TypeInfo(TypeOf.Class, create:() => HealthCheckRequest()), });