/* tslint:disable */
/* eslint-disable */
/**
 * CWMS Data API
 * CWMS REST API for Data Retrieval
 *
 * The version of the OpenAPI document: 2.4.0-2026.3.16
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { exists, mapValues } from '../runtime';
import {
    CwmsId,
    CwmsIdFromJSON,
    CwmsIdFromJSONTyped,
    CwmsIdToJSON,
} from './CwmsId';
import {
    ParameterInfo,
    ParameterInfoFromJSON,
    ParameterInfoFromJSONTyped,
    ParameterInfoToJSON,
} from './ParameterInfo';
import {
    TimeSeriesProfileParser,
    TimeSeriesProfileParserFromJSON,
    TimeSeriesProfileParserFromJSONTyped,
    TimeSeriesProfileParserToJSON,
} from './TimeSeriesProfileParser';
import {
    TimeSeriesProfileParserIndexedAllOf,
    TimeSeriesProfileParserIndexedAllOfFromJSON,
    TimeSeriesProfileParserIndexedAllOfFromJSONTyped,
    TimeSeriesProfileParserIndexedAllOfToJSON,
} from './TimeSeriesProfileParserIndexedAllOf';

/**
 * 
 * @export
 * @interface TimeSeriesProfileParserIndexed
 */
export interface TimeSeriesProfileParserIndexed extends TimeSeriesProfileParser {
    /**
     * 
     * @type {string}
     * @memberof TimeSeriesProfileParserIndexed
     */
    fieldDelimiter: string;
    /**
     * 
     * @type {number}
     * @memberof TimeSeriesProfileParserIndexed
     */
    timeField: number;
}

export function TimeSeriesProfileParserIndexedFromJSON(json: any): TimeSeriesProfileParserIndexed {
    return TimeSeriesProfileParserIndexedFromJSONTyped(json, false);
}

export function TimeSeriesProfileParserIndexedFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeSeriesProfileParserIndexed {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        ...TimeSeriesProfileParserFromJSONTyped(json, ignoreDiscriminator),
        'fieldDelimiter': json['field-delimiter'],
        'timeField': json['time-field'],
    };
}

export function TimeSeriesProfileParserIndexedToJSON(value?: TimeSeriesProfileParserIndexed | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        ...TimeSeriesProfileParserToJSON(value),
        'field-delimiter': value.fieldDelimiter,
        'time-field': value.timeField,
    };
}

