decode

Gets the value of this key, throwing a BSON.DocumentKeyError if it is nil. This is a distinct condition from an explicit null value, which will be returned without throwing an error.

BSON.OptionalDecoder.swift:44
func decode() throws -> BSON.AnyValue