/* Options: Date: 2026-04-04 01:18:54 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetCommunicationTemplate.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CommunicationTemplateModel implements IConvertible { /** * Communication Template Id */ // @ApiMember(DataType="Guid", Description="Communication Template Id", IsRequired=true, Name="CommunicationTemplateId") String? CommunicationTemplateId; /** * Communication Template Name */ // @ApiMember(DataType="string", Description="Communication Template Name", IsRequired=true, Name="TemplateName") String? TemplateName; /** * Communication Template Subject */ // @ApiMember(DataType="string", Description="Communication Template Subject", Name="Subject") String? Subject; /** * Communication Template Content */ // @ApiMember(DataType="string", Description="Communication Template Content", IsRequired=true, Name="Content") String? Content; CommunicationTemplateModel({this.CommunicationTemplateId,this.TemplateName,this.Subject,this.Content}); CommunicationTemplateModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CommunicationTemplateId = json['CommunicationTemplateId']; TemplateName = json['TemplateName']; Subject = json['Subject']; Content = json['Content']; return this; } Map toJson() => { 'CommunicationTemplateId': CommunicationTemplateId, 'TemplateName': TemplateName, 'Subject': Subject, 'Content': Content }; getTypeName() => "CommunicationTemplateModel"; TypeContext? context = _ctx; } // @ApiResponse(Description="Details of the communication template.") class GetCommunicationTemplateResponse implements IConvertible { CommunicationTemplateModel? CommunicationTemplate; ResponseStatus? ResponseStatus; GetCommunicationTemplateResponse({this.CommunicationTemplate,this.ResponseStatus}); GetCommunicationTemplateResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CommunicationTemplate = JsonConverters.fromJson(json['CommunicationTemplate'],'CommunicationTemplateModel',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'CommunicationTemplate': JsonConverters.toJson(CommunicationTemplate,'CommunicationTemplateModel',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "GetCommunicationTemplateResponse"; TypeContext? context = _ctx; } /** * Get communication template for the current licensee and contact by setting id. */ // @Route("/communicationtemplate/{SettingId}") // @Api(Description="Get communication template for the current licensee and contact by setting id.") class GetCommunicationTemplate implements IReturn, IConvertible, IGet { /** * Setting Id linked to the communication template to get details for */ // @ApiMember(Description="Setting Id linked to the communication template to get details for", IsRequired=true, Name="SettingId") String? SettingId; GetCommunicationTemplate({this.SettingId}); GetCommunicationTemplate.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SettingId = json['SettingId']; return this; } Map toJson() => { 'SettingId': SettingId }; createResponse() => GetCommunicationTemplateResponse(); getResponseTypeName() => "GetCommunicationTemplateResponse"; getTypeName() => "GetCommunicationTemplate"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'CommunicationTemplateModel': TypeInfo(TypeOf.Class, create:() => CommunicationTemplateModel()), 'GetCommunicationTemplateResponse': TypeInfo(TypeOf.Class, create:() => GetCommunicationTemplateResponse()), 'GetCommunicationTemplate': TypeInfo(TypeOf.Class, create:() => GetCommunicationTemplate()), });