isRecord function
Returns true if object
is Record, otherwise false.
Implementation
bool isRecord(final Map<String, dynamic>? object) {
if (object == null) return false;
if (object[r'$type'] == null) return false;
return object[r'$type'] == 'app.bsky.embed.record#main' ||
object[r'$type'] == 'app.bsky.embed.record';
}