isPreferences function
Returns true if object
is Preferences, otherwise false.
Implementation
bool isPreferences(final Map<String, dynamic>? object) {
if (object == null) return false;
if (object[r'$type'] == null) return false;
return object[r'$type'] == 'app.bsky.actor.defs#preferences';
}