Created
September 22, 2021 17:10
-
-
Save JEuler/0759b5dc4b6164dd0e7d9ca926cf1953 to your computer and use it in GitHub Desktop.
Extension class to convert between Web and DB entities
This file contains 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 UserExtension on User { | |
DBUser getDbVersion() => | |
DBUser(id, avatar ?? "", email ?? "", language ?? "", name ?? ""); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment