/* Options: Date: 2026-05-14 01:16:25 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: WidgetConfigurationQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class WidgetConfigurationResponse implements IConvertible { String Id = ""; String CompanyId = ""; String Name = ""; String? Slug; String? Description; String Configuration = ""; int SchemaVersion = 0; DateTime CreatedDate = DateTime(0); DateTime? UpdatedDate; ResponseStatus ResponseStatus; WidgetConfigurationResponse({this.Id,this.CompanyId,this.Name,this.Slug,this.Description,this.Configuration,this.SchemaVersion,this.CreatedDate,this.UpdatedDate,this.ResponseStatus}); WidgetConfigurationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CompanyId = json['CompanyId']; Name = json['Name']; Slug = json['Slug']; Description = json['Description']; Configuration = json['Configuration']; SchemaVersion = json['SchemaVersion']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); UpdatedDate = JsonConverters.fromJson(json['UpdatedDate'],'DateTime',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Id': Id, 'CompanyId': CompanyId, 'Name': Name, 'Slug': Slug, 'Description': Description, 'Configuration': Configuration, 'SchemaVersion': SchemaVersion, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'UpdatedDate': JsonConverters.toJson(UpdatedDate,'DateTime',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "WidgetConfigurationResponse"; TypeContext? context = _ctx; } // @Route("/widget/configuration", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class WidgetConfigurationQuery 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; /** * Optional slug to fetch a single configuration (e.g., 'hairsalon-001'). If provided, ignores other filter parameters. */ // @ApiMember(Description="Optional slug to fetch a single configuration (e.g., 'hairsalon-001'). If provided, ignores other filter parameters.") String? Slug; /** * Filter by schema version. */ // @ApiMember(Description="Filter by schema version.") int? SchemaVersion; /** * Number of records to skip */ // @ApiMember(Description="Number of records to skip") int? Skip; /** * Number of records to take */ // @ApiMember(Description="Number of records to take") int? Take; /** * Sort field */ // @ApiMember(Description="Sort field") String OrderBy = ""; WidgetConfigurationQuery({this.CompanyId,this.Slug,this.SchemaVersion,this.Skip,this.Take,this.OrderBy}); WidgetConfigurationQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Slug = json['Slug']; SchemaVersion = json['SchemaVersion']; Skip = json['Skip']; Take = json['Take']; OrderBy = json['OrderBy']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Slug': Slug, 'SchemaVersion': SchemaVersion, 'Skip': Skip, 'Take': Take, 'OrderBy': OrderBy }; createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "WidgetConfigurationQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'WidgetConfigurationResponse': TypeInfo(TypeOf.Class, create:() => WidgetConfigurationResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'WidgetConfigurationQuery': TypeInfo(TypeOf.Class, create:() => WidgetConfigurationQuery()), });