diff --git a/src/mapping/json/figuredata/IFigureData.ts b/src/mapping/json/figuredata/IFigureData.ts index 98a332a..86e7901 100644 --- a/src/mapping/json/figuredata/IFigureData.ts +++ b/src/mapping/json/figuredata/IFigureData.ts @@ -4,5 +4,5 @@ import { IFigureDataSetType } from './IFigureDataSetType'; export interface IFigureData { palettes?: IFigureDataPalette[]; - sets?: IFigureDataSetType[]; + setTypes?: IFigureDataSetType[]; } diff --git a/src/mapping/mappers/FigureDataMapper.ts b/src/mapping/mappers/FigureDataMapper.ts index f986f4e..43392f1 100644 --- a/src/mapping/mappers/FigureDataMapper.ts +++ b/src/mapping/mappers/FigureDataMapper.ts @@ -39,9 +39,9 @@ export class FigureDataMapper extends Mapper { if(xml.sets.length) { - output.sets = []; + output.setTypes = []; - FigureDataMapper.mapFigureDataSetTypes(xml.sets, output.sets); + FigureDataMapper.mapFigureDataSetTypes(xml.sets, output.setTypes); } } }