UNPKG

ynab

Version:

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

47 lines (46 loc) 1.78 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 * * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPostCategoryWrapper = instanceOfPostCategoryWrapper; exports.PostCategoryWrapperFromJSON = PostCategoryWrapperFromJSON; exports.PostCategoryWrapperFromJSONTyped = PostCategoryWrapperFromJSONTyped; exports.PostCategoryWrapperToJSON = PostCategoryWrapperToJSON; exports.PostCategoryWrapperToJSONTyped = PostCategoryWrapperToJSONTyped; const NewCategory_1 = require("./NewCategory"); /** * Check if a given object implements the PostCategoryWrapper interface. */ function instanceOfPostCategoryWrapper(value) { if (!('category' in value) || value['category'] === undefined) return false; return true; } function PostCategoryWrapperFromJSON(json) { return PostCategoryWrapperFromJSONTyped(json, false); } function PostCategoryWrapperFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'category': (0, NewCategory_1.NewCategoryFromJSON)(json['category']), }; } function PostCategoryWrapperToJSON(json) { return PostCategoryWrapperToJSONTyped(json, false); } function PostCategoryWrapperToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'category': (0, NewCategory_1.NewCategoryToJSON)(value['category']), }; }