@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
58 lines (57 loc) • 2.07 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.instanceOfNearbyLogResponse = instanceOfNearbyLogResponse;
exports.NearbyLogResponseFromJSON = NearbyLogResponseFromJSON;
exports.NearbyLogResponseFromJSONTyped = NearbyLogResponseFromJSONTyped;
exports.NearbyLogResponseToJSON = NearbyLogResponseToJSON;
exports.NearbyLogResponseToJSONTyped = NearbyLogResponseToJSONTyped;
const LogWithTimestamp_1 = require("./LogWithTimestamp");
/**
* Check if a given object implements the NearbyLogResponse interface.
*/
function instanceOfNearbyLogResponse(value) {
return true;
}
function NearbyLogResponseFromJSON(json) {
return NearbyLogResponseFromJSONTyped(json, false);
}
function NearbyLogResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
logListAfter: json.logListAfter == null
? undefined
: json.logListAfter.map(LogWithTimestamp_1.LogWithTimestampFromJSON),
logListBefore: json.logListBefore == null
? undefined
: json.logListBefore.map(LogWithTimestamp_1.LogWithTimestampFromJSON),
};
}
function NearbyLogResponseToJSON(json) {
return NearbyLogResponseToJSONTyped(json, false);
}
function NearbyLogResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
logListAfter: value.logListAfter == null
? undefined
: value.logListAfter.map(LogWithTimestamp_1.LogWithTimestampToJSON),
logListBefore: value.logListBefore == null
? undefined
: value.logListBefore.map(LogWithTimestamp_1.LogWithTimestampToJSON),
};
}