View on GitHub

Library API Documentation

Documentation for Library API Packages

Library Core / src / LanguageMapper

Class: LanguageMapper

src.LanguageMapper

Maps raw language data to more accessible DTOs.

Table of contents

Constructors

Methods

Constructors

constructor

new LanguageMapper()

Methods

MapLanguage

MapLanguage(language): LanguageDTO

Maps a raw Language data row to a Language DTO.

Parameters

Name Type Description
language LanguageRow The data row.

Returns

LanguageDTO

Defined in

src/classes/Mapper.ts:173


MapLanguages

MapLanguages(languages): LanguageDTO[]

Maps multiple Language data rows using MapLanguage and returns the mapped array.

Parameters

Name Type Description
languages LanguageRow[] The data rows.

Returns

LanguageDTO[]

Defined in

src/classes/Mapper.ts:188