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

44 lines (43 loc) 1.39 kB
/* 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. */ import { exists } from '../runtime'; /** * Check if a given object implements the SaveTransactionWithIdAllOf interface. */ export function instanceOfSaveTransactionWithIdAllOf(value) { var isInstance = true; return isInstance; } export function SaveTransactionWithIdAllOfFromJSON(json) { return SaveTransactionWithIdAllOfFromJSONTyped(json, false); } export function SaveTransactionWithIdAllOfFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'id': !exists(json, 'id') ? undefined : json['id'], }; } export function SaveTransactionWithIdAllOfToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, }; }