"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.instanceOfUiConfigReadCustomMessageResponse = instanceOfUiConfigReadCustomMessageResponse; exports.UiConfigReadCustomMessageResponseFromJSON = UiConfigReadCustomMessageResponseFromJSON; exports.UiConfigReadCustomMessageResponseFromJSONTyped = UiConfigReadCustomMessageResponseFromJSONTyped; exports.UiConfigReadCustomMessageResponseToJSON = UiConfigReadCustomMessageResponseToJSON; exports.UiConfigReadCustomMessageResponseToJSONTyped = UiConfigReadCustomMessageResponseToJSONTyped; /** * Check if a given object implements the UiConfigReadCustomMessageResponse interface. */ function instanceOfUiConfigReadCustomMessageResponse(value) { return true; } function UiConfigReadCustomMessageResponseFromJSON(json) { return UiConfigReadCustomMessageResponseFromJSONTyped(json, false); } function UiConfigReadCustomMessageResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'active': json['active'] == null ? undefined : json['active'], 'authenticated': json['authenticated'] == null ? undefined : json['authenticated'], 'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])), 'id': json['id'] == null ? undefined : json['id'], 'link': json['link'] == null ? undefined : json['link'], 'message': json['message'] == null ? undefined : json['message'], 'options': json['options'] == null ? undefined : json['options'], 'startTime': json['start_time'] == null ? undefined : (new Date(json['start_time'])), 'title': json['title'] == null ? undefined : json['title'], 'type': json['type'] == null ? undefined : json['type'], }; } function UiConfigReadCustomMessageResponseToJSON(json) { return UiConfigReadCustomMessageResponseToJSONTyped(json, false); } function UiConfigReadCustomMessageResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'active': value['active'], 'authenticated': value['authenticated'], 'end_time': value['endTime'] == null ? undefined : ((value['endTime']).toISOString()), 'id': value['id'], 'link': value['link'], 'message': value['message'], 'options': value['options'], 'start_time': value['startTime'] == null ? undefined : ((value['startTime']).toISOString()), 'title': value['title'], 'type': value['type'], }; }