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.59 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 * * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ /** * Check if a given object implements the SaveCategory interface. */ export function instanceOfSaveCategory(value) { return true; } export function SaveCategoryFromJSON(json) { return SaveCategoryFromJSONTyped(json, false); } export function SaveCategoryFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'note': json['note'] == null ? undefined : json['note'], 'category_group_id': json['category_group_id'] == null ? undefined : json['category_group_id'], 'goal_target': json['goal_target'] == null ? undefined : json['goal_target'], }; } export function SaveCategoryToJSON(json) { return SaveCategoryToJSONTyped(json, false); } export function SaveCategoryToJSONTyped(value, ignoreDiscriminator) { if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; } if (value == null) { return value; } return { 'name': value['name'], 'note': value['note'], 'category_group_id': value['category_group_id'], 'goal_target': value['goal_target'], }; }