/* Options: Date: 2026-04-04 06:47: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: AddConnectionsInRole.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GuidLookup implements IConvertible { String? LookupId; String? Value; GuidLookup({this.LookupId,this.Value}); GuidLookup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LookupId = json['LookupId']; Value = json['Value']; return this; } Map toJson() => { 'LookupId': LookupId, 'Value': Value }; getTypeName() => "GuidLookup"; TypeContext? context = _ctx; } // @ApiResponse(Description="List of roles available for connection from the specified contact for specified contact types") class ConnectContactsInRolesResponse implements IConvertible { ResponseStatus? ResponseStatus; ConnectContactsInRolesResponse({this.ResponseStatus}); ConnectContactsInRolesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "ConnectContactsInRolesResponse"; TypeContext? context = _ctx; } /** * Connect two contacts in the specified roles */ // @Route("/connections/{ContactId}/role/{RoleId}") // @Api(Description="Connect two contacts in the specified roles") class AddConnectionsInRole implements IReturn, IConvertible, IPost { /** * Create a connection from this contact to the specified list of contacts in the specified role. */ // @ApiMember(DataType="Guid", Description="Create a connection from this contact to the specified list of contacts in the specified role.", IsRequired=true, Name="ContactId") String? ContactId; /** * List of contacts to add to the role, including the type of contact */ // @ApiMember(DataType="List", Description="List of contacts to add to the role, including the type of contact", IsRequired=true, Name="ToContacts") List? ToContacts = []; /** * Create a connection between contacts in the specified role. */ // @ApiMember(DataType="Guid", Description="Create a connection between contacts in the specified role.", IsRequired=true, Name="RoleId") String? RoleId; /** * Send connection emails for auto - accept roles that are being assigned? Note: emails will always be sent if the role requires user acceptance */ // @ApiMember(DataType="boolean", Description="Send connection emails for auto - accept roles that are being assigned? Note: emails will always be sent if the role requires user acceptance", IsRequired=true, Name="SendConnectionEmails") bool? SendConnectionEmails; AddConnectionsInRole({this.ContactId,this.ToContacts,this.RoleId,this.SendConnectionEmails}); AddConnectionsInRole.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactId = json['ContactId']; ToContacts = JsonConverters.fromJson(json['ToContacts'],'List',context!); RoleId = json['RoleId']; SendConnectionEmails = json['SendConnectionEmails']; return this; } Map toJson() => { 'ContactId': ContactId, 'ToContacts': JsonConverters.toJson(ToContacts,'List',context!), 'RoleId': RoleId, 'SendConnectionEmails': SendConnectionEmails }; createResponse() => ConnectContactsInRolesResponse(); getResponseTypeName() => "ConnectContactsInRolesResponse"; getTypeName() => "AddConnectionsInRole"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'GuidLookup': TypeInfo(TypeOf.Class, create:() => GuidLookup()), 'ConnectContactsInRolesResponse': TypeInfo(TypeOf.Class, create:() => ConnectContactsInRolesResponse()), 'AddConnectionsInRole': TypeInfo(TypeOf.Class, create:() => AddConnectionsInRole()), 'List': TypeInfo(TypeOf.Class, create:() => []), });