"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * Octane API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.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.RollApiKeyArgsToJSON = exports.RollApiKeyArgsFromJSONTyped = exports.RollApiKeyArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
function RollApiKeyArgsFromJSON(json) {
    return RollApiKeyArgsFromJSONTyped(json, false);
}
exports.RollApiKeyArgsFromJSON = RollApiKeyArgsFromJSON;
function RollApiKeyArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'apiKey': json['api_key'],
        'expiresAt': !(0, runtime_1.exists)(json, 'expires_at') ? undefined : (new Date(json['expires_at'])),
    };
}
exports.RollApiKeyArgsFromJSONTyped = RollApiKeyArgsFromJSONTyped;
function RollApiKeyArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'api_key': value.apiKey,
        'expires_at': value.expiresAt === undefined ? undefined : (value.expiresAt.toISOString()),
    };
}
exports.RollApiKeyArgsToJSON = RollApiKeyArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUm9sbEFwaUtleUFyZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29kZWdlbi9tb2RlbHMvUm9sbEFwaUtleUFyZ3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQUFvQjtBQUNwQixvQkFBb0I7QUFDcEI7Ozs7Ozs7Ozs7R0FVRzs7O0FBRUgsd0NBQStDO0FBcUIvQyxTQUFnQixzQkFBc0IsQ0FBQyxJQUFTO0lBQzVDLE9BQU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