Dto Module
Maps a ValueUnit to a Dto with the values, the unit and the group as text, and back. The mapping to a Dto gives None for a language other than English or Dutch. The mapping back reads the unit from the Json text when the Dto has one, and otherwise parses the unit with its group: a blank unit gives None, an unknown unit with no group or the group General becomes a General unit, and an unknown unit with another group raises a FormatException.
Types
| Type | Description |
|
|
GenPRES