feat(cache): Add lightweight in-memory cache with TTL and LRU eviction
This commit is contained in:
@@ -30,4 +30,16 @@ sealed class User with _$User {
|
||||
isActive: json['is_active'] as bool? ?? json['isActive'] as bool? ?? true,
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'id': id,
|
||||
'username': username,
|
||||
'email': email,
|
||||
'name': name,
|
||||
'profile_image_url': profileImage,
|
||||
'role': role,
|
||||
'is_active': isActive,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user