import { Set } from '@ulangi/ulangi-common/interfaces' ; import { SetExtraDataItem } from '@ulangi/ulangi-common/types' ; import { SetRow } from '../interfaces/SetRow' ; export class SetRowConverter { public convertToSet ( setRow , extraData ) { const set = { setId : setRow . setId , setName : setRow . setName , setStatus : setRow . setStatus , learningLanguageCode : setRow . learningLanguageCode , translatedToLanguageCode : setRow . translatedToLanguageCode , createdAt : setRow . createdAt , updatedAt : setRow . updatedAt , updatedStatusAt : setRow . updatedStatusAt , firstSyncedAt : setRow . firstSyncedAt , lastSyncedAt : setRow . lastSyncedAt , extraData , } ; return set ; } }