/* Options: Date: 2025-10-27 21:54:11 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://duengageapi.uat.scadsoftware.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SendSmsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; class SmsMessage implements IConvertible { String? channel; String? to; String? content; String? clientMessageId; SmsMessage({this.channel,this.to,this.content,this.clientMessageId}); SmsMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { channel = json['channel']; to = json['to']; content = json['content']; clientMessageId = json['clientMessageId']; return this; } Map toJson() => { 'channel': channel, 'to': to, 'content': content, 'clientMessageId': clientMessageId }; getTypeName() => "SmsMessage"; TypeContext? context = _ctx; } class ClickatellMessageResponse implements IConvertible { List? messages; String? error; ResponseStatus? ResponseStatus; ClickatellMessageResponse({this.messages,this.error,this.ResponseStatus}); ClickatellMessageResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { messages = JsonConverters.fromJson(json['messages'],'List',context!); error = json['error']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'messages': JsonConverters.toJson(messages,'List',context!), 'error': error, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "ClickatellMessageResponse"; TypeContext? context = _ctx; } class GrandcomMsgResponse implements IConvertible { List? messages; String? error; ResponseStatus? ResponseStatus; GrandcomMsgResponse({this.messages,this.error,this.ResponseStatus}); GrandcomMsgResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { messages = JsonConverters.fromJson(json['messages'],'List',context!); error = json['error']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'messages': JsonConverters.toJson(messages,'List',context!), 'error': error, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "GrandcomMsgResponse"; TypeContext? context = _ctx; } class SMPPMsgResponse implements IConvertible { List? messages; String? error; ResponseStatus? ResponseStatus; SMPPMsgResponse({this.messages,this.error,this.ResponseStatus}); SMPPMsgResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { messages = JsonConverters.fromJson(json['messages'],'List',context!); error = json['error']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'messages': JsonConverters.toJson(messages,'List',context!), 'error': error, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "SMPPMsgResponse"; TypeContext? context = _ctx; } class SmsMsgResponse implements IConvertible { GrandcomMsgResponse? grandcomMsgResponse; ClickatellMessageResponse? clickatellMsgResponse; SMPPMsgResponse? SMPPMsgResponse; String? error; ResponseStatus? ResponseStatus; SmsMsgResponse({this.grandcomMsgResponse,this.clickatellMsgResponse,this.SMPPMsgResponse,this.error,this.ResponseStatus}); SmsMsgResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { grandcomMsgResponse = JsonConverters.fromJson(json['grandcomMsgResponse'],'GrandcomMsgResponse',context!); clickatellMsgResponse = JsonConverters.fromJson(json['clickatellMsgResponse'],'ClickatellMessageResponse',context!); SMPPMsgResponse = JsonConverters.fromJson(json['SMPPMsgResponse'],'SMPPMsgResponse',context!); error = json['error']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'grandcomMsgResponse': JsonConverters.toJson(grandcomMsgResponse,'GrandcomMsgResponse',context!), 'clickatellMsgResponse': JsonConverters.toJson(clickatellMsgResponse,'ClickatellMessageResponse',context!), 'SMPPMsgResponse': JsonConverters.toJson(SMPPMsgResponse,'SMPPMsgResponse',context!), 'error': error, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "SmsMsgResponse"; TypeContext? context = _ctx; } // @Route("/communication/message/sms", "POST") class SendSmsRequest implements IReturn, IConvertible, IPost { /** * Messages to be Sent */ // @ApiMember(Description="Messages to be Sent", IsRequired=true) List? Messages = []; SendSmsRequest({this.Messages}); SendSmsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Messages = JsonConverters.fromJson(json['Messages'],'List',context!); return this; } Map toJson() => { 'Messages': JsonConverters.toJson(Messages,'List',context!) }; createResponse() => SmsMsgResponse(); getResponseTypeName() => "SmsMsgResponse"; getTypeName() => "SendSmsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: { 'SmsMessage': TypeInfo(TypeOf.Class, create:() => SmsMessage()), 'ClickatellMessageResponse': TypeInfo(TypeOf.Class, create:() => ClickatellMessageResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ClickatellResponsesMsg': TypeInfo(TypeOf.Class, create:() => ClickatellResponsesMsg()), 'GrandcomMsgResponse': TypeInfo(TypeOf.Class, create:() => GrandcomMsgResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GrandcomResponseMsg': TypeInfo(TypeOf.Class, create:() => GrandcomResponseMsg()), 'SMPPMsgResponse': TypeInfo(TypeOf.Class, create:() => SMPPMsgResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SMPPResponseMsg': TypeInfo(TypeOf.Class, create:() => SMPPResponseMsg()), 'SmsMsgResponse': TypeInfo(TypeOf.Class, create:() => SmsMsgResponse()), 'SendSmsRequest': TypeInfo(TypeOf.Class, create:() => SendSmsRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });