/* Options: Date: 2026-05-09 19:56:43 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://chienbinhdevias-admin-api-sandbox.adnx.vn //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetPermissionRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseResponse implements IResponseRequest, IConvertible { int? code; String? message; Permission? data; BaseResponse({this.code,this.message,this.data}); BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; message = json['message']; data = JsonConverters.fromJson(json['data'],'Permission',context!); return this; } Map toJson() => { 'code': code, 'message': message, 'data': JsonConverters.toJson(data,'Permission',context!) }; getTypeName() => "BaseResponse<$Permission>"; TypeContext? context = _ctx; } // @Route("/permissions/{id}", "GET") // @Route("/permissions/{id}", "DELETE") class GetPermissionRequest implements IReturn>, IConvertible, IGet { int? id; GetPermissionRequest({this.id}); GetPermissionRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => BaseResponse(); getResponseTypeName() => "BaseResponse"; getTypeName() => "GetPermissionRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'chienbinhdevias_admin_api_sandbox.adnx.vn', types: { 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'Permission': TypeInfo(TypeOf.Class, create:() => Permission()), 'GetPermissionRequest': TypeInfo(TypeOf.Class, create:() => GetPermissionRequest()), });