Skip to content

Commit

Permalink
upd userModel
Browse files Browse the repository at this point in the history
  • Loading branch information
jwson-automation committed Jul 25, 2024
1 parent 5158e74 commit 2a29bb4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/model/UserModel.dart
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);
}

0 comments on commit 2a29bb4

Please sign in to comment.