/* Options: Date: 2025-07-01 15:26:29 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CompanyOwnerQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CompanyOwnerResponse implements IConvertible { /** * Company owner id */ // @ApiMember(Description="Company owner id") int? Id; /** * Company owner name */ // @ApiMember(Description="Company owner name") String? Name; CompanyOwnerResponse({this.Id,this.Name}); CompanyOwnerResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; return this; } Map toJson() => { 'Id': Id, 'Name': Name }; getTypeName() => "CompanyOwnerResponse"; TypeContext? context = _ctx; } // @Route("/companyOwners", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) class CompanyOwnerQuery extends QueryDb2 implements IReturn>, IConvertible, IGet { CompanyOwnerQuery(); CompanyOwnerQuery.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "CompanyOwnerQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'CompanyOwnerResponse': TypeInfo(TypeOf.Class, create:() => CompanyOwnerResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'CompanyOwnerQuery': TypeInfo(TypeOf.Class, create:() => CompanyOwnerQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });