/* Options: Date: 2026-05-08 19:20:35 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://tanchinhdo-api-sandbox.adnx.vn //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetCategoriesWithPostRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseResponse implements IResponseRequest, IConvertible { int? code; String? message; CategoryWithPost? 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'],'CategoryWithPost',context!); return this; } Map toJson() => { 'code': code, 'message': message, 'data': JsonConverters.toJson(data,'CategoryWithPost',context!) }; getTypeName() => "BaseResponse<$CategoryWithPost>"; TypeContext? context = _ctx; } // @Route("/categories/posts", "GET") class GetCategoriesWithPostRequest implements IReturn>, IConvertible, IGet { GetCategoriesWithPostRequest(); GetCategoriesWithPostRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => BaseResponse(); getResponseTypeName() => "BaseResponse"; getTypeName() => "GetCategoriesWithPostRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'tanchinhdo_api_sandbox.adnx.vn', types: { 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'CategoryWithPost': TypeInfo(TypeOf.Class, create:() => CategoryWithPost()), 'GetCategoriesWithPostRequest': TypeInfo(TypeOf.Class, create:() => GetCategoriesWithPostRequest()), });