/* tslint:disable */ /* eslint-disable */ /** * Zeplin API * Access your resources in Zeplin * * Contact: support@zeplin.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { FlowBoardNodeColor, transformFlowBoardNodeColorToJSON, transformJSONToFlowBoardNodeColor } from './flow-board-node-color'; import { FlowBoardPosition, transformFlowBoardPositionToJSON, transformJSONToFlowBoardPosition } from './flow-board-position'; export const transformFlowBoardShapeNodeToJSON = function (value: FlowBoardShapeNode): any { return { id: value.id, type: value.type, shape_type: value.shapeType, position: transformFlowBoardPositionToJSON(value.position), text: value.text, width: value.width, height: value.height, color: transformFlowBoardNodeColorToJSON(value.color) } } export const transformJSONToFlowBoardShapeNode = function (value: any): FlowBoardShapeNode { return { id: value.id, type: value.type, shapeType: value.shape_type, position: transformJSONToFlowBoardPosition(value.position), text: value.text, width: value.width, height: value.height, color: transformJSONToFlowBoardNodeColor(value.color) } } /** * * @export * @interface FlowBoardShapeNode */ export interface FlowBoardShapeNode { /** * The unique id of the shape node * @type {string} * @memberof FlowBoardShapeNode */ id: string; /** * * @type {string} * @memberof FlowBoardShapeNode */ type: 'ShapeNode'; /** * * @type {string} * @memberof FlowBoardShapeNode */ shapeType: 'rectangle' | 'pill' | 'diamond'; /** * * @type {FlowBoardPosition} * @memberof FlowBoardShapeNode */ position: FlowBoardPosition; /** * * @type {string} * @memberof FlowBoardShapeNode */ text: string; /** * * @type {number} * @memberof FlowBoardShapeNode */ width: number; /** * * @type {number} * @memberof FlowBoardShapeNode */ height: number; /** * * @type {FlowBoardNodeColor} * @memberof FlowBoardShapeNode */ color: FlowBoardNodeColor; }