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
Defined in
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. |