@apideck/node
Version:
Apideck Node.js SDK
92 lines (86 loc) • 2.26 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.13.0
* Contact: support@apideck.com
*
* 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 } from '../runtime'
import { Raw, RawFromJSON, RawToJSON } from './Raw'
import {
ValidateConnectionStateResponseData,
ValidateConnectionStateResponseDataFromJSON,
ValidateConnectionStateResponseDataToJSON
} from './ValidateConnectionStateResponseData'
/**
*
* @export
* @interface ValidateConnectionStateResponse
*/
export interface ValidateConnectionStateResponse {
/**
* HTTP Response Status Code
* @type {number}
* @memberof ValidateConnectionStateResponse
*/
status_code: number
/**
* HTTP Response Status
* @type {string}
* @memberof ValidateConnectionStateResponse
*/
status: string
/**
*
* @type {ValidateConnectionStateResponseData}
* @memberof ValidateConnectionStateResponse
*/
data: ValidateConnectionStateResponseData
/**
*
* @type {Raw}
* @memberof ValidateConnectionStateResponse
*/
_raw?: Raw | null
}
export function ValidateConnectionStateResponseFromJSON(
json: any
): ValidateConnectionStateResponse {
return ValidateConnectionStateResponseFromJSONTyped(json, false)
}
export function ValidateConnectionStateResponseFromJSONTyped(
json: any,
ignoreDiscriminator: boolean
): ValidateConnectionStateResponse {
if (json === undefined || json === null) {
return json
}
return {
status_code: json['status_code'],
status: json['status'],
data: ValidateConnectionStateResponseDataFromJSON(json['data']),
_raw: !exists(json, '_raw') ? undefined : RawFromJSON(json['_raw'])
}
}
export function ValidateConnectionStateResponseToJSON(
value?: ValidateConnectionStateResponse | null
): any {
if (value === undefined) {
return undefined
}
if (value === null) {
return null
}
return {
status_code: value.status_code,
status: value.status,
data: ValidateConnectionStateResponseDataToJSON(value.data),
_raw: RawToJSON(value._raw)
}
}