UNPKG

@cotofe/service-of-system

Version:

OpenAPI client for @cotofe/service-of-system

51 lines (50 loc) 1.67 kB
"use strict"; /** * 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.instanceOfLogWithTimestamp = instanceOfLogWithTimestamp; exports.LogWithTimestampFromJSON = LogWithTimestampFromJSON; exports.LogWithTimestampFromJSONTyped = LogWithTimestampFromJSONTyped; exports.LogWithTimestampToJSON = LogWithTimestampToJSON; exports.LogWithTimestampToJSONTyped = LogWithTimestampToJSONTyped; /** * Check if a given object implements the LogWithTimestamp interface. */ function instanceOfLogWithTimestamp(value) { return true; } function LogWithTimestampFromJSON(json) { return LogWithTimestampFromJSONTyped(json, false); } 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, }; } function LogWithTimestampToJSON(json) { return LogWithTimestampToJSONTyped(json, false); } function LogWithTimestampToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { log: value.log, sortValues: value.sortValues, timestamp: value.timestamp, }; }