/* Options: Date: 2025-05-04 23:32:32 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: ChatEventsNodeNewMessageCallback.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @Route("/nodes/chat-events/new-message") class ChatEventsNodeNewMessageCallback implements IConvertible, IPost { String? accountId; String? endpointId; String? sessionId; String? body; String? sender; String? senderDisplayName; String? attachmentUri; String? attachmentContentType; String? newMessage; String? newMessageBody; String? newMessageSender; ChatEventsNodeNewMessageCallback({this.accountId,this.endpointId,this.sessionId,this.body,this.sender,this.senderDisplayName,this.attachmentUri,this.attachmentContentType,this.newMessage,this.newMessageBody,this.newMessageSender}); ChatEventsNodeNewMessageCallback.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; endpointId = json['endpointId']; sessionId = json['sessionId']; body = json['body']; sender = json['sender']; senderDisplayName = json['senderDisplayName']; attachmentUri = json['attachmentUri']; attachmentContentType = json['attachmentContentType']; newMessage = json['newMessage']; newMessageBody = json['newMessageBody']; newMessageSender = json['newMessageSender']; return this; } Map toJson() => { 'accountId': accountId, 'endpointId': endpointId, 'sessionId': sessionId, 'body': body, 'sender': sender, 'senderDisplayName': senderDisplayName, 'attachmentUri': attachmentUri, 'attachmentContentType': attachmentContentType, 'newMessage': newMessage, 'newMessageBody': newMessageBody, 'newMessageSender': newMessageSender }; getTypeName() => "ChatEventsNodeNewMessageCallback"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'ChatEventsNodeNewMessageCallback': TypeInfo(TypeOf.Class, create:() => ChatEventsNodeNewMessageCallback()), });