/* Options: Date: 2025-05-05 01:07:15 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: NewOutgoingSession.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; /** * Create a new outgoing call and process it with the specified flow. This can only be used for voice sessions. If no caller ID is specified, we will use a random one. */ // @Route("/sessions/outgoing", "POST") // @Api(Description="Create a new outgoing call and process it with the specified flow. This can only be used for voice sessions. If no caller ID is specified, we will use a random one.") class NewOutgoingSession implements IReturnVoid, IPost, IConvertible { /** * The ID of the flow to use. This flow will be executed as soon as the call is answered. */ // @ApiMember(Description="The ID of the flow to use. This flow will be executed as soon as the call is answered.") String? flowId; /** * The E164 number to dial, e.g. +18144043093 */ // @ApiMember(Description="The E164 number to dial, e.g. +18144043093") String? numberToDial; /** * The Caller ID to use. This must be the E164 number of an owned phone number */ // @ApiMember(Description="The Caller ID to use. This must be the E164 number of an owned phone number") String? callerId; NewOutgoingSession({this.flowId,this.numberToDial,this.callerId}); NewOutgoingSession.fromJson(Map json) { fromMap(json); } fromMap(Map json) { flowId = json['flowId']; numberToDial = json['numberToDial']; callerId = json['callerId']; return this; } Map toJson() => { 'flowId': flowId, 'numberToDial': numberToDial, 'callerId': callerId }; createResponse() {} getTypeName() => "NewOutgoingSession"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'NewOutgoingSession': TypeInfo(TypeOf.Class, create:() => NewOutgoingSession()), });