setRelations method
Bulk sets multiple relations at once.
Example:
post.setRelations({
'author': author,
'tags': [tag1, tag2],
});
Implementation
void setRelations(Map<String, dynamic> relations) {
for (final entry in relations.entries) {
setRelation(entry.key, entry.value);
}
}