/* Options: Date: 2024-07-03 13:21:54 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CustomFieldSlotsQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class CustomFieldSlotsQueryResponse implements IConvertible { /** * Table to which the field belongs */ // @ApiMember(Description="Table to which the field belongs") String? Table; /** * Custom field id */ // @ApiMember(Description="Custom field id") int? Id; /** * Custom field column name */ // @ApiMember(Description="Custom field column name") String? Name; /** * The field datatype */ // @ApiMember(Description="The field datatype") String? Datatype; /** * If the slot is free or occupied */ // @ApiMember(Description="If the slot is free or occupied") bool? Occupied; CustomFieldSlotsQueryResponse({this.Table,this.Id,this.Name,this.Datatype,this.Occupied}); CustomFieldSlotsQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Table = json['Table']; Id = json['Id']; Name = json['Name']; Datatype = json['Datatype']; Occupied = json['Occupied']; return this; } Map toJson() => { 'Table': Table, 'Id': Id, 'Name': Name, 'Datatype': Datatype, 'Occupied': Occupied }; getTypeName() => "CustomFieldSlotsQueryResponse"; TypeContext? context = _ctx; } // @Route("/customfields/slots", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) // @ValidateRequest(Validator="IsAuthenticated") class CustomFieldSlotsQuery implements IReturn, ICompany, IConvertible, IGet { /** * Company id to find custom fields for */ // @ApiMember(Description="Company id to find custom fields for", ParameterType="query") String? CompanyId; /** * Table to which the field belongs */ // @ApiMember(Description="Table to which the field belongs", IsRequired=true) String? Table; /** * If you want to receive only free slots (not occupied). */ // @ApiMember(Description="If you want to receive only free slots (not occupied).") bool? FreeSlots; CustomFieldSlotsQuery({this.CompanyId,this.Table,this.FreeSlots}); CustomFieldSlotsQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Table = json['Table']; FreeSlots = json['FreeSlots']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Table': Table, 'FreeSlots': FreeSlots }; createResponse() => CustomFieldSlotsQueryResponse(); getResponseTypeName() => "CustomFieldSlotsQueryResponse"; getTypeName() => "CustomFieldSlotsQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'CustomFieldSlotsQueryResponse': TypeInfo(TypeOf.Class, create:() => CustomFieldSlotsQueryResponse()), 'CustomFieldSlotsQuery': TypeInfo(TypeOf.Class, create:() => CustomFieldSlotsQuery()), });