/* Options: Date: 2025-12-15 15:19:14 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: UpdateCompanyCategory.* //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", "PUT") class UpdateCompanyCategory implements IReturn, IConvertible, IPut { /** * If of the category to update */ // @ApiMember(Description="If of the category to update") int? Id; String? Name; bool? Active; UpdateCompanyCategory({this.Id,this.Name,this.Active}); UpdateCompanyCategory.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 }; createResponse() => CompanyCategoryQueryResponse(); getResponseTypeName() => "CompanyCategoryQueryResponse"; getTypeName() => "UpdateCompanyCategory"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bookmore.com', types: { 'CompanyCategoryQueryResponse': TypeInfo(TypeOf.Class, create:() => CompanyCategoryQueryResponse()), 'UpdateCompanyCategory': TypeInfo(TypeOf.Class, create:() => UpdateCompanyCategory()), });