decode(with:)

Decodes the value of this implicit field with the given decoder, throwing a BSON.DocumentKeyError if it does not exist. Throws a BSON.DecodingError wrapping the underlying error if decoding fails.

BSON.OptionalDecoder.swift:62
func decode<T>(with decode: (BSON.AnyValue) throws -> T) throws -> T