@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
63 lines (62 loc) • 2.28 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.instanceOfNearbyLogRequest = instanceOfNearbyLogRequest;
exports.NearbyLogRequestFromJSON = NearbyLogRequestFromJSON;
exports.NearbyLogRequestFromJSONTyped = NearbyLogRequestFromJSONTyped;
exports.NearbyLogRequestToJSON = NearbyLogRequestToJSON;
exports.NearbyLogRequestToJSONTyped = NearbyLogRequestToJSONTyped;
/**
* Check if a given object implements the NearbyLogRequest interface.
*/
function instanceOfNearbyLogRequest(value) {
return true;
}
function NearbyLogRequestFromJSON(json) {
return NearbyLogRequestFromJSONTyped(json, false);
}
function NearbyLogRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
edgeId: json.edgeId == null ? undefined : json.edgeId,
nearbyNum: json.nearbyNum == null ? undefined : json.nearbyNum,
replicaId: json.replicaId == null ? undefined : json.replicaId,
runId: json.runId == null ? undefined : json.runId,
sortValue: json.sortValue == null ? undefined : json.sortValue,
sortValues: json.sortValues == null ? undefined : json.sortValues,
timeZone: json.timeZone == null ? undefined : json.timeZone,
timestamp: json.timestamp == null ? undefined : json.timestamp,
type: json.type == null ? undefined : json.type,
};
}
function NearbyLogRequestToJSON(json) {
return NearbyLogRequestToJSONTyped(json, false);
}
function NearbyLogRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
edgeId: value.edgeId,
nearbyNum: value.nearbyNum,
replicaId: value.replicaId,
runId: value.runId,
sortValue: value.sortValue,
sortValues: value.sortValues,
timeZone: value.timeZone,
timestamp: value.timestamp,
type: value.type,
};
}