/* Options: Date: 2026-04-04 01:18:42 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: InviteContact.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @ApiResponse(Description="Contact Id of the newly invited/ created contact") class AddContactResponse implements IConvertible { String? ContactId; ResponseStatus? ResponseStatus; AddContactResponse({this.ContactId,this.ResponseStatus}); AddContactResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactId = json['ContactId']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'ContactId': ContactId, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "AddContactResponse"; TypeContext? context = _ctx; } // @Route("/contacts/{ContactId}/invite/contact") // @Route("/contacts/{ContactId}/invite/{ToContactId}") class InviteContact implements IReturn, IConvertible, IPost { /** * Contact Id inviting the contact */ // @ApiMember(DataType="Guid", Description="Contact Id inviting the contact", IsRequired=true, Name="ContactId") String? ContactId; /** * Contact Id of the virtual contact invited to be real. */ // @ApiMember(DataType="Guid", Description="Contact Id of the virtual contact invited to be real.", Name="ToContactId") String? ToContactId; /** * Email Address of the real/ virtual contact to be invited. */ // @ApiMember(DataType="string", Description="Email Address of the real/ virtual contact to be invited.", IsRequired=true, Name="EmailAddress") String? EmailAddress; /** * List of roles to invite the contact */ // @ApiMember(DataType="List", Description="List of roles to invite the contact", IsRequired=true, Name="Roles") List? Roles = []; InviteContact({this.ContactId,this.ToContactId,this.EmailAddress,this.Roles}); InviteContact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactId = json['ContactId']; ToContactId = json['ToContactId']; EmailAddress = json['EmailAddress']; Roles = JsonConverters.fromJson(json['Roles'],'List',context!); return this; } Map toJson() => { 'ContactId': ContactId, 'ToContactId': ToContactId, 'EmailAddress': EmailAddress, 'Roles': JsonConverters.toJson(Roles,'List',context!) }; createResponse() => AddContactResponse(); getResponseTypeName() => "AddContactResponse"; getTypeName() => "InviteContact"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'AddContactResponse': TypeInfo(TypeOf.Class, create:() => AddContactResponse()), 'InviteContact': TypeInfo(TypeOf.Class, create:() => InviteContact()), });