pepipost
Version:
Official nodejs library for sending email using web API v5
50 lines (43 loc) • 1.33 kB
JavaScript
/**
* PepipostLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
;
const BaseModel = require('./BaseModel');
/**
* Creates an instance of Attachments
*/
class Attachments extends BaseModel {
/**
* @constructor
* @param {Object} obj The object passed to constructor
*/
constructor(obj) {
super(obj);
if (obj === undefined || obj === null) return;
this.content = this.constructor.getValue(obj.content);
this.name = this.constructor.getValue(obj.name);
}
/**
* Function containing information about the fields of this model
* @return {array} Array of objects containing information about the fields
*/
static mappingInfo() {
return super.mappingInfo().concat([
{ name: 'content', realName: 'content' },
{ name: 'name', realName: 'name' },
]);
}
/**
* Function containing information about discriminator values
* mapped with their corresponding model class names
*
* @return {object} Object containing Key-Value pairs mapping discriminator
* values with their corresponding model classes
*/
static discriminatorMap() {
return {};
}
}
module.exports = Attachments;