/* Options: Date: 2026-10-26 12:32:36 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: MessagingTestRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class MessagingTestSend implements IConvertible { String? StepId; String? Status; String? Output; String? Body; int? Segments; int? SmsMessageId; MessagingTestSend({this.StepId,this.Status,this.Output,this.Body,this.Segments,this.SmsMessageId}); MessagingTestSend.fromJson(Map json) { fromMap(json); } fromMap(Map json) { StepId = json['StepId']; Status = json['Status']; Output = json['Output']; Body = json['Body']; Segments = json['Segments']; SmsMessageId = json['SmsMessageId']; return this; } Map toJson() => { 'StepId': StepId, 'Status': Status, 'Output': Output, 'Body': Body, 'Segments': Segments, 'SmsMessageId': SmsMessageId }; getTypeName() => "MessagingTestSend"; TypeContext? context = _ctx; } class MessagingTestResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Sent = []; MessagingTestResponse({this.ResponseStatus,this.Sent}); MessagingTestResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Sent = JsonConverters.fromJson(json['Sent'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Sent': JsonConverters.toJson(Sent,'List',context!) }; getTypeName() => "MessagingTestResponse"; TypeContext? context = _ctx; } // @Route("/v1/messaging/test", "POST") class MessagingTestRequest implements IReturn, IConvertible, IPost { String? RuleKey; String? BranchId; String? LineId; List? StepIds = []; String? ToPhone; bool? Remember; MessagingTestRequest({this.RuleKey,this.BranchId,this.LineId,this.StepIds,this.ToPhone,this.Remember}); MessagingTestRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RuleKey = json['RuleKey']; BranchId = json['BranchId']; LineId = json['LineId']; StepIds = JsonConverters.fromJson(json['StepIds'],'List',context!); ToPhone = json['ToPhone']; Remember = json['Remember']; return this; } Map toJson() => { 'RuleKey': RuleKey, 'BranchId': BranchId, 'LineId': LineId, 'StepIds': JsonConverters.toJson(StepIds,'List',context!), 'ToPhone': ToPhone, 'Remember': Remember }; createResponse() => MessagingTestResponse(); getResponseTypeName() => "MessagingTestResponse"; getTypeName() => "MessagingTestRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'MessagingTestSend': TypeInfo(TypeOf.Class, create:() => MessagingTestSend()), 'MessagingTestResponse': TypeInfo(TypeOf.Class, create:() => MessagingTestResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'MessagingTestRequest': TypeInfo(TypeOf.Class, create:() => MessagingTestRequest()), });