/* Options: Date: 2025-01-18 07:56:12 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: UpdateWebhookSettingsRequest.* //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", "PUT") class UpdateWebhookSettingsRequest implements IReturn, ICompany, IConvertible, IPut { /** * 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; // @Required() // @ApiMember() bool? Enabled; UpdateWebhookSettingsRequest({this.CompanyId,this.Enabled}); UpdateWebhookSettingsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Enabled = json['Enabled']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Enabled': Enabled }; createResponse() => WebhookSettingsResponse(); getResponseTypeName() => "WebhookSettingsResponse"; getTypeName() => "UpdateWebhookSettingsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'WebhookSettingsResponse': TypeInfo(TypeOf.Class, create:() => WebhookSettingsResponse()), 'UpdateWebhookSettingsRequest': TypeInfo(TypeOf.Class, create:() => UpdateWebhookSettingsRequest()), });