@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
45 lines (44 loc) • 1.41 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 { DataMetaFromJSON, DataMetaToJSON } from './DataMeta';
/**
* Check if a given object implements the ResponseClassDataMeta interface.
*/
export function instanceOfResponseClassDataMeta(value) {
return true;
}
export function ResponseClassDataMetaFromJSON(json) {
return ResponseClassDataMetaFromJSONTyped(json, false);
}
export function ResponseClassDataMetaFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
code: json.code == null ? undefined : json.code,
data: json.data == null ? undefined : DataMetaFromJSON(json.data),
message: json.message == null ? undefined : json.message,
};
}
export function ResponseClassDataMetaToJSON(json) {
return ResponseClassDataMetaToJSONTyped(json, false);
}
export function ResponseClassDataMetaToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
code: value.code,
data: DataMetaToJSON(value.data),
message: value.message,
};
}