@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
47 lines (46 loc) • 1.45 kB
JavaScript
/**
* Platform
* 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.
*/
import { LogWithTimestampFromJSON, LogWithTimestampToJSON, } from './LogWithTimestamp';
/**
* Check if a given object implements the LogResponseV2 interface.
*/
export function instanceOfLogResponseV2(value) {
return true;
}
export function LogResponseV2FromJSON(json) {
return LogResponseV2FromJSONTyped(json, false);
}
export function LogResponseV2FromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
firstSortValues: json.firstSortValues == null ? undefined : json.firstSortValues,
logList: json.logList == null
? undefined
: json.logList.map(LogWithTimestampFromJSON),
};
}
export function LogResponseV2ToJSON(json) {
return LogResponseV2ToJSONTyped(json, false);
}
export function LogResponseV2ToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
firstSortValues: value.firstSortValues,
logList: value.logList == null
? undefined
: value.logList.map(LogWithTimestampToJSON),
};
}