¿Cuál es la diferencia entre opcional y decodeIfPresent cuando se usa Decodable para análisis JSON?

estoy usandoCodable protocolo de Swift 4 por primera vez, no puedo entender el uso dedecodeIfPresent deDecodable.

/// Decodes a value of the given type for the given key, if present.
///
/// This method returns `nil` if the container does not have a value associated with `key`, or if the value is null. The difference between these states can be distinguished with a `contains(_:)` call.
///
/// - parameter type: The type of value to decode.
/// - parameter key: The key that the decoded value is associated with.
/// - returns: A decoded value of the requested type, or `nil` if the `Decoder` does not have an entry associated with the given key, or if the value is a null value.
/// - throws: `DecodingError.typeMismatch` if the encountered encoded value is not convertible to the requested type.
public func decodeIfPresent(_ type: String.Type, forKey key: KeyedDecodingContainer.Key) throws -> String?

Aquí sugiere que regresenil, si el valor no está presente con la clave asociada. Si esta es la única razón, entonces, cómo se diferencia de la propiedad opcional, ya que la variable opcional también se establece ennil si el valor no está presente en respuesta.

Respuestas a la pregunta(2)

Su respuesta a la pregunta