/* Options: Date: 2025-09-14 05:51:44 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.trackunit.com/public //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetCategory.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class Category implements IConvertible { // @DataMember String? id; // @DataMember String? name; Category({this.id,this.name}); Category.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; return this; } Map toJson() => { 'id': id, 'name': name }; getTypeName() => "Category"; TypeContext? context = _ctx; } // @DataContract class GetCategoryResponse implements IConvertible { // @DataMember List? list; // @DataMember ResponseStatus? responseStatus; GetCategoryResponse({this.list,this.responseStatus}); GetCategoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { list = JsonConverters.fromJson(json['list'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'list': JsonConverters.toJson(list,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetCategoryResponse"; TypeContext? context = _ctx; } // @Route("/GetCategory", "GET POST") // @Route("/GetCategory/{Id}", "GET POST") // @Route("/Category", "GET") // @Route("/Category/{Id}", "GET") // @DataContract class GetCategory implements IReturn, IConvertible, IPost { // @DataMember String? id; GetCategory({this.id}); GetCategory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => GetCategoryResponse(); getResponseTypeName() => "GetCategoryResponse"; getTypeName() => "GetCategory"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.trackunit.com', types: { 'Category': TypeInfo(TypeOf.Class, create:() => Category()), 'GetCategoryResponse': TypeInfo(TypeOf.Class, create:() => GetCategoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCategory': TypeInfo(TypeOf.Class, create:() => GetCategory()), });