/* Options: Date: 2025-05-04 23:49:11 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: LiveAnswerCallback.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class LiveAnswerCallbackTranscriptMessage implements IConvertible { DateTime? date; String? role; String? senderName; String? targetName; String? functionName; String? functionArgs; String? content; LiveAnswerCallbackTranscriptMessage({this.date,this.role,this.senderName,this.targetName,this.functionName,this.functionArgs,this.content}); LiveAnswerCallbackTranscriptMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { date = JsonConverters.fromJson(json['date'],'DateTime',context!); role = json['role']; senderName = json['senderName']; targetName = json['targetName']; functionName = json['functionName']; functionArgs = json['functionArgs']; content = json['content']; return this; } Map toJson() => { 'date': JsonConverters.toJson(date,'DateTime',context!), 'role': role, 'senderName': senderName, 'targetName': targetName, 'functionName': functionName, 'functionArgs': functionArgs, 'content': content }; getTypeName() => "LiveAnswerCallbackTranscriptMessage"; TypeContext? context = _ctx; } class LiveAnswerCallbackAttachment implements IConvertible { String? fileName; String? contentType; String? uri; String? data; LiveAnswerCallbackAttachment({this.fileName,this.contentType,this.uri,this.data}); LiveAnswerCallbackAttachment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { fileName = json['fileName']; contentType = json['contentType']; uri = json['uri']; data = json['data']; return this; } Map toJson() => { 'fileName': fileName, 'contentType': contentType, 'uri': uri, 'data': data }; getTypeName() => "LiveAnswerCallbackAttachment"; TypeContext? context = _ctx; } // @Route("/nodes/live-answer/callback") class LiveAnswerCallback implements IConvertible, IPost { String? sessionId; String? flowId; String? nodeId; String? clientId; String? conversationId; int? aiMinutes; String? from; String? to; List? transcript; DateTime? startDate; DateTime? endDate; List? attachments; LiveAnswerCallback({this.sessionId,this.flowId,this.nodeId,this.clientId,this.conversationId,this.aiMinutes,this.from,this.to,this.transcript,this.startDate,this.endDate,this.attachments}); LiveAnswerCallback.fromJson(Map json) { fromMap(json); } fromMap(Map json) { sessionId = json['sessionId']; flowId = json['flowId']; nodeId = json['nodeId']; clientId = json['clientId']; conversationId = json['conversationId']; aiMinutes = json['aiMinutes']; from = json['from']; to = json['to']; transcript = JsonConverters.fromJson(json['transcript'],'List',context!); startDate = JsonConverters.fromJson(json['startDate'],'DateTime',context!); endDate = JsonConverters.fromJson(json['endDate'],'DateTime',context!); attachments = JsonConverters.fromJson(json['attachments'],'List',context!); return this; } Map toJson() => { 'sessionId': sessionId, 'flowId': flowId, 'nodeId': nodeId, 'clientId': clientId, 'conversationId': conversationId, 'aiMinutes': aiMinutes, 'from': from, 'to': to, 'transcript': JsonConverters.toJson(transcript,'List',context!), 'startDate': JsonConverters.toJson(startDate,'DateTime',context!), 'endDate': JsonConverters.toJson(endDate,'DateTime',context!), 'attachments': JsonConverters.toJson(attachments,'List',context!) }; getTypeName() => "LiveAnswerCallback"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'LiveAnswerCallbackTranscriptMessage': TypeInfo(TypeOf.Class, create:() => LiveAnswerCallbackTranscriptMessage()), 'LiveAnswerCallbackAttachment': TypeInfo(TypeOf.Class, create:() => LiveAnswerCallbackAttachment()), 'LiveAnswerCallback': TypeInfo(TypeOf.Class, create:() => LiveAnswerCallback()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), });