Logo GenPRES

Dto Module

Holds the Dto of an age and converts an age to and from the Dto. Returns a validation error for a part outside the allowed bounds.

Types

Type Description

Dto

Functions and values

Function or value Description

dto ()

Full Usage: dto ()

Parameters:
    () : unit

Returns: Dto
() : unit
Returns: Dto

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: Result<AgeValue, ValidationErrors>

toDto a

Full Usage: toDto a

Parameters:
Returns: Dto
a : AgeValue
Returns: Dto

Type something to start searching.