/* Options: Date: 2026-04-04 04:52:11 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: AddComment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @ApiResponse(Description="Returns the communication id and response status.") class SendCommunicationResponse implements IConvertible { String? CommunicationId; ResponseStatus? ResponseStatus; SendCommunicationResponse({this.CommunicationId,this.ResponseStatus}); SendCommunicationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CommunicationId = json['CommunicationId']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'CommunicationId': CommunicationId, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "SendCommunicationResponse"; TypeContext? context = _ctx; } /** * Add a comment to the specified object. */ // @Route("/comment", "POST") // @Api(Description="Add a comment to the specified object.") class AddComment implements IReturn, IConvertible, IPost { /** * Object linked to the comment. */ // @ApiMember(DataType="Guid", Description="Object linked to the comment.", IsRequired=true, Name="ConnectedObjectId") String? ConnectedObjectId; /** * Comment content */ // @ApiMember(DataType="string", Description="Comment content", IsRequired=true, Name="Comment") String? Comment; /** * The comment suite id */ // @ApiMember(DataType="Guid", Description="The comment suite id", Name="SuiteId") String? SuiteId; AddComment({this.ConnectedObjectId,this.Comment,this.SuiteId}); AddComment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ConnectedObjectId = json['ConnectedObjectId']; Comment = json['Comment']; SuiteId = json['SuiteId']; return this; } Map toJson() => { 'ConnectedObjectId': ConnectedObjectId, 'Comment': Comment, 'SuiteId': SuiteId }; createResponse() => SendCommunicationResponse(); getResponseTypeName() => "SendCommunicationResponse"; getTypeName() => "AddComment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'SendCommunicationResponse': TypeInfo(TypeOf.Class, create:() => SendCommunicationResponse()), 'AddComment': TypeInfo(TypeOf.Class, create:() => AddComment()), });