getValue method Null safety

T getValue()

Implementation

T getValue() => value.fold(
    (ValueObjectFailure<T> l) => throw UnExpectedValueObjectError<T>(l),
    (T r) => r);