[LLC, Persistence] Add doc comments
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import 'package:stream_chat/stream_chat.dart';
|
||||
import 'package:stream_chat_persistence/src/db/moor_chat_database.dart';
|
||||
|
||||
///
|
||||
/// Useful mapping functions for [UserEntity]
|
||||
extension UserEntityX on UserEntity {
|
||||
///
|
||||
/// Maps a [UserEntity] into [User]
|
||||
User toUser() {
|
||||
return User(
|
||||
id: id,
|
||||
@@ -18,9 +18,9 @@ extension UserEntityX on UserEntity {
|
||||
}
|
||||
}
|
||||
|
||||
///
|
||||
/// Useful mapping functions for [User]
|
||||
extension UserX on User {
|
||||
///
|
||||
/// Maps a [User] into [UserEntity]
|
||||
UserEntity toEntity() {
|
||||
return UserEntity(
|
||||
id: id,
|
||||
|
||||
Reference in New Issue
Block a user