UNPKG

@maicol07/coloquent

Version:

Library for retrieving model objects from a JSON-API, with a fluent syntax inspired by Laravel Eloquent.

19 lines 391 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Map = void 0; class Map { constructor() { this.data = {}; } get(key) { return this.data[key]; } set(key, value) { this.data[key] = value; } toArray() { return this.data; } } exports.Map = Map; //# sourceMappingURL=Map.js.map