@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
54 lines (53 loc) • 1.79 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfLogResponseV2 = instanceOfLogResponseV2;
exports.LogResponseV2FromJSON = LogResponseV2FromJSON;
exports.LogResponseV2FromJSONTyped = LogResponseV2FromJSONTyped;
exports.LogResponseV2ToJSON = LogResponseV2ToJSON;
exports.LogResponseV2ToJSONTyped = LogResponseV2ToJSONTyped;
const LogWithTimestamp_1 = require("./LogWithTimestamp");
/**
* Check if a given object implements the LogResponseV2 interface.
*/
function instanceOfLogResponseV2(value) {
return true;
}
function LogResponseV2FromJSON(json) {
return LogResponseV2FromJSONTyped(json, false);
}
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(LogWithTimestamp_1.LogWithTimestampFromJSON),
};
}
function LogResponseV2ToJSON(json) {
return LogResponseV2ToJSONTyped(json, false);
}
function LogResponseV2ToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
firstSortValues: value.firstSortValues,
logList: value.logList == null
? undefined
: value.logList.map(LogWithTimestamp_1.LogWithTimestampToJSON),
};
}