UNPKG

ynab

Version:

Official JavaScript client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.76.0

52 lines (51 loc) 1.91 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * YNAB API Endpoints * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.MonthDetailAllOfToJSON = exports.MonthDetailAllOfFromJSONTyped = exports.MonthDetailAllOfFromJSON = exports.instanceOfMonthDetailAllOf = void 0; const Category_1 = require("./Category"); /** * Check if a given object implements the MonthDetailAllOf interface. */ function instanceOfMonthDetailAllOf(value) { let isInstance = true; isInstance = isInstance && "categories" in value; return isInstance; } exports.instanceOfMonthDetailAllOf = instanceOfMonthDetailAllOf; function MonthDetailAllOfFromJSON(json) { return MonthDetailAllOfFromJSONTyped(json, false); } exports.MonthDetailAllOfFromJSON = MonthDetailAllOfFromJSON; function MonthDetailAllOfFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'categories': (json['categories'].map(Category_1.CategoryFromJSON)), }; } exports.MonthDetailAllOfFromJSONTyped = MonthDetailAllOfFromJSONTyped; function MonthDetailAllOfToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'categories': (value.categories.map(Category_1.CategoryToJSON)), }; } exports.MonthDetailAllOfToJSON = MonthDetailAllOfToJSON;