getAttributes method
Convenience method to get all attributes as a map.
This is equivalent to the attributes getter but provided as a method
for API consistency.
Returns an unmodifiable view of the attribute map.
Note: This only returns tracked attributes. On plain model instances (not ORM-managed), this may return an empty map.
Implementation
Map<String, Object?> getAttributes() => attributes;