@recraft-ai/mcp-recraft-server
Version:
MCP Server implementation for recraft.ai API
37 lines (36 loc) • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfImageColor = instanceOfImageColor;
exports.ImageColorFromJSON = ImageColorFromJSON;
exports.ImageColorFromJSONTyped = ImageColorFromJSONTyped;
exports.ImageColorToJSON = ImageColorToJSON;
exports.ImageColorToJSONTyped = ImageColorToJSONTyped;
function instanceOfImageColor(value) {
return true;
}
function ImageColorFromJSON(json) {
return ImageColorFromJSONTyped(json, false);
}
function ImageColorFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'rgb': json['rgb'] == null ? undefined : json['rgb'],
'std': json['std'] == null ? undefined : json['std'],
'weight': json['weight'] == null ? undefined : json['weight'],
};
}
function ImageColorToJSON(json) {
return ImageColorToJSONTyped(json, false);
}
function ImageColorToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'rgb': value['rgb'],
'std': value['std'],
'weight': value['weight'],
};
}