ResourceNestedAttribute
Protcol to implement for serialization/deserialization of nested attributes inside a Resource
-
nestedAttributesKeysDefault implementationOverride the keys expected in the JSON API resource object’s attributes to match the nested object’s attributes Format => [resourceObjectAttributeKey: nestedObjectKey]
Default Implementation
-
nestedExcludedAttributesDefault implementationAttributes that won’t be serialized when serializing to a JSON API resource object
Default Implementation
-
attributesKeysExtension methodAlias of
nestedAttributesKeysfor an instance instead of the type -
excludedAttributesExtension methodAlias of
nestedExcludedAttributesfor an instance instead of the type
ResourceNestedAttribute Protocol Reference