/* Options: Date: 2026-03-16 06:24: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: HealthCheckRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ServiceHealthResult implements IConvertible { String? name; String? status; int? responseTimeMs; String? message; ServiceHealthResult({this.name,this.status,this.responseTimeMs,this.message}); ServiceHealthResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; status = json['status']; responseTimeMs = json['responseTimeMs']; message = json['message']; return this; } Map toJson() => { 'name': name, 'status': status, 'responseTimeMs': responseTimeMs, 'message': message }; getTypeName() => "ServiceHealthResult"; TypeContext? context = _ctx; } class HealthCheckResponse implements IConvertible { List? services; DateTime? checkedAt; HealthCheckResponse({this.services,this.checkedAt}); HealthCheckResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { services = JsonConverters.fromJson(json['services'],'List',context!); checkedAt = JsonConverters.fromJson(json['checkedAt'],'DateTime',context!); return this; } Map toJson() => { 'services': JsonConverters.toJson(services,'List',context!), 'checkedAt': JsonConverters.toJson(checkedAt,'DateTime',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: 'etc_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()), });