/* Options: Date: 2025-01-18 07:42:32 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: ListWebhookEndpoint.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class WebhookEndpoint implements IConvertible { String? Description; String? Url; String? Id; bool? Disabled; List? EventTypes; WebhookEndpoint({this.Description,this.Url,this.Id,this.Disabled,this.EventTypes}); WebhookEndpoint.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Description = json['Description']; Url = json['Url']; Id = json['Id']; Disabled = json['Disabled']; EventTypes = JsonConverters.fromJson(json['EventTypes'],'List',context!); return this; } Map toJson() => { 'Description': Description, 'Url': Url, 'Id': Id, 'Disabled': Disabled, 'EventTypes': JsonConverters.toJson(EventTypes,'List',context!) }; getTypeName() => "WebhookEndpoint"; TypeContext? context = _ctx; } class ListEndpointsResponse implements IConvertible { List? Endpoints; ListEndpointsResponse({this.Endpoints}); ListEndpointsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Endpoints = JsonConverters.fromJson(json['Endpoints'],'List',context!); return this; } Map toJson() => { 'Endpoints': JsonConverters.toJson(Endpoints,'List',context!) }; getTypeName() => "ListEndpointsResponse"; TypeContext? context = _ctx; } // @Route("/webhook/endpoints", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class ListWebhookEndpoint 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; ListWebhookEndpoint({this.CompanyId}); ListWebhookEndpoint.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; return this; } Map toJson() => { 'CompanyId': CompanyId }; createResponse() => ListEndpointsResponse(); getResponseTypeName() => "ListEndpointsResponse"; getTypeName() => "ListWebhookEndpoint"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'WebhookEndpoint': TypeInfo(TypeOf.Class, create:() => WebhookEndpoint()), 'ListEndpointsResponse': TypeInfo(TypeOf.Class, create:() => ListEndpointsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ListWebhookEndpoint': TypeInfo(TypeOf.Class, create:() => ListWebhookEndpoint()), });