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