ConfigurationKey

open class ConfigurationKey<T> : ConfigurationKeyProtocol

Configuration key.

  • Relative key path.

    Declaration

    Swift

    public let path: ConfigurationPath
  • Default key value.

    Declaration

    Swift

    public let defaultValue: DefaultValue
  • Returns the deserialized value.

    Declaration

    Swift

    open func map(_ marco: MarcoValue) -> T?
  • Returns the serialized value.

    Declaration

    Swift

    open func map(_ value: T) -> MarcoValue
  • Create a key for the given path and with a defaultValue.

    Declaration

    Swift

    public init(_ path: ConfigurationPath, _ defaultValue: DefaultValue, _ doc: KeyDoc?)