Skip to main content
Glama
Style.ts2.89 kB
/* tslint:disable */ /* eslint-disable */ /** * recraft.ai external api * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { ImageStyle } from './ImageStyle'; import { ImageStyleFromJSON, ImageStyleFromJSONTyped, ImageStyleToJSON, ImageStyleToJSONTyped, } from './ImageStyle'; import type { ImageSubStyle } from './ImageSubStyle'; import { ImageSubStyleFromJSON, ImageSubStyleFromJSONTyped, ImageSubStyleToJSON, ImageSubStyleToJSONTyped, } from './ImageSubStyle'; /** * * @export * @interface Style */ export interface Style { /** * * @type {string} * @memberof Style */ creationTime: string; /** * * @type {string} * @memberof Style */ id: string; /** * * @type {boolean} * @memberof Style */ isPrivate: boolean; /** * * @type {ImageStyle} * @memberof Style */ style: ImageStyle; /** * * @type {ImageSubStyle} * @memberof Style */ substyle?: ImageSubStyle; } /** * Check if a given object implements the Style interface. */ export function instanceOfStyle(value: object): value is Style { 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; return true; } export function StyleFromJSON(json: any): Style { return StyleFromJSONTyped(json, false); } export function StyleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Style { if (json == null) { return json; } return { 'creationTime': json['creation_time'], 'id': json['id'], 'isPrivate': json['is_private'], 'style': ImageStyleFromJSON(json['style']), 'substyle': json['substyle'] == null ? undefined : ImageSubStyleFromJSON(json['substyle']), }; } export function StyleToJSON(json: any): Style { return StyleToJSONTyped(json, false); } export function StyleToJSONTyped(value?: Style | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'creation_time': value['creationTime'], 'id': value['id'], 'is_private': value['isPrivate'], 'style': ImageStyleToJSON(value['style']), 'substyle': ImageSubStyleToJSON(value['substyle']), }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/recraft-ai/mcp-recraft-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server