"use strict"; /* tslint:disable */ /* eslint-disable */ /** * HashiCorp Vault API * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. * * The version of the OpenAPI document: 1.20.0 * * * 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.instanceOfDecodeTokenRequest = instanceOfDecodeTokenRequest; exports.DecodeTokenRequestFromJSON = DecodeTokenRequestFromJSON; exports.DecodeTokenRequestFromJSONTyped = DecodeTokenRequestFromJSONTyped; exports.DecodeTokenRequestToJSON = DecodeTokenRequestToJSON; exports.DecodeTokenRequestToJSONTyped = DecodeTokenRequestToJSONTyped; /** * Check if a given object implements the DecodeTokenRequest interface. */ function instanceOfDecodeTokenRequest(value) { return true; } function DecodeTokenRequestFromJSON(json) { return DecodeTokenRequestFromJSONTyped(json, false); } function DecodeTokenRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'encodedToken': json['encoded_token'] == null ? undefined : json['encoded_token'], 'otp': json['otp'] == null ? undefined : json['otp'], }; } function DecodeTokenRequestToJSON(json) { return DecodeTokenRequestToJSONTyped(json, false); } function DecodeTokenRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'encoded_token': value['encodedToken'], 'otp': value['otp'], }; }