"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.ListPricePlansToJSON = exports.ListPricePlansFromJSONTyped = exports.ListPricePlansFromJSON = void 0;
const runtime_1 = require("../runtime");
const PricePlan_1 = require("./PricePlan");
function ListPricePlansFromJSON(json) {
    return ListPricePlansFromJSONTyped(json, false);
}
exports.ListPricePlansFromJSON = ListPricePlansFromJSON;
function ListPricePlansFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'pricePlans': !(0, runtime_1.exists)(json, 'price_plans') ? undefined : (json['price_plans'].map(PricePlan_1.PricePlanFromJSON)),
        'sortDirection': !(0, runtime_1.exists)(json, 'sort_direction') ? undefined : json['sort_direction'],
        'forwardSecondarySortOffset': !(0, runtime_1.exists)(json, 'forward_secondary_sort_offset') ? undefined : json['forward_secondary_sort_offset'],
        'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
        'forwardSortOffset': !(0, runtime_1.exists)(json, 'forward_sort_offset') ? undefined : json['forward_sort_offset'],
        'sortColumn': !(0, runtime_1.exists)(json, 'sort_column') ? undefined : json['sort_column'],
    };
}
exports.ListPricePlansFromJSONTyped = ListPricePlansFromJSONTyped;
function ListPricePlansToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'price_plans': value.pricePlans === undefined ? undefined : (value.pricePlans.map(PricePlan_1.PricePlanToJSON)),
        'sort_direction': value.sortDirection,
        'forward_secondary_sort_offset': value.forwardSecondarySortOffset,
        'limit': value.limit,
        'forward_sort_offset': value.forwardSortOffset,
        'sort_column': value.sortColumn,
    };
}
exports.ListPricePlansToJSON = List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