ResourceNestedAttribute

Protcol to implement for serialization/deserialization of nested attributes inside a Resource

  • nestedAttributesKeys Default implementation

    Override the keys expected in the JSON API resource object’s attributes to match the nested object’s attributes Format => [resourceObjectAttributeKey: nestedObjectKey]

    Default Implementation

  • nestedExcludedAttributes Default implementation

    Attributes that won’t be serialized when serializing to a JSON API resource object

    Default Implementation

  • attributesKeys Extension method

    Alias of nestedAttributesKeys for an instance instead of the type

  • excludedAttributes Extension method

    Alias of nestedExcludedAttributes for an instance instead of the type