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.
- Loading branch information
1 parent
5158e74
commit 2a29bb4
Showing
1 changed file
with
5 additions
and
1 deletion.
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,24 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
part 'generated/UserModel.freezed.dart'; | ||
|
||
part 'generated/UserModel.g.dart'; | ||
|
||
// TODO : User Class 추가 | ||
|
||
@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, | ||
required String fcmToken, | ||
}) = _UserModel; | ||
|
||
factory UserModel.fromJson(Map<String, dynamic> json) => _$UserModelFromJson(json); | ||
factory UserModel.fromJson(Map<String, dynamic> json) => | ||
_$UserModelFromJson(json); | ||
} |