/* 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.21.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Check if a given object implements the TransformEncodeRequest interface. */ export function instanceOfTransformEncodeRequest(value) { return true; } export function TransformEncodeRequestFromJSON(json) { return TransformEncodeRequestFromJSONTyped(json, false); } export function TransformEncodeRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'batchInput': json['batch_input'] == null ? undefined : json['batch_input'], 'expiration': json['expiration'] == null ? undefined : (new Date(json['expiration'])), 'metadata': json['metadata'] == null ? undefined : json['metadata'], 'transformation': json['transformation'] == null ? undefined : json['transformation'], 'ttl': json['ttl'] == null ? undefined : json['ttl'], 'tweak': json['tweak'] == null ? undefined : json['tweak'], 'value': json['value'] == null ? undefined : json['value'], }; } export function TransformEncodeRequestToJSON(json) { return TransformEncodeRequestToJSONTyped(json, false); } export function TransformEncodeRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'batch_input': value['batchInput'], 'expiration': value['expiration'] == null ? undefined : ((value['expiration']).toISOString()), 'metadata': value['metadata'], 'transformation': value['transformation'], 'ttl': value['ttl'], 'tweak': value['tweak'], 'value': value['value'], }; }