UNPKG

finerio-pfm-unnax

Version:

This SDK lets you connect to [Finerio PFM API Unnax](http://ec2-3-16-174-50.us-east-2.compute.amazonaws.com:8082/swagger-ui/index.html#/) in an easier way.

52 lines (51 loc) 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Category { constructor({ id, name, color, parentCategoryId, userId, imagePath, dateCreated = null, lastUpdated = null, }) { this._id = id; this._name = name; this._color = color; this._parentCategoryId = parentCategoryId; this._userId = userId; this._imagePath = imagePath; this._dateCreated = dateCreated; this._lastUpdated = lastUpdated; } get id() { return this._id; } get name() { return this._name; } get color() { return this._color; } get parentCategoryId() { return this._parentCategoryId; } get userId() { return this._userId; } get imagePath() { return this._imagePath; } get dateCreated() { return this._dateCreated; } get lastUpdated() { return this._lastUpdated; } get plainObject() { return { id: this._id, name: this._name, color: this._color, parentCategoryId: this._parentCategoryId, userId: this._userId, imagePath: this._imagePath, dateCreated: this._dateCreated, lastUpdated: this._lastUpdated, }; } } exports.default = Category;