Created
January 7, 2023 15:49
-
-
Save FlutterWiz/410d4f52fd7123206e765c54b31ff4dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension GetstreamUserDomainX on OwnUser { | |
ChatUserModel toDomain() { | |
return ChatUserModel( | |
createdAt: formatDate(createdAt, [yyyy, '-', mm, '-', dd]), | |
userRole: role?.toUpperCase() ?? "?", | |
isUserBanned: banned, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment