parseAs<TOut extends Object> method
TOut
parseAs<TOut extends Object>(})
Parses and validates a value, then maps the validated value to TOut.
Implementation
TOut parseAs<TOut extends Object>(
Object? value,
TOut Function(Runtime? validated) map, {
String? debugName,
}) {
final result = safeParseAs(value, map, debugName: debugName);
return result.getOrThrow()!;
}