/* Options: Date: 2025-12-06 11:45:57 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: MassCommunicationContactRequest.* //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/MassCommunicationContact", "POST,OPTIONS") class MassCommunicationContactRequest implements IReturn, IConvertible, IPost { String? Subject; String? Message; List? Recipients = []; List? Locations = []; bool? EmailMissingNumbers; bool? EmailAll; bool? SMSAll; String? ContactCategories; MassCommunicationContactRequest({this.Subject,this.Message,this.Recipients,this.Locations,this.EmailMissingNumbers,this.EmailAll,this.SMSAll,this.ContactCategories}); MassCommunicationContactRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Subject = json['Subject']; 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']; ContactCategories = json['ContactCategories']; return this; } Map toJson() => { 'Subject': Subject, 'Message': Message, 'Recipients': JsonConverters.toJson(Recipients,'List',context!), 'Locations': JsonConverters.toJson(Locations,'List',context!), 'EmailMissingNumbers': EmailMissingNumbers, 'EmailAll': EmailAll, 'SMSAll': SMSAll, 'ContactCategories': ContactCategories }; createResponse() => MassCommunicationResponse(); getResponseTypeName() => "MassCommunicationResponse"; getTypeName() => "MassCommunicationContactRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'MassCommunicationResponse': TypeInfo(TypeOf.Class, create:() => MassCommunicationResponse()), 'MassCommunicationContactRequest': TypeInfo(TypeOf.Class, create:() => MassCommunicationContactRequest()), });