@recraft-ai/mcp-recraft-server
Version:
MCP Server implementation for recraft.ai API
36 lines (35 loc) • 1.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfListStylesResponse = instanceOfListStylesResponse;
exports.ListStylesResponseFromJSON = ListStylesResponseFromJSON;
exports.ListStylesResponseFromJSONTyped = ListStylesResponseFromJSONTyped;
exports.ListStylesResponseToJSON = ListStylesResponseToJSON;
exports.ListStylesResponseToJSONTyped = ListStylesResponseToJSONTyped;
const Style_1 = require("./Style");
function instanceOfListStylesResponse(value) {
if (!('styles' in value) || value['styles'] === undefined)
return false;
return true;
}
function ListStylesResponseFromJSON(json) {
return ListStylesResponseFromJSONTyped(json, false);
}
function ListStylesResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'styles': (json['styles'].map(Style_1.StyleFromJSON)),
};
}
function ListStylesResponseToJSON(json) {
return ListStylesResponseToJSONTyped(json, false);
}
function ListStylesResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'styles': (value['styles'].map(Style_1.StyleToJSON)),
};
}