getData method
Collects context data. Implementations must never throw; if an internal error occurs, return an empty map instead.
Implementation
@override
Map<String, dynamic> getData() {
return <String, dynamic>{
if (id != null) 'id': id,
if (email != null) 'email': email,
if (role != null) 'role': role,
if (tenantId != null) 'tenantId': tenantId,
if (_traits.isNotEmpty) 'traits': _traits,
};
}