UNPKG

tnzapi

Version:

Node.js Library for TNZ Group REST API

32 lines (24 loc) 645 B
const functions = require("../../../../Functions"); const BaseApiRequestDTO = require("./BaseApiRequestDTO"); class ContactGroupApiRequestDTO extends BaseApiRequestDTO { Group; GroupID; GroupCode; constructor(data) { super(); functions.Map(this,data); } // // Remove ContactID when parsing JSON // toJSON() { // Create a shallow copy of the instance const copy = { ...this }; // Omit the ContactID property from the copy delete copy.ContactID; return copy; } } module.exports = ContactGroupApiRequestDTO;