/* Options: Date: 2025-05-04 22:58:08 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: NewFlowMessage.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Struct extends Map implements IConvertible { Struct(); Struct.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "Struct"; TypeContext? context = _ctx; } class Value implements IConvertible { bool? boolValue; String? stringValue; double? numberValue; List? listValue; Struct? structValue; Value({this.boolValue,this.stringValue,this.numberValue,this.listValue,this.structValue}); Value.fromJson(Map json) { fromMap(json); } fromMap(Map json) { boolValue = json['boolValue']; stringValue = json['stringValue']; numberValue = JsonConverters.toDouble(json['numberValue']); listValue = JsonConverters.fromJson(json['listValue'],'List',context!); structValue = JsonConverters.fromJson(json['structValue'],'Struct',context!); return this; } Map toJson() => { 'boolValue': boolValue, 'stringValue': stringValue, 'numberValue': numberValue, 'listValue': JsonConverters.toJson(listValue,'List',context!), 'structValue': JsonConverters.toJson(structValue,'Struct',context!) }; getTypeName() => "Value"; TypeContext? context = _ctx; } // @Route("/flows/message") class NewFlowMessage implements IReturnVoid, IConvertible, IPost { /** * The ID of the endpoint that received the message */ // @ApiMember(Description="The ID of the endpoint that received the message") String? endpointId; /** * The session values */ // @ApiMember(Description="The session values") Struct? sessionParameters; /** * The from address */ // @ApiMember(Description="The from address") String? fromAddress; /** * The to address */ // @ApiMember(Description="The to address") String? toAddress; /** * The identity of the sender */ // @ApiMember(Description="The identity of the sender") String? identity; /** * The display name of the sender (will default to identity if not specified */ // @ApiMember(Description="The display name of the sender (will default to identity if not specified") String? displayName; /** * The URL to call when replies need to be sent back */ // @ApiMember(Description="The URL to call when replies need to be sent back") String? messageUrl; NewFlowMessage({this.endpointId,this.sessionParameters,this.fromAddress,this.toAddress,this.identity,this.displayName,this.messageUrl}); NewFlowMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { endpointId = json['endpointId']; sessionParameters = JsonConverters.fromJson(json['sessionParameters'],'Struct',context!); fromAddress = json['fromAddress']; toAddress = json['toAddress']; identity = json['identity']; displayName = json['displayName']; messageUrl = json['messageUrl']; return this; } Map toJson() => { 'endpointId': endpointId, 'sessionParameters': JsonConverters.toJson(sessionParameters,'Struct',context!), 'fromAddress': fromAddress, 'toAddress': toAddress, 'identity': identity, 'displayName': displayName, 'messageUrl': messageUrl }; createResponse() {} getTypeName() => "NewFlowMessage"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'Struct': TypeInfo(TypeOf.Class, create:() => Struct()), 'Value': TypeInfo(TypeOf.Class, create:() => Value()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'NewFlowMessage': TypeInfo(TypeOf.Class, create:() => NewFlowMessage()), });