/* Options: Date: 2026-03-07 05:01:02 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CogitoWebhookRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @Route("/nodes/cogito/webhook/{accountId}") class CogitoWebhookRequest implements IConvertible, IPost { String? accountId; String? type; List? phoneNumbers; String? role; String? content; CogitoWebhookRequest({this.accountId,this.type,this.phoneNumbers,this.role,this.content}); CogitoWebhookRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; type = json['type']; phoneNumbers = JsonConverters.fromJson(json['phoneNumbers'],'List',context!); role = json['role']; content = json['content']; return this; } Map toJson() => { 'accountId': accountId, 'type': type, 'phoneNumbers': JsonConverters.toJson(phoneNumbers,'List',context!), 'role': role, 'content': content }; getTypeName() => "CogitoWebhookRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'evovoice.io', types: { 'CogitoWebhookRequest': TypeInfo(TypeOf.Class, create:() => CogitoWebhookRequest()), });