@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
51 lines (50 loc) • 1.58 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.instanceOfResponseClass = instanceOfResponseClass;
exports.ResponseClassFromJSON = ResponseClassFromJSON;
exports.ResponseClassFromJSONTyped = ResponseClassFromJSONTyped;
exports.ResponseClassToJSON = ResponseClassToJSON;
exports.ResponseClassToJSONTyped = ResponseClassToJSONTyped;
/**
* Check if a given object implements the ResponseClass interface.
*/
function instanceOfResponseClass(value) {
return true;
}
function ResponseClassFromJSON(json) {
return ResponseClassFromJSONTyped(json, false);
}
function ResponseClassFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
code: json.code == null ? undefined : json.code,
data: json.data == null ? undefined : json.data,
message: json.message == null ? undefined : json.message,
};
}
function ResponseClassToJSON(json) {
return ResponseClassToJSONTyped(json, false);
}
function ResponseClassToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
code: value.code,
data: value.data,
message: value.message,
};
}