import { VocabularyWriting } from '@ulangi/ulangi-common/interfaces' ; import { VocabularyWritingRow } from '../interfaces/VocabularyWritingRow' ; export class VocabularyWritingRowConverter { public convertToVocabularyWriting ( vocabularyWritingRow ) { const vocabularyWriting = { level : vocabularyWritingRow . level , lastWrittenAt : vocabularyWritingRow . lastWrittenAt , disabled : vocabularyWritingRow . disabled === 1 ? true : false , createdAt : vocabularyWritingRow . createdAt , updatedAt : vocabularyWritingRow . updatedAt , firstSyncedAt : vocabularyWritingRow . firstSyncedAt , lastSyncedAt : vocabularyWritingRow . lastSyncedAt , } ; return vocabularyWriting ; } }