@zeplin/sdk
Version:
Zeplin API client for JavaScript
59 lines (56 loc) • 2.15 kB
JavaScript
;
require("core-js/modules/es.object.define-property.js");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.transformJSONToFlowBoardAnnotationNode = exports.transformFlowBoardAnnotationNodeToJSON = void 0;
var _flowBoardNodeColor = require("./flow-board-node-color");
var _flowBoardPosition = require("./flow-board-position");
var _screenAnnotationNoteType = require("./screen-annotation-note-type");
/* 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.
*/
var transformFlowBoardAnnotationNodeToJSON = function transformFlowBoardAnnotationNodeToJSON(value) {
return {
id: value.id,
type: value.type,
position: (0, _flowBoardPosition.transformFlowBoardPositionToJSON)(value.position),
width: value.width,
height: value.height,
color: (0, _flowBoardNodeColor.transformFlowBoardNodeColorToJSON)(value.color),
font_size: value.fontSize,
font_type: value.fontType,
text: value.text,
note_type: value.noteType && (0, _screenAnnotationNoteType.transformScreenAnnotationNoteTypeToJSON)(value.noteType)
};
};
exports.transformFlowBoardAnnotationNodeToJSON = transformFlowBoardAnnotationNodeToJSON;
var transformJSONToFlowBoardAnnotationNode = function transformJSONToFlowBoardAnnotationNode(value) {
return {
id: value.id,
type: value.type,
position: (0, _flowBoardPosition.transformJSONToFlowBoardPosition)(value.position),
width: value.width,
height: value.height,
color: (0, _flowBoardNodeColor.transformJSONToFlowBoardNodeColor)(value.color),
fontSize: value.font_size,
fontType: value.font_type,
text: value.text,
noteType: value.note_type && (0, _screenAnnotationNoteType.transformJSONToScreenAnnotationNoteType)(value.note_type)
};
};
/**
*
* @export
* @interface FlowBoardAnnotationNode
*/
exports.transformJSONToFlowBoardAnnotationNode = transformJSONToFlowBoardAnnotationNode;