/* Options: Date: 2025-12-15 14:31:39 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateCompanyCategory.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CompanyCategoryQueryResponse implements IConvertible { int? Id; String? Name; bool? Active; CompanyCategoryQueryResponse({this.Id,this.Name,this.Active}); CompanyCategoryQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Active = json['Active']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Active': Active }; getTypeName() => "CompanyCategoryQueryResponse"; TypeContext? context = _ctx; } // @Route("/categories", "POST") class CreateCompanyCategory implements IReturn, IConvertible, IPost { /** * Name of the category */ // @ApiMember(Description="Name of the category", IsRequired=true) String? Name; CreateCompanyCategory({this.Name}); CreateCompanyCategory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; return this; } Map toJson() => { 'Name': Name }; createResponse() => CompanyCategoryQueryResponse(); getResponseTypeName() => "CompanyCategoryQueryResponse"; getTypeName() => "CreateCompanyCategory"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bookmore.com', types: { 'CompanyCategoryQueryResponse': TypeInfo(TypeOf.Class, create:() => CompanyCategoryQueryResponse()), 'CreateCompanyCategory': TypeInfo(TypeOf.Class, create:() => CreateCompanyCategory()), });