UNPKG

@getopenpay/client

Version:

OpenPay API TypeScript SDK

50 lines (49 loc) 1.7 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * OpenPay API * super charge your subscription management. * * The version of the OpenAPI document: 1.2.1 * * * 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.instanceOfHTTPValidationError = instanceOfHTTPValidationError; exports.HTTPValidationErrorFromJSON = HTTPValidationErrorFromJSON; exports.HTTPValidationErrorFromJSONTyped = HTTPValidationErrorFromJSONTyped; exports.HTTPValidationErrorToJSON = HTTPValidationErrorToJSON; exports.HTTPValidationErrorToJSONTyped = HTTPValidationErrorToJSONTyped; const ValidationError_1 = require("./ValidationError"); /** * Check if a given object implements the HTTPValidationError interface. */ function instanceOfHTTPValidationError(value) { return true; } function HTTPValidationErrorFromJSON(json) { return HTTPValidationErrorFromJSONTyped(json, false); } function HTTPValidationErrorFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'detail': json['detail'] == null ? undefined : (json['detail'].map(ValidationError_1.ValidationErrorFromJSON)), }; } function HTTPValidationErrorToJSON(json) { return HTTPValidationErrorToJSONTyped(json, false); } function HTTPValidationErrorToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'detail': value['detail'] == null ? undefined : (value['detail'].map(ValidationError_1.ValidationErrorToJSON)), }; }