From b29ad2c807a4111db7362e7b3d05c4980ae1eb19 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sun, 19 Feb 2017 07:37:23 -0500 Subject: [PATCH] Update user.dart --- lib/src/models/user.dart | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/lib/src/models/user.dart b/lib/src/models/user.dart index 7368895..f7d4621 100644 --- a/lib/src/models/user.dart +++ b/lib/src/models/user.dart @@ -1,26 +1,11 @@ library angel.models.user; -import 'package:angel_mongo/model.dart'; -import 'package:source_gen/generators/json_serializable.dart'; +import 'package:angel_framework/common.dart'; -part 'user.g.dart'; - -@JsonSerializable() -class User extends Model with _$UserSerializerMixin { - @JsonKey('email') - String email; - - @JsonKey('username') - String username; - - @JsonKey('password') - String password; - - @JsonKey('roles') +class User extends Model { + String email, username, password; final List roles = []; - factory User.fromJson(Map json) => _$UserFromJson(json); - User( {String id, this.email,