/* Options: Date: 2026-05-29 19:16:24 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetCompanyFeatureFlags.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class CompanyFeatureFlagResponse implements IConvertible { int Id = 0; String Name = ""; bool IsEnabled; bool IsPublic; bool CompanyAdminCanToggle; ResponseStatus ResponseStatus; CompanyFeatureFlagResponse({this.Id,this.Name,this.IsEnabled,this.IsPublic,this.CompanyAdminCanToggle,this.ResponseStatus}); CompanyFeatureFlagResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; IsEnabled = json['IsEnabled']; IsPublic = json['IsPublic']; CompanyAdminCanToggle = json['CompanyAdminCanToggle']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'IsEnabled': IsEnabled, 'IsPublic': IsPublic, 'CompanyAdminCanToggle': CompanyAdminCanToggle, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "CompanyFeatureFlagResponse"; TypeContext? context = _ctx; } // @Route("/feature/{CompanyId}", "GET") // @ApiResponse(Description="Returned if the company was not found", StatusCode=404) class GetCompanyFeatureFlags implements IReturn>, ICompany, IConvertible, IGet { /** * The company id. */ // @ApiMember(Description="The company id.", IsRequired=true, ParameterType="path") String CompanyId = ""; GetCompanyFeatureFlags({this.CompanyId}); GetCompanyFeatureFlags.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; return this; } Map toJson() => { 'CompanyId': CompanyId }; createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "GetCompanyFeatureFlags"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bookmore.com', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'CompanyFeatureFlagResponse': TypeInfo(TypeOf.Class, create:() => CompanyFeatureFlagResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'GetCompanyFeatureFlags': TypeInfo(TypeOf.Class, create:() => GetCompanyFeatureFlags()), });