@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
44 lines (43 loc) • 1.31 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.
*/
/**
* Check if a given object implements the LogWithTimestamp interface.
*/
export function instanceOfLogWithTimestamp(value) {
return true;
}
export function LogWithTimestampFromJSON(json) {
return LogWithTimestampFromJSONTyped(json, false);
}
export function LogWithTimestampFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
log: json.log == null ? undefined : json.log,
sortValues: json.sortValues == null ? undefined : json.sortValues,
timestamp: json.timestamp == null ? undefined : json.timestamp,
};
}
export function LogWithTimestampToJSON(json) {
return LogWithTimestampToJSONTyped(json, false);
}
export function LogWithTimestampToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
log: value.log,
sortValues: value.sortValues,
timestamp: value.timestamp,
};
}