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
48 lines (47 loc) • 1.96 kB
JavaScript
;
/* 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.PostAccountWrapperToJSONTyped = exports.PostAccountWrapperToJSON = exports.PostAccountWrapperFromJSONTyped = exports.PostAccountWrapperFromJSON = exports.instanceOfPostAccountWrapper = void 0;
const SaveAccount_1 = require("./SaveAccount");
/**
* Check if a given object implements the PostAccountWrapper interface.
*/
function instanceOfPostAccountWrapper(value) {
if (!('account' in value) || value['account'] === undefined)
return false;
return true;
}
exports.instanceOfPostAccountWrapper = instanceOfPostAccountWrapper;
function PostAccountWrapperFromJSON(json) {
return PostAccountWrapperFromJSONTyped(json, false);
}
exports.PostAccountWrapperFromJSON = PostAccountWrapperFromJSON;
function PostAccountWrapperFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'account': (0, SaveAccount_1.SaveAccountFromJSON)(json['account']),
};
}
exports.PostAccountWrapperFromJSONTyped = PostAccountWrapperFromJSONTyped;
function PostAccountWrapperToJSON(json) {
return PostAccountWrapperToJSONTyped(json, false);
}
exports.PostAccountWrapperToJSON = PostAccountWrapperToJSON;
function PostAccountWrapperToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'account': (0, SaveAccount_1.SaveAccountToJSON)(value['account']),
};
}
exports.PostAccountWrapperToJSONTyped = PostAccountWrapperToJSONTyped;