/* Options: Date: 2026-04-04 01:03:56 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: GetProjectContacts.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ContactDetailModel implements IConvertible { /** * Id of the Contact Method */ // @ApiMember(DataType="Guid", Description="Id of the Contact Method", Name="ContactMethodId", ParameterType="body") String? ContactMethodId; /** * Contact Method Name */ // @ApiMember(DataType="string", Description="Contact Method Name", Name="ContactMethodName", ParameterType="body") String? ContactMethodName; /** * If the contact method is an address, this will contain the address details. */ // @ApiMember(DataType="ContactAddressModel", Description="If the contact method is an address, this will contain the address details.", Name="ContactAddress", ParameterType="body") ContactAddressModel? ContactAddress; /** * If the contact method is a phone, this will contain the phone details */ // @ApiMember(DataType="PhoneModel", Description="If the contact method is a phone, this will contain the phone details", Name="ContactPhone", ParameterType="body") PhoneModel? ContactPhone; /** * Id of the country */ // @ApiMember(DataType="Guid?", Description="Id of the country", Name="CountryId", ParameterType="body") String? CountryId; /** * A summary string representing the contact details */ // @ApiMember(DataType="string", Description="A summary string representing the contact details", Name="ContactDetails", ParameterType="body") String? ContactDetails; /** * Notes about the contact details */ // @ApiMember(DataType="string", Description="Notes about the contact details", Name="Notes", ParameterType="body") String? Notes; /** * Area Code if contact details are a phone number */ // @ApiMember(DataType="string", Description="Area Code if contact details are a phone number", Name="ContactDetailsCode", ParameterType="body") String? ContactDetailsCode; /** * Order number of the contact method */ // @ApiMember(DataType="int", Description="Order number of the contact method", Name="OrderContactMethod", ParameterType="body") int? OrderContactMethod; /** * True if this is the primary contact method */ // @ApiMember(DataType="bool", Description="True if this is the primary contact method", Name="IsPrimaryContactMethod", ParameterType="body") bool? IsPrimaryContactMethod; /** * True if this contact method is an address */ // @ApiMember(DataType="bool", Description="True if this contact method is an address", Name="IsAddress", ParameterType="body") bool? IsAddress; ContactDetailModel({this.ContactMethodId,this.ContactMethodName,this.ContactAddress,this.ContactPhone,this.CountryId,this.ContactDetails,this.Notes,this.ContactDetailsCode,this.OrderContactMethod,this.IsPrimaryContactMethod,this.IsAddress}); ContactDetailModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactMethodId = json['ContactMethodId']; ContactMethodName = json['ContactMethodName']; ContactAddress = JsonConverters.fromJson(json['ContactAddress'],'ContactAddressModel',context!); ContactPhone = JsonConverters.fromJson(json['ContactPhone'],'PhoneModel',context!); CountryId = json['CountryId']; ContactDetails = json['ContactDetails']; Notes = json['Notes']; ContactDetailsCode = json['ContactDetailsCode']; OrderContactMethod = json['OrderContactMethod']; IsPrimaryContactMethod = json['IsPrimaryContactMethod']; IsAddress = json['IsAddress']; return this; } Map toJson() => { 'ContactMethodId': ContactMethodId, 'ContactMethodName': ContactMethodName, 'ContactAddress': JsonConverters.toJson(ContactAddress,'ContactAddressModel',context!), 'ContactPhone': JsonConverters.toJson(ContactPhone,'PhoneModel',context!), 'CountryId': CountryId, 'ContactDetails': ContactDetails, 'Notes': Notes, 'ContactDetailsCode': ContactDetailsCode, 'OrderContactMethod': OrderContactMethod, 'IsPrimaryContactMethod': IsPrimaryContactMethod, 'IsAddress': IsAddress }; getTypeName() => "ContactDetailModel"; TypeContext? context = _ctx; } class ContactRole implements IConvertible { /** * Guid of the Role List Item object within PSTPF. */ // @ApiMember(DataType="Guid", Description="Guid of the Role List Item object within PSTPF.", Name="RoleId", ParameterType="body") String? RoleId; /** * The unique key that represents the role type on the external system. */ // @ApiMember(DataType="string", Description="The unique key that represents the role type on the external system.", Name="AlternateKey", ParameterType="body") String? AlternateKey; ContactRole({this.RoleId,this.AlternateKey}); ContactRole.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RoleId = json['RoleId']; AlternateKey = json['AlternateKey']; return this; } Map toJson() => { 'RoleId': RoleId, 'AlternateKey': AlternateKey }; getTypeName() => "ContactRole"; TypeContext? context = _ctx; } class SubscriptionContactModel implements IConvertible { /** * Guid of the contact object within PSTPF. */ // @ApiMember(DataType="Guid", Description="Guid of the contact object within PSTPF.", Name="ContactId", ParameterType="body") String? ContactId; /** * Guid of the Contact Type List Item object within PSTPF. */ // @ApiMember(DataType="Guid", Description="Guid of the Contact Type List Item object within PSTPF.", Name="ContactType", ParameterType="body") String? ContactType; /** * Guid of the Marital Status List Item object within PSTPF. */ // @ApiMember(DataType="Guid?", Description="Guid of the Marital Status List Item object within PSTPF.", Name="MaritalStatus", ParameterType="body") String? MaritalStatus; /** * Guid of the Gender List Item object within PSTPF. */ // @ApiMember(DataType="Guid?", Description="Guid of the Gender List Item object within PSTPF.", Name="Gender", ParameterType="body") String? Gender; /** * The first given name for the contact. Applies to a person contact type. */ // @ApiMember(DataType="string", Description="The first given name for the contact. Applies to a person contact type.", Name="FirstName", ParameterType="body") String? FirstName; /** * The middle name(s) for the contact. Applies to a person contact type. */ // @ApiMember(DataType="string", Description="The middle name(s) for the contact. Applies to a person contact type.", Name="MiddleName", ParameterType="body") String? MiddleName; /** * The surname for the contact. Applies to a person contact type. */ // @ApiMember(DataType="string", Description="The surname for the contact. Applies to a person contact type.", Name="Surname", ParameterType="body") String? Surname; /** * The full name for the contact. */ // @ApiMember(DataType="string", Description="The full name for the contact.", Name="FullName", ParameterType="body") String? FullName; /** * A short name for the contact. */ // @ApiMember(DataType="string", Description="A short name for the contact.", Name="ShortName", ParameterType="body") String? ShortName; /** * The birth date for the contact. Applies to a person contact type. */ // @ApiMember(DataType="DateTime?", Description="The birth date for the contact. Applies to a person contact type.", Name="BirthDate", ParameterType="body") DateTime? BirthDate; /** * The title for the contact. Applies to a person contact type. */ // @ApiMember(DataType="string", Description="The title for the contact. Applies to a person contact type.", Name="Title", ParameterType="body") String? Title; /** * A salutation for the contact. */ // @ApiMember(DataType="string", Description="A salutation for the contact.", Name="Salutation", ParameterType="body") String? Salutation; /** * The A.B.N for the contact. */ // @ApiMember(DataType="string", Description="The A.B.N for the contact.", Name="Abn", ParameterType="body") String? Abn; /** * The A.C.N for the contact. */ // @ApiMember(DataType="string", Description="The A.C.N for the contact.", Name="Acn", ParameterType="body") String? Acn; /** * The A.R.B.N for the contact. */ // @ApiMember(DataType="string", Description="The A.R.B.N for the contact.", Name="Arbn", ParameterType="body") String? Arbn; /** * A trading name for the contact. */ // @ApiMember(DataType="string", Description="A trading name for the contact.", Name="TradingName", ParameterType="body") String? TradingName; /** * A legal name for the contact. */ // @ApiMember(DataType="string", Description="A legal name for the contact.", Name="LegalName", ParameterType="body") String? LegalName; /** * Any notes/description for the contact. */ // @ApiMember(DataType="string", Description="Any notes/description for the contact.", Name="Notes", ParameterType="body") String? Notes; /** * Contact Employment Industry. */ // @ApiMember(DataType="string", Description="Contact Employment Industry.", Name="EmploymentIndustry", ParameterType="body") String? EmploymentIndustry; /** * Contact Employment Role. */ // @ApiMember(DataType="string", Description="Contact Employment Role.", Name="EmploymentRole", ParameterType="body") String? EmploymentRole; /** * Contact Employment Geographic Area. */ // @ApiMember(DataType="string", Description="Contact Employment Geographic Area.", Name="EmploymentGeographicArea", ParameterType="body") String? EmploymentGeographicArea; /** * The Contacts Drivers Licence Number */ // @ApiMember(DataType="string", Description="The Contacts Drivers Licence Number", Name="DriversLicence", ParameterType="body") String? DriversLicence; /** * Indicates if the Contact is registered for GST */ // @ApiMember(DataType="bool", Description="Indicates if the Contact is registered for GST", Name="GstRegistered", ParameterType="body") bool? GstRegistered; /** * The status of the contact in PSTPF */ // @ApiMember(DataType="string", Description="The status of the contact in PSTPF", Name="RecordStatus", ParameterType="body") String? RecordStatus; /** * A list of roles this contact has. */ // @ApiMember(DataType="List", Description="A list of roles this contact has.", Name="ContactRoles", ParameterType="body") List? ContactRoles; /** * A list of the contact details for the contact. */ // @ApiMember(DataType="List", Description="A list of the contact details for the contact.", Name="ContactDetails", ParameterType="body") List? ContactDetails; /** * Custom Content XML for the contact. */ // @ApiMember(DataType="string", Description="Custom Content XML for the contact.", Name="CustomContentXML", ParameterType="body") String? CustomContentXML; /** * URL to the Primary Image. */ // @ApiMember(DataType="string", Description="URL to the Primary Image.", Name="BlobImageURLPrimary", ParameterType="body") String? BlobImageURLPrimary; /** * URL to the Primary Image thumbnail. */ // @ApiMember(DataType="string", Description="URL to the Primary Image thumbnail.", Name="BlobImageURLPrimaryThumbnail", ParameterType="body") String? BlobImageURLPrimaryThumbnail; /** * The primary mobile for the contact. */ // @ApiMember(DataType="string", Description="The primary mobile for the contact.", Name="PrimaryMobile", ParameterType="body") String? PrimaryMobile; /** * The primary email for the contact. */ // @ApiMember(DataType="string", Description="The primary email for the contact.", Name="PrimaryEmail", ParameterType="body") String? PrimaryEmail; SubscriptionContactModel({this.ContactId,this.ContactType,this.MaritalStatus,this.Gender,this.FirstName,this.MiddleName,this.Surname,this.FullName,this.ShortName,this.BirthDate,this.Title,this.Salutation,this.Abn,this.Acn,this.Arbn,this.TradingName,this.LegalName,this.Notes,this.EmploymentIndustry,this.EmploymentRole,this.EmploymentGeographicArea,this.DriversLicence,this.GstRegistered,this.RecordStatus,this.ContactRoles,this.ContactDetails,this.CustomContentXML,this.BlobImageURLPrimary,this.BlobImageURLPrimaryThumbnail,this.PrimaryMobile,this.PrimaryEmail}); SubscriptionContactModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactId = json['ContactId']; ContactType = json['ContactType']; MaritalStatus = json['MaritalStatus']; Gender = json['Gender']; FirstName = json['FirstName']; MiddleName = json['MiddleName']; Surname = json['Surname']; FullName = json['FullName']; ShortName = json['ShortName']; BirthDate = JsonConverters.fromJson(json['BirthDate'],'DateTime',context!); Title = json['Title']; Salutation = json['Salutation']; Abn = json['Abn']; Acn = json['Acn']; Arbn = json['Arbn']; TradingName = json['TradingName']; LegalName = json['LegalName']; Notes = json['Notes']; EmploymentIndustry = json['EmploymentIndustry']; EmploymentRole = json['EmploymentRole']; EmploymentGeographicArea = json['EmploymentGeographicArea']; DriversLicence = json['DriversLicence']; GstRegistered = json['GstRegistered']; RecordStatus = json['RecordStatus']; ContactRoles = JsonConverters.fromJson(json['ContactRoles'],'List',context!); ContactDetails = JsonConverters.fromJson(json['ContactDetails'],'List',context!); CustomContentXML = json['CustomContentXML']; BlobImageURLPrimary = json['BlobImageURLPrimary']; BlobImageURLPrimaryThumbnail = json['BlobImageURLPrimaryThumbnail']; PrimaryMobile = json['PrimaryMobile']; PrimaryEmail = json['PrimaryEmail']; return this; } Map toJson() => { 'ContactId': ContactId, 'ContactType': ContactType, 'MaritalStatus': MaritalStatus, 'Gender': Gender, 'FirstName': FirstName, 'MiddleName': MiddleName, 'Surname': Surname, 'FullName': FullName, 'ShortName': ShortName, 'BirthDate': JsonConverters.toJson(BirthDate,'DateTime',context!), 'Title': Title, 'Salutation': Salutation, 'Abn': Abn, 'Acn': Acn, 'Arbn': Arbn, 'TradingName': TradingName, 'LegalName': LegalName, 'Notes': Notes, 'EmploymentIndustry': EmploymentIndustry, 'EmploymentRole': EmploymentRole, 'EmploymentGeographicArea': EmploymentGeographicArea, 'DriversLicence': DriversLicence, 'GstRegistered': GstRegistered, 'RecordStatus': RecordStatus, 'ContactRoles': JsonConverters.toJson(ContactRoles,'List',context!), 'ContactDetails': JsonConverters.toJson(ContactDetails,'List',context!), 'CustomContentXML': CustomContentXML, 'BlobImageURLPrimary': BlobImageURLPrimary, 'BlobImageURLPrimaryThumbnail': BlobImageURLPrimaryThumbnail, 'PrimaryMobile': PrimaryMobile, 'PrimaryEmail': PrimaryEmail }; getTypeName() => "SubscriptionContactModel"; TypeContext? context = _ctx; } class ProjectContact implements IConvertible { /** * Guid of the contact object within Eros. */ // @ApiMember(DataType="Guid", Description="Guid of the contact object within Eros.", Name="ContactId", ParameterType="query") String? ContactId; /** * The unique key that represents the contact on the external system. */ // @ApiMember(DataType="string", Description="The unique key that represents the contact on the external system.", IsRequired=true, Name="ContactAlternateKey", ParameterType="query") String? ContactAlternateKey; /** * Guid of the Role List Item object within Eros. */ // @ApiMember(DataType="Guid", Description="Guid of the Role List Item object within Eros.", IsRequired=true, Name="RoleId", ParameterType="query") String? RoleId; /** * Role Name. */ // @ApiMember(DataType="string", Description="Role Name.", Name="RoleName", ParameterType="query") String? RoleName; /** * The unique key that represents the role type on the external system. Note: Use of this is not currently implemented */ // @ApiMember(DataType="string", Description="The unique key that represents the role type on the external system. Note: Use of this is not currently implemented", Name="RoleAlternateKey", ParameterType="query") String? RoleAlternateKey; /** * The object that contains details of the contact */ // @ApiMember(DataType="ContactModel", Description="The object that contains details of the contact", Name="Contact", ParameterType="query") SubscriptionContactModel? Contact; /** * The order this contact is in priority. 1 would be the primary contact, 2 the secondary and so forth. */ // @ApiMember(DataType="int", Description="The order this contact is in priority. 1 would be the primary contact, 2 the secondary and so forth.", Name="Index", ParameterType="query") int? Index; ProjectContact({this.ContactId,this.ContactAlternateKey,this.RoleId,this.RoleName,this.RoleAlternateKey,this.Contact,this.Index}); ProjectContact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactId = json['ContactId']; ContactAlternateKey = json['ContactAlternateKey']; RoleId = json['RoleId']; RoleName = json['RoleName']; RoleAlternateKey = json['RoleAlternateKey']; Contact = JsonConverters.fromJson(json['Contact'],'SubscriptionContactModel',context!); Index = json['Index']; return this; } Map toJson() => { 'ContactId': ContactId, 'ContactAlternateKey': ContactAlternateKey, 'RoleId': RoleId, 'RoleName': RoleName, 'RoleAlternateKey': RoleAlternateKey, 'Contact': JsonConverters.toJson(Contact,'SubscriptionContactModel',context!), 'Index': Index }; getTypeName() => "ProjectContact"; TypeContext? context = _ctx; } class ContactDetailModel implements IConvertible { /** * Contact Method Id */ // @ApiMember(DataType="Guid", Description="Contact Method Id", Name="ContactMethodId", ParameterType="query") String? ContactMethodId; /** * Contact Method Name */ // @ApiMember(DataType="string", Description="Contact Method Name", Name="ContactMethodName", ParameterType="query") String? ContactMethodName; /** * Contact Address Details */ // @ApiMember(DataType="ContactAddressModel", Description="Contact Address Details", Name="ContactAddress", ParameterType="query") ContactAddressModel? ContactAddress; /** * Contact Phone Details */ // @ApiMember(DataType="PhoneModel", Description="Contact Phone Details", Name="ContactPhone", ParameterType="query") PhoneModel? ContactPhone; /** * Country id */ // @ApiMember(DataType="Guid", Description="Country id", Name="CountryId", ParameterType="query") String? CountryId; /** * Contact Details */ // @ApiMember(DataType="string", Description="Contact Details", Name="ContactDetails", ParameterType="query") String? ContactDetails; /** * Notes */ // @ApiMember(DataType="string", Description="Notes", Name="Notes", ParameterType="query") String? Notes; /** * Contact Details Code */ // @ApiMember(DataType="string", Description="Contact Details Code", Name="ContactDetailsCode", ParameterType="query") String? ContactDetailsCode; /** * Order of Contact Method Id */ // @ApiMember(DataType="int", Description="Order of Contact Method Id", Name="OrderContactMethod", ParameterType="query") int? OrderContactMethod; /** * Contact Method Id */ // @ApiMember(DataType="bool", Description="Contact Method Id", Name="IsPrimaryContactMethod", ParameterType="query") bool? IsPrimaryContactMethod; /** * Is contact details an address */ // @ApiMember(DataType="bool", Description="Is contact details an address", Name="IsAddress", ParameterType="query") bool? IsAddress; /** * Contact Contact Detail Id */ // @ApiMember(DataType="Guid", Description="Contact Contact Detail Id", Name="ContactContactDetailId", ParameterType="query") String? ContactContactDetailId; /** * Contact Id */ // @ApiMember(DataType="Guid", Description="Contact Id", Name="ContactId", ParameterType="query") String? ContactId; /** * Contact Details Id */ // @ApiMember(DataType="Guid", Description="Contact Details Id", Name="ContactDetailId", ParameterType="query") String? ContactDetailId; /** * Is contact details a primary location */ // @ApiMember(DataType="bool", Description="Is contact details a primary location", Name="IsPrimaryLocation", ParameterType="query") bool? IsPrimaryLocation; /** * Is contact details a registered location */ // @ApiMember(DataType="bool", Description="Is contact details a registered location", Name="IsRegisteredLocation", ParameterType="query") bool? IsRegisteredLocation; /** * Is contact details a postal address */ // @ApiMember(DataType="bool", Description="Is contact details a postal address", Name="IsPostal", ParameterType="query") bool? IsPostal; /** * Is contact details a phone number */ // @ApiMember(DataType="bool", Description="Is contact details a phone number", Name="IsPhone", ParameterType="query") bool? IsPhone; /** * Email Signature Id */ // @ApiMember(DataType="Guid", Description="Email Signature Id", Name="EmailSignatureId", ParameterType="query") String? EmailSignatureId; /** * Email Signature HTML */ // @ApiMember(DataType="string", Description="Email Signature HTML", Name="EmailSignatureHTML", ParameterType="query") String? EmailSignatureHTML; /** * Email Signature Text */ // @ApiMember(DataType="string", Description="Email Signature Text", Name="EmailSignatureText", ParameterType="query") String? EmailSignatureText; /** * API Key from Framework */ // @ApiMember(DataType="string", Description="API Key from Framework", Name="ApiFrameworkAlternateKey", ParameterType="query") String? ApiFrameworkAlternateKey; ContactDetailModel({this.ContactMethodId,this.ContactMethodName,this.ContactAddress,this.ContactPhone,this.CountryId,this.ContactDetails,this.Notes,this.ContactDetailsCode,this.OrderContactMethod,this.IsPrimaryContactMethod,this.IsAddress,this.ContactContactDetailId,this.ContactId,this.ContactDetailId,this.IsPrimaryLocation,this.IsRegisteredLocation,this.IsPostal,this.IsPhone,this.EmailSignatureId,this.EmailSignatureHTML,this.EmailSignatureText,this.ApiFrameworkAlternateKey}); ContactDetailModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactMethodId = json['ContactMethodId']; ContactMethodName = json['ContactMethodName']; ContactAddress = JsonConverters.fromJson(json['ContactAddress'],'ContactAddressModel',context!); ContactPhone = JsonConverters.fromJson(json['ContactPhone'],'PhoneModel',context!); CountryId = json['CountryId']; ContactDetails = json['ContactDetails']; Notes = json['Notes']; ContactDetailsCode = json['ContactDetailsCode']; OrderContactMethod = json['OrderContactMethod']; IsPrimaryContactMethod = json['IsPrimaryContactMethod']; IsAddress = json['IsAddress']; ContactContactDetailId = json['ContactContactDetailId']; ContactId = json['ContactId']; ContactDetailId = json['ContactDetailId']; IsPrimaryLocation = json['IsPrimaryLocation']; IsRegisteredLocation = json['IsRegisteredLocation']; IsPostal = json['IsPostal']; IsPhone = json['IsPhone']; EmailSignatureId = json['EmailSignatureId']; EmailSignatureHTML = json['EmailSignatureHTML']; EmailSignatureText = json['EmailSignatureText']; ApiFrameworkAlternateKey = json['ApiFrameworkAlternateKey']; return this; } Map toJson() => { 'ContactMethodId': ContactMethodId, 'ContactMethodName': ContactMethodName, 'ContactAddress': JsonConverters.toJson(ContactAddress,'ContactAddressModel',context!), 'ContactPhone': JsonConverters.toJson(ContactPhone,'PhoneModel',context!), 'CountryId': CountryId, 'ContactDetails': ContactDetails, 'Notes': Notes, 'ContactDetailsCode': ContactDetailsCode, 'OrderContactMethod': OrderContactMethod, 'IsPrimaryContactMethod': IsPrimaryContactMethod, 'IsAddress': IsAddress, 'ContactContactDetailId': ContactContactDetailId, 'ContactId': ContactId, 'ContactDetailId': ContactDetailId, 'IsPrimaryLocation': IsPrimaryLocation, 'IsRegisteredLocation': IsRegisteredLocation, 'IsPostal': IsPostal, 'IsPhone': IsPhone, 'EmailSignatureId': EmailSignatureId, 'EmailSignatureHTML': EmailSignatureHTML, 'EmailSignatureText': EmailSignatureText, 'ApiFrameworkAlternateKey': ApiFrameworkAlternateKey }; getTypeName() => "ContactDetailModel"; TypeContext? context = _ctx; } // @ApiResponse(Description="List of project contacts and customer contacts.") class ProjectContactModel implements IConvertible { /** * Object containing all details of the project to be inserted or updated. */ // @ApiMember(DataType=" List", Description="Object containing all details of the project to be inserted or updated.", Name="ProjectContacts", ParameterType="query") List? ProjectContacts; /** * Object containing all details of the project to be inserted or updated. */ // @ApiMember(DataType=" List", Description="Object containing all details of the project to be inserted or updated.", Name="CustomerContacts", ParameterType="query") List? CustomerContacts; ProjectContactModel({this.ProjectContacts,this.CustomerContacts}); ProjectContactModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProjectContacts = JsonConverters.fromJson(json['ProjectContacts'],'List',context!); CustomerContacts = JsonConverters.fromJson(json['CustomerContacts'],'List',context!); return this; } Map toJson() => { 'ProjectContacts': JsonConverters.toJson(ProjectContacts,'List',context!), 'CustomerContacts': JsonConverters.toJson(CustomerContacts,'List',context!) }; getTypeName() => "ProjectContactModel"; TypeContext? context = _ctx; } /** * Returns a projects contacts (customer and project connected). */ // @Route("/project/{ProjectId}/contacts") // @Api(Description="Returns a projects contacts (customer and project connected).") class GetProjectContacts implements IReturn, IConvertible, IGet { /** * Guid representing the object that is the project in Eros. */ // @ApiMember(DataType="Guid", Description="Guid representing the object that is the project in Eros.", Name="ProjectId", ParameterType="query") String? ProjectId; /** * Guid representing the projects contact customer group Id. */ // @ApiMember(DataType="Guid", Description="Guid representing the projects contact customer group Id.", Name="CustomerGroupId", ParameterType="query") String? CustomerGroupId; GetProjectContacts({this.ProjectId,this.CustomerGroupId}); GetProjectContacts.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProjectId = json['ProjectId']; CustomerGroupId = json['CustomerGroupId']; return this; } Map toJson() => { 'ProjectId': ProjectId, 'CustomerGroupId': CustomerGroupId }; createResponse() => ProjectContactModel(); getResponseTypeName() => "ProjectContactModel"; getTypeName() => "GetProjectContacts"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'ContactDetailModel': TypeInfo(TypeOf.Class, create:() => ContactDetailModel()), 'ContactAddressModel': TypeInfo(TypeOf.Class, create:() => ContactAddressModel()), 'PhoneModel': TypeInfo(TypeOf.Class, create:() => PhoneModel()), 'ContactRole': TypeInfo(TypeOf.Class, create:() => ContactRole()), 'SubscriptionContactModel': TypeInfo(TypeOf.Class, create:() => SubscriptionContactModel()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ProjectContact': TypeInfo(TypeOf.Class, create:() => ProjectContact()), 'ProjectContactModel': TypeInfo(TypeOf.Class, create:() => ProjectContactModel()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetProjectContacts': TypeInfo(TypeOf.Class, create:() => GetProjectContacts()), });