Structures

The following structures are available globally.

  • A struct that is used as the top level container of a model used to decode Settings JSON data.

    The struct matches the structure of the Settings JSON exactly and is not currently used to service a struct that models the JSON differently. It embeds nested structs representing arrays in the JSON data.

    Note

    Unlike the other JSON service structs in the framework this struct names the properties the same as the keys in the JSON to avoid the requirement for CodingKey enums. The simplicity of the Settings JSON structure allows the struct to take advantage of the Codable protocol automatic key generation feature.

    The properties are settable variables so that settings can be changed programmatically during the run of a client application – this feature is designed specifically for use during unit testing.

    See more

    Declaration

    Swift

    public struct SettingsManagerService : Codable, Equatable