/* Options: Date: 2025-01-18 08:59:38 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: WebhookSettingsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class WebhookSettingsResponse implements IConvertible { bool? Enabled; String? Message; String? CompanyId; WebhookSettingsResponse({this.Enabled,this.Message,this.CompanyId}); WebhookSettingsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Enabled = json['Enabled']; Message = json['Message']; CompanyId = json['CompanyId']; return this; } Map toJson() => { 'Enabled': Enabled, 'Message': Message, 'CompanyId': CompanyId }; getTypeName() => "WebhookSettingsResponse"; TypeContext? context = _ctx; } // @Route("/webhook/settings", "GET") class WebhookSettingsRequest 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.", IsRequired=true, ParameterType="query") String? CompanyId; WebhookSettingsRequest({this.CompanyId}); WebhookSettingsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; return this; } Map toJson() => { 'CompanyId': CompanyId }; createResponse() => WebhookSettingsResponse(); getResponseTypeName() => "WebhookSettingsResponse"; getTypeName() => "WebhookSettingsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'WebhookSettingsResponse': TypeInfo(TypeOf.Class, create:() => WebhookSettingsResponse()), 'WebhookSettingsRequest': TypeInfo(TypeOf.Class, create:() => WebhookSettingsRequest()), });