/* Options: Date: 2025-01-18 08:48:35 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: ListWebhookEventTypesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WebhookEventTypeDto implements IConvertible { String? Name; String? Description; int? Id; String? Value; WebhookEventTypeDto({this.Name,this.Description,this.Id,this.Value}); WebhookEventTypeDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Description = json['Description']; Id = json['Id']; Value = json['Value']; return this; } Map toJson() => { 'Name': Name, 'Description': Description, 'Id': Id, 'Value': Value }; getTypeName() => "WebhookEventTypeDto"; TypeContext? context = _ctx; } class WebhookEventTypesResponse implements IConvertible { List? EventTypes; WebhookEventTypesResponse({this.EventTypes}); WebhookEventTypesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { EventTypes = JsonConverters.fromJson(json['EventTypes'],'List',context!); return this; } Map toJson() => { 'EventTypes': JsonConverters.toJson(EventTypes,'List',context!) }; getTypeName() => "WebhookEventTypesResponse"; TypeContext? context = _ctx; } // @Route("/webhook/eventtypes", "GET") class ListWebhookEventTypesRequest implements IReturn, IConvertible, IGet { ListWebhookEventTypesRequest(); ListWebhookEventTypesRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => WebhookEventTypesResponse(); getResponseTypeName() => "WebhookEventTypesResponse"; getTypeName() => "ListWebhookEventTypesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'WebhookEventTypeDto': TypeInfo(TypeOf.Class, create:() => WebhookEventTypeDto()), 'WebhookEventTypesResponse': TypeInfo(TypeOf.Class, create:() => WebhookEventTypesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ListWebhookEventTypesRequest': TypeInfo(TypeOf.Class, create:() => ListWebhookEventTypesRequest()), });