Logo GenPRES

Dto Module

Holds the Dto of a weight value and converts a weight value to and from the Dto. Returns a validation error for a weight outside the 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: ValidationResult<WeightValue>
dto : Dto
Returns: ValidationResult<WeightValue>

toDto wv

Full Usage: toDto wv

Parameters:
Returns: Dto
wv : WeightValue
Returns: Dto

Type something to start searching.