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