@recraft-ai/mcp-recraft-server
Version:
MCP Server implementation for recraft.ai API
39 lines (38 loc) • 1.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfTextLayoutItem = instanceOfTextLayoutItem;
exports.TextLayoutItemFromJSON = TextLayoutItemFromJSON;
exports.TextLayoutItemFromJSONTyped = TextLayoutItemFromJSONTyped;
exports.TextLayoutItemToJSON = TextLayoutItemToJSON;
exports.TextLayoutItemToJSONTyped = TextLayoutItemToJSONTyped;
function instanceOfTextLayoutItem(value) {
if (!('bbox' in value) || value['bbox'] === undefined)
return false;
if (!('text' in value) || value['text'] === undefined)
return false;
return true;
}
function TextLayoutItemFromJSON(json) {
return TextLayoutItemFromJSONTyped(json, false);
}
function TextLayoutItemFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'bbox': json['bbox'],
'text': json['text'],
};
}
function TextLayoutItemToJSON(json) {
return TextLayoutItemToJSONTyped(json, false);
}
function TextLayoutItemToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'bbox': value['bbox'],
'text': value['text'],
};
}