@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
45 lines (44 loc) • 1.45 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 { DatasetMetaFromJSON, DatasetMetaToJSON } from './DatasetMeta';
/**
* Check if a given object implements the ResponseClassDatasetMeta interface.
*/
export function instanceOfResponseClassDatasetMeta(value) {
return true;
}
export function ResponseClassDatasetMetaFromJSON(json) {
return ResponseClassDatasetMetaFromJSONTyped(json, false);
}
export function ResponseClassDatasetMetaFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
code: json.code == null ? undefined : json.code,
data: json.data == null ? undefined : DatasetMetaFromJSON(json.data),
message: json.message == null ? undefined : json.message,
};
}
export function ResponseClassDatasetMetaToJSON(json) {
return ResponseClassDatasetMetaToJSONTyped(json, false);
}
export function ResponseClassDatasetMetaToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
code: value.code,
data: DatasetMetaToJSON(value.data),
message: value.message,
};
}