import { VocabularyCategory } from '@ulangi/ulangi-common/interfaces' ; import { VocabularyCategoryRow } from '../interfaces/VocabularyCategoryRow' ; export class VocabularyCategoryRowConverter { public convertToVocabularyCategory ( vocabularyCategoryRow ) { const vocabularyCategory = { categoryName : vocabularyCategoryRow . categoryName , createdAt : vocabularyCategoryRow . createdAt , updatedAt : vocabularyCategoryRow . updatedAt , firstSyncedAt : vocabularyCategoryRow . firstSyncedAt , lastSyncedAt : vocabularyCategoryRow . lastSyncedAt , } ; return vocabularyCategory ; } }