ToManyRelationship
annotation class ToManyRelationship(val name: String, val resourceType: KClass<*>, val canBeNull: Boolean = false, val propertyName: String = "")(source)
Annotates a class representing a to-many relationship in a JSON:API resource.
Parameters
name
The name of the relationship.
resourceType
The type of the related resource.
canBeNull
If the relationship can have null as a value.
propertyName
The name of the property in the class. Defaults to the name of the relationship.