UNPKG

@cotofe/service-of-system

Version:

OpenAPI client for @cotofe/service-of-system

51 lines (50 loc) 1.69 kB
"use strict"; /** * 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.instanceOfResponseClassString = instanceOfResponseClassString; exports.ResponseClassStringFromJSON = ResponseClassStringFromJSON; exports.ResponseClassStringFromJSONTyped = ResponseClassStringFromJSONTyped; exports.ResponseClassStringToJSON = ResponseClassStringToJSON; exports.ResponseClassStringToJSONTyped = ResponseClassStringToJSONTyped; /** * Check if a given object implements the ResponseClassString interface. */ function instanceOfResponseClassString(value) { return true; } function ResponseClassStringFromJSON(json) { return ResponseClassStringFromJSONTyped(json, false); } function ResponseClassStringFromJSONTyped(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 ResponseClassStringToJSON(json) { return ResponseClassStringToJSONTyped(json, false); } function ResponseClassStringToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { code: value.code, data: value.data, message: value.message, }; }