/* Options: Date: 2024-07-03 13:04:23 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: WebhookCreateAgreement.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WebhookAgreements implements IConvertible { String? id; String? label; List? documents; WebhookAgreements({this.id,this.label,this.documents}); WebhookAgreements.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; label = json['label']; documents = JsonConverters.fromJson(json['documents'],'List',context!); return this; } Map toJson() => { 'id': id, 'label': label, 'documents': JsonConverters.toJson(documents,'List',context!) }; getTypeName() => "WebhookAgreements"; TypeContext? context = _ctx; } class Releases implements IConvertible { List? deletion; Releases({this.deletion}); Releases.fromJson(Map json) { fromMap(json); } fromMap(Map json) { deletion = JsonConverters.fromJson(json['deletion'],'List',context!); return this; } Map toJson() => { 'deletion': JsonConverters.toJson(deletion,'List',context!) }; getTypeName() => "Releases"; TypeContext? context = _ctx; } // @Route("/webhooks/terms", "POST") // @ApiResponse(Description="Returned if there is a validation error on the input parameters", StatusCode=400) // @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) class WebhookCreateAgreement implements IConvertible, IPost { Releases? releases; List? documents; String? secret; WebhookCreateAgreement({this.releases,this.documents,this.secret}); WebhookCreateAgreement.fromJson(Map json) { fromMap(json); } fromMap(Map json) { releases = JsonConverters.fromJson(json['releases'],'Releases',context!); documents = JsonConverters.fromJson(json['documents'],'List',context!); secret = json['secret']; return this; } Map toJson() => { 'releases': JsonConverters.toJson(releases,'Releases',context!), 'documents': JsonConverters.toJson(documents,'List',context!), 'secret': secret }; getTypeName() => "WebhookCreateAgreement"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'WebhookAgreements': TypeInfo(TypeOf.Class, create:() => WebhookAgreements()), 'Releases': TypeInfo(TypeOf.Class, create:() => Releases()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'WebhookCreateAgreement': TypeInfo(TypeOf.Class, create:() => WebhookCreateAgreement()), });