/* Options: Date: 2026-03-14 18:33:42 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://production-eros-gateway-api-sms-wa.azurewebsites.net/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SMSSend.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseLicenseeEnforcedServiceModel implements IConvertible { String? LicenseeId; BaseLicenseeEnforcedServiceModel({this.LicenseeId}); BaseLicenseeEnforcedServiceModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LicenseeId = json['LicenseeId']; return this; } Map toJson() => { 'LicenseeId': LicenseeId }; getTypeName() => "BaseLicenseeEnforcedServiceModel"; TypeContext? context = _ctx; } class SMSContact implements IConvertible { String? Name; String? PhoneNumber; String? ContactId; SMSContact({this.Name,this.PhoneNumber,this.ContactId}); SMSContact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; PhoneNumber = json['PhoneNumber']; ContactId = json['ContactId']; return this; } Map toJson() => { 'Name': Name, 'PhoneNumber': PhoneNumber, 'ContactId': ContactId }; getTypeName() => "SMSContact"; TypeContext? context = _ctx; } class SMSModel extends BaseLicenseeEnforcedServiceModel implements IConvertible { SMSContact? From; List? To; String? MessageBody; bool? ReplyIsAllowed; bool? ReplyIsRequired; String? Notes; String? LinkedObjectId; String? SuiteId; SMSModel({this.From,this.To,this.MessageBody,this.ReplyIsAllowed,this.ReplyIsRequired,this.Notes,this.LinkedObjectId,this.SuiteId}); SMSModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); From = JsonConverters.fromJson(json['From'],'SMSContact',context!); To = JsonConverters.fromJson(json['To'],'List',context!); MessageBody = json['MessageBody']; ReplyIsAllowed = json['ReplyIsAllowed']; ReplyIsRequired = json['ReplyIsRequired']; Notes = json['Notes']; LinkedObjectId = json['LinkedObjectId']; SuiteId = json['SuiteId']; return this; } Map toJson() => super.toJson()..addAll({ 'From': JsonConverters.toJson(From,'SMSContact',context!), 'To': JsonConverters.toJson(To,'List',context!), 'MessageBody': MessageBody, 'ReplyIsAllowed': ReplyIsAllowed, 'ReplyIsRequired': ReplyIsRequired, 'Notes': Notes, 'LinkedObjectId': LinkedObjectId, 'SuiteId': SuiteId }); getTypeName() => "SMSModel"; TypeContext? context = _ctx; } class CommResponse implements IConvertible { String? CommId; String? Reference; bool? Status; String? Message; CommResponse({this.CommId,this.Reference,this.Status,this.Message}); CommResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CommId = json['CommId']; Reference = json['Reference']; Status = json['Status']; Message = json['Message']; return this; } Map toJson() => { 'CommId': CommId, 'Reference': Reference, 'Status': Status, 'Message': Message }; getTypeName() => "CommResponse"; TypeContext? context = _ctx; } /** * Saves the specified SMS and sends it for background processing */ // @Route("/sendmessage", "POST") // @Route("/sendmessage/immediate", "POST") // @Route("/send", "POST") // @Route("/sms/send", "POST") // @Route("/send/immediate", "POST") // @Route("/sms/send/immediate", "POST") // @Api(Description="Saves the specified SMS and sends it for background processing") class SMSSend implements IReturn, IConvertible, IPost { SMSModel? SMSModel; bool? CreateCommunicationReferencesImmediately; SMSSend({this.SMSModel,this.CreateCommunicationReferencesImmediately}); SMSSend.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SMSModel = JsonConverters.fromJson(json['SMSModel'],'SMSModel',context!); CreateCommunicationReferencesImmediately = json['CreateCommunicationReferencesImmediately']; return this; } Map toJson() => { 'SMSModel': JsonConverters.toJson(SMSModel,'SMSModel',context!), 'CreateCommunicationReferencesImmediately': CreateCommunicationReferencesImmediately }; createResponse() => CommResponse(); getResponseTypeName() => "CommResponse"; getTypeName() => "SMSSend"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'production_eros_gateway_api_sms_wa.azurewebsites.net', types: { 'BaseLicenseeEnforcedServiceModel': TypeInfo(TypeOf.Class, create:() => BaseLicenseeEnforcedServiceModel()), 'SMSContact': TypeInfo(TypeOf.Class, create:() => SMSContact()), 'SMSModel': TypeInfo(TypeOf.Class, create:() => SMSModel()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CommResponse': TypeInfo(TypeOf.Class, create:() => CommResponse()), 'SMSSend': TypeInfo(TypeOf.Class, create:() => SMSSend()), });