uuidMetadata method
Creates UUIDMetadata
and sets metadata for given uuid
in the database.
If uuid
is null, then it uses Keyset.uuid.
Implementation
Future<UUIDMetadata> uuidMetadata(
{String? uuid,
String? name,
String? email,
Map<String, dynamic>? custom,
String? externalId,
String? profileUrl,
Keyset? keyset,
String? using}) async {
keyset ??= keysets[using];
var result = await objects.setUUIDMetadata(
UuidMetadataInput(
name: name,
email: email,
externalId: externalId,
profileUrl: profileUrl,
custom: custom),
uuid: uuid,
keyset: keyset);
return UUIDMetadata(objects, keyset, result.metadata.id);
}