/* Options: Date: 2025-12-06 05:26:40 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: MassCommunicationRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class MassCommunicationResponse implements IConvertible { ResponseStatus? ResponseStatus; bool? Success; int? Recipients; MassCommunicationResponse({this.ResponseStatus,this.Success,this.Recipients}); MassCommunicationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Success = json['Success']; Recipients = json['Recipients']; return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Success': Success, 'Recipients': Recipients }; getTypeName() => "MassCommunicationResponse"; TypeContext? context = _ctx; } // @Route("/v1/MassCommunication", "POST,OPTIONS") class MassCommunicationRequest implements IReturn, IConvertible, IPost { String? Message; List? Recipients = []; List? Locations = []; bool? EmailMissingNumbers; bool? EmailAll; bool? SMSAll; MassCommunicationRequest({this.Message,this.Recipients,this.Locations,this.EmailMissingNumbers,this.EmailAll,this.SMSAll}); MassCommunicationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Message = json['Message']; Recipients = JsonConverters.fromJson(json['Recipients'],'List',context!); Locations = JsonConverters.fromJson(json['Locations'],'List',context!); EmailMissingNumbers = json['EmailMissingNumbers']; EmailAll = json['EmailAll']; SMSAll = json['SMSAll']; return this; } Map toJson() => { 'Message': Message, 'Recipients': JsonConverters.toJson(Recipients,'List',context!), 'Locations': JsonConverters.toJson(Locations,'List',context!), 'EmailMissingNumbers': EmailMissingNumbers, 'EmailAll': EmailAll, 'SMSAll': SMSAll }; createResponse() => MassCommunicationResponse(); getResponseTypeName() => "MassCommunicationResponse"; getTypeName() => "MassCommunicationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'MassCommunicationResponse': TypeInfo(TypeOf.Class, create:() => MassCommunicationResponse()), 'MassCommunicationRequest': TypeInfo(TypeOf.Class, create:() => MassCommunicationRequest()), });