ObjectReference class
A reference to any content object in the content management system.
This class represents a generic reference to any content item. It is used to establish relationships between content items, such as references to images, files, or other content types.
The type field indicates the type of reference (e.g., 'reference', 'image'). The ref field contains the unique identifier of the referenced content.
Example:
final ref = ObjectReference(
type: 'reference',
ref: 'content-abc123',
);
- Annotations
-
- @JsonSerializable()
Constructors
- ObjectReference.new({required String type, required String ref})
-
ObjectReference.fromJson(Map<
String, dynamic> json) -
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited