UNPKG

@recraft-ai/mcp-recraft-server

Version:
55 lines (54 loc) 2.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfCreateStyleResponse = instanceOfCreateStyleResponse; exports.CreateStyleResponseFromJSON = CreateStyleResponseFromJSON; exports.CreateStyleResponseFromJSONTyped = CreateStyleResponseFromJSONTyped; exports.CreateStyleResponseToJSON = CreateStyleResponseToJSON; exports.CreateStyleResponseToJSONTyped = CreateStyleResponseToJSONTyped; const ImageStyle_1 = require("./ImageStyle"); const ImageSubStyle_1 = require("./ImageSubStyle"); function instanceOfCreateStyleResponse(value) { if (!('creationTime' in value) || value['creationTime'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('isPrivate' in value) || value['isPrivate'] === undefined) return false; if (!('style' in value) || value['style'] === undefined) return false; if (!('credits' in value) || value['credits'] === undefined) return false; return true; } function CreateStyleResponseFromJSON(json) { return CreateStyleResponseFromJSONTyped(json, false); } function CreateStyleResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'creationTime': json['creation_time'], 'id': json['id'], 'isPrivate': json['is_private'], 'style': (0, ImageStyle_1.ImageStyleFromJSON)(json['style']), 'substyle': json['substyle'] == null ? undefined : (0, ImageSubStyle_1.ImageSubStyleFromJSON)(json['substyle']), 'credits': json['credits'], }; } function CreateStyleResponseToJSON(json) { return CreateStyleResponseToJSONTyped(json, false); } function CreateStyleResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'creation_time': value['creationTime'], 'id': value['id'], 'is_private': value['isPrivate'], 'style': (0, ImageStyle_1.ImageStyleToJSON)(value['style']), 'substyle': (0, ImageSubStyle_1.ImageSubStyleToJSON)(value['substyle']), 'credits': value['credits'], }; }