/* Options: Date: 2026-05-09 19:52:26 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: CreateOrUpdatePostCategoryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseResponse implements IResponseRequest, IConvertible { int? code; String? message; PostCategory? 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'],'PostCategory',context!); return this; } Map toJson() => { 'code': code, 'message': message, 'data': JsonConverters.toJson(data,'PostCategory',context!) }; getTypeName() => "BaseResponse<$PostCategory>"; TypeContext? context = _ctx; } // @Route("/post-category", "POST") class CreateOrUpdatePostCategoryRequest implements IReturn>, IConvertible, IPost { int? id; String? name; String? slug; int? orderIndex; bool? isActive; CreateOrUpdatePostCategoryRequest({this.id,this.name,this.slug,this.orderIndex,this.isActive}); CreateOrUpdatePostCategoryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; slug = json['slug']; orderIndex = json['orderIndex']; isActive = json['isActive']; return this; } Map toJson() => { 'id': id, 'name': name, 'slug': slug, 'orderIndex': orderIndex, 'isActive': isActive }; createResponse() => BaseResponse(); getResponseTypeName() => "BaseResponse"; getTypeName() => "CreateOrUpdatePostCategoryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'chienbinhdevias_admin_api_sandbox.adnx.vn', types: { 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'PostCategory': TypeInfo(TypeOf.Class, create:() => PostCategory()), 'CreateOrUpdatePostCategoryRequest': TypeInfo(TypeOf.Class, create:() => CreateOrUpdatePostCategoryRequest()), });