EntityLogService

struct EntityLogService : Codable, Equatable

A struct that is used as the top level container of an intermediate service model used to decode EntityLog JSON data.

The struct matches the structure of the EntityLog JSON exactly with the intention of being used to service an EntityLog struct that models the JSON differently. It embeds nested structs representing arrays in the JSON data.

The structure of the EntityLog JSON is designed for the convenience of the user. It represents the way print numbers appear in the source code relative to functions positioned at the top level of the JSON hierarchy. The EntityLog struct model on the other hand is designed for the efficiency of the framework with print number messages positioned at the top level of the struct hierarchy.

Note

The struct uses a custom semantic naming system to name properties associated with key value pairs and their position in the JSON. This system was developed as an aid to correctly map each key to its position in the struct.
  • kA

    A string mapped to the entity_code key in the EntityLog JSON data.

    Declaration

    Swift

    let kA: String
  • An array of KB21 instances mapped to the entity_functions key in the EntityLog JSON data.

    Declaration

    Swift

    let kB21A: [KB21]
  • A struct embedded inside an EntityLogService struct that is used as a nested layer within an intermediate service model used to decode EntityLog JSON data.

    The struct models an array of JSON objects mapped to the entity_functions key in the EntityLog JSON data.

    Note

    The struct uses a custom semantic naming system to name properties associated with key value pairs and their position in the JSON. This system was developed as an aid to correctly map each key to its position in the struct.
    See more

    Declaration

    Swift

    struct KB21 : Codable, Equatable
  • An enum that conforms to the CodingKey protocol for storing the key strings used to decode EntityLogService from the JSON data.

    See more

    Declaration

    Swift

    enum CodingKeys : String, CodingKey