isIdentity function
Returns true if object
is Identity, otherwise false.
Implementation
bool isIdentity(final Map<String, dynamic>? object) {
if (object == null) return false;
if (object['t'] == null) return false;
return object['t'] == '#identity';
}