/* 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 { VariableValue, transformVariableValueToJSON, transformJSONToVariableValue } from './variable-value'; export const transformVariableToJSON = function (value: Variable): any { return { id: value.id, name: value.name, description: value.description, source_id: value.sourceId, values: value.values.map(transformVariableValueToJSON) } } export const transformJSONToVariable = function (value: any): Variable { return { id: value.id, name: value.name, description: value.description, sourceId: value.source_id, values: value.values.map(transformJSONToVariableValue) } } /** * * @export * @interface Variable */ export interface Variable { /** * The unique id of the variable * @type {string} * @memberof Variable */ id: string; /** * The name of the variable * @type {string} * @memberof Variable */ name: string; /** * The description of the variable * @type {string} * @memberof Variable */ description?: string; /** * Variable\'s identifier in the design tool * @type {string} * @memberof Variable */ sourceId: string; /** * * @type {Array} * @memberof Variable */ values: Array; }