generated from jwson-automation/blueberry_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
유저 모델 업데이트 ( FCM 토큰, 권한 설정용 String ) (#12)
- Loading branch information
Showing
3 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
part 'generated/UserModel.freezed.dart'; | ||
part 'generated/UserModel.g.dart'; | ||
|
||
// TODO : User Class 추가 | ||
part 'generated/UserModel.g.dart'; | ||
|
||
@freezed | ||
class UserModel with _$UserModel { | ||
const factory UserModel({ | ||
required String userClass, | ||
required String userId, | ||
required String name, | ||
required String email, | ||
required int age, | ||
required String profileImageUrl, | ||
required DateTime createdAt, | ||
String? profileImageUrl, | ||
String? fcmToken, | ||
}) = _UserModel; | ||
|
||
factory UserModel.fromJson(Map<String, dynamic> json) => _$UserModelFromJson(json); | ||
factory UserModel.fromJson(Map<String, dynamic> json) => | ||
_$UserModelFromJson(json); | ||
} |
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
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