/* Options: Date: 2025-11-03 19:06:46 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ArticleTypeQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class ArticleTypesQueryResponse implements IConvertible { /** * The article type id */ // @ApiMember(Description="The article type id") int? Id; /** * The article type name */ // @ApiMember(Description="The article type name") String? Name; /** * The article type description */ // @ApiMember(Description="The article type description") String? Description; ArticleTypesQueryResponse({this.Id,this.Name,this.Description}); ArticleTypesQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description }; getTypeName() => "ArticleTypesQueryResponse"; TypeContext? context = _ctx; } // @Route("/articles/types", "GET") // @ValidateRequest(Validator="IsAuthenticated") class ArticleTypeQuery implements IReturn, ICompany, IConvertible, IGet { /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") String? CompanyId; ArticleTypeQuery({this.CompanyId}); ArticleTypeQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; return this; } Map toJson() => { 'CompanyId': CompanyId }; createResponse() => ArticleTypesQueryResponse(); getResponseTypeName() => "ArticleTypesQueryResponse"; getTypeName() => "ArticleTypeQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'ArticleTypesQueryResponse': TypeInfo(TypeOf.Class, create:() => ArticleTypesQueryResponse()), 'ArticleTypeQuery': TypeInfo(TypeOf.Class, create:() => ArticleTypeQuery()), });