/* Options: Date: 2025-10-28 01:16:36 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: SendClickatellSmsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; class ClickatellMessage implements IConvertible { String? channel; String? to; String? content; String? clientMessageId; ClickatellMessage({this.channel,this.to,this.content,this.clientMessageId}); ClickatellMessage.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() => "ClickatellMessage"; TypeContext? context = _ctx; } class ClickatellResponsesMsg implements IConvertible { String? apiMessageId; bool? accepted; String? to; String? error; ClickatellMessage? msg; ClickatellResponsesMsg({this.apiMessageId,this.accepted,this.to,this.error,this.msg}); ClickatellResponsesMsg.fromJson(Map json) { fromMap(json); } fromMap(Map json) { apiMessageId = json['apiMessageId']; accepted = json['accepted']; to = json['to']; error = json['error']; msg = JsonConverters.fromJson(json['msg'],'ClickatellMessage',context!); return this; } Map toJson() => { 'apiMessageId': apiMessageId, 'accepted': accepted, 'to': to, 'error': error, 'msg': JsonConverters.toJson(msg,'ClickatellMessage',context!) }; getTypeName() => "ClickatellResponsesMsg"; 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; } // @Route("/communication/message/clickatell/sms", "POST") class SendClickatellSmsRequest implements IReturn, IConvertible, IPost { /** * Messages to be Sent */ // @ApiMember(Description="Messages to be Sent", IsRequired=true) List? Messages = []; SendClickatellSmsRequest({this.Messages}); SendClickatellSmsRequest.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() => ClickatellMessageResponse(); getResponseTypeName() => "ClickatellMessageResponse"; getTypeName() => "SendClickatellSmsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: { 'ClickatellMessage': TypeInfo(TypeOf.Class, create:() => ClickatellMessage()), 'ClickatellResponsesMsg': TypeInfo(TypeOf.Class, create:() => ClickatellResponsesMsg()), 'ClickatellMessageResponse': TypeInfo(TypeOf.Class, create:() => ClickatellMessageResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SendClickatellSmsRequest': TypeInfo(TypeOf.Class, create:() => SendClickatellSmsRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });