attribute method
Report a conversion. Pass clickId (from the link) for deterministic
attribution, or slug when the app was opened by the short link itself;
otherwise the server matches by fingerprint. Returns the matched link's
deep-link data (or null if unattributed).
Implementation
Future<Map<String, dynamic>?> attribute({
String type = 'install',
String? clickId,
String? slug,
String? name,
String? platform,
Map<String, Object?>? properties,
}) async {
final res = await _attributeRaw(
type: type,
clickId: clickId,
slug: slug,
name: name,
platform: platform,
properties: properties,
);
return res?['link'] as Map<String, dynamic>?;
}