Update models
This commit is contained in:
parent
a1b160d547
commit
05d1377147
|
|
@ -203,6 +203,12 @@ class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
|
||||||
..add(serializers.serialize(object.password,
|
..add(serializers.serialize(object.password,
|
||||||
specifiedType: const FullType(String)));
|
specifiedType: const FullType(String)));
|
||||||
}
|
}
|
||||||
|
if (object.emailVerifiedAt != null) {
|
||||||
|
result
|
||||||
|
..add('email_verified_at')
|
||||||
|
..add(serializers.serialize(object.emailVerifiedAt,
|
||||||
|
specifiedType: const FullType(int)));
|
||||||
|
}
|
||||||
if (object.userCompany != null) {
|
if (object.userCompany != null) {
|
||||||
result
|
result
|
||||||
..add('company_user')
|
..add('company_user')
|
||||||
|
|
@ -267,6 +273,10 @@ class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
|
||||||
result.password = serializers.deserialize(value,
|
result.password = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
break;
|
break;
|
||||||
|
case 'email_verified_at':
|
||||||
|
result.emailVerifiedAt = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(int)) as int;
|
||||||
|
break;
|
||||||
case 'custom_value1':
|
case 'custom_value1':
|
||||||
result.customValue1 = serializers.deserialize(value,
|
result.customValue1 = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
|
|
@ -627,6 +637,8 @@ class _$UserEntity extends UserEntity {
|
||||||
@override
|
@override
|
||||||
final String password;
|
final String password;
|
||||||
@override
|
@override
|
||||||
|
final int emailVerifiedAt;
|
||||||
|
@override
|
||||||
final String customValue1;
|
final String customValue1;
|
||||||
@override
|
@override
|
||||||
final String customValue2;
|
final String customValue2;
|
||||||
|
|
@ -664,6 +676,7 @@ class _$UserEntity extends UserEntity {
|
||||||
this.email,
|
this.email,
|
||||||
this.phone,
|
this.phone,
|
||||||
this.password,
|
this.password,
|
||||||
|
this.emailVerifiedAt,
|
||||||
this.customValue1,
|
this.customValue1,
|
||||||
this.customValue2,
|
this.customValue2,
|
||||||
this.customValue3,
|
this.customValue3,
|
||||||
|
|
@ -736,6 +749,7 @@ class _$UserEntity extends UserEntity {
|
||||||
email == other.email &&
|
email == other.email &&
|
||||||
phone == other.phone &&
|
phone == other.phone &&
|
||||||
password == other.password &&
|
password == other.password &&
|
||||||
|
emailVerifiedAt == other.emailVerifiedAt &&
|
||||||
customValue1 == other.customValue1 &&
|
customValue1 == other.customValue1 &&
|
||||||
customValue2 == other.customValue2 &&
|
customValue2 == other.customValue2 &&
|
||||||
customValue3 == other.customValue3 &&
|
customValue3 == other.customValue3 &&
|
||||||
|
|
@ -773,20 +787,13 @@ class _$UserEntity extends UserEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc($jc(0, firstName.hashCode),
|
||||||
0,
|
lastName.hashCode),
|
||||||
firstName
|
email.hashCode),
|
||||||
.hashCode),
|
phone.hashCode),
|
||||||
lastName
|
password.hashCode),
|
||||||
.hashCode),
|
emailVerifiedAt.hashCode),
|
||||||
email
|
customValue1.hashCode),
|
||||||
.hashCode),
|
|
||||||
phone
|
|
||||||
.hashCode),
|
|
||||||
password
|
|
||||||
.hashCode),
|
|
||||||
customValue1
|
|
||||||
.hashCode),
|
|
||||||
customValue2.hashCode),
|
customValue2.hashCode),
|
||||||
customValue3.hashCode),
|
customValue3.hashCode),
|
||||||
customValue4.hashCode),
|
customValue4.hashCode),
|
||||||
|
|
@ -810,6 +817,7 @@ class _$UserEntity extends UserEntity {
|
||||||
..add('email', email)
|
..add('email', email)
|
||||||
..add('phone', phone)
|
..add('phone', phone)
|
||||||
..add('password', password)
|
..add('password', password)
|
||||||
|
..add('emailVerifiedAt', emailVerifiedAt)
|
||||||
..add('customValue1', customValue1)
|
..add('customValue1', customValue1)
|
||||||
..add('customValue2', customValue2)
|
..add('customValue2', customValue2)
|
||||||
..add('customValue3', customValue3)
|
..add('customValue3', customValue3)
|
||||||
|
|
@ -851,6 +859,11 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
|
||||||
String get password => _$this._password;
|
String get password => _$this._password;
|
||||||
set password(String password) => _$this._password = password;
|
set password(String password) => _$this._password = password;
|
||||||
|
|
||||||
|
int _emailVerifiedAt;
|
||||||
|
int get emailVerifiedAt => _$this._emailVerifiedAt;
|
||||||
|
set emailVerifiedAt(int emailVerifiedAt) =>
|
||||||
|
_$this._emailVerifiedAt = emailVerifiedAt;
|
||||||
|
|
||||||
String _customValue1;
|
String _customValue1;
|
||||||
String get customValue1 => _$this._customValue1;
|
String get customValue1 => _$this._customValue1;
|
||||||
set customValue1(String customValue1) => _$this._customValue1 = customValue1;
|
set customValue1(String customValue1) => _$this._customValue1 = customValue1;
|
||||||
|
|
@ -921,6 +934,7 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
|
||||||
_email = _$v.email;
|
_email = _$v.email;
|
||||||
_phone = _$v.phone;
|
_phone = _$v.phone;
|
||||||
_password = _$v.password;
|
_password = _$v.password;
|
||||||
|
_emailVerifiedAt = _$v.emailVerifiedAt;
|
||||||
_customValue1 = _$v.customValue1;
|
_customValue1 = _$v.customValue1;
|
||||||
_customValue2 = _$v.customValue2;
|
_customValue2 = _$v.customValue2;
|
||||||
_customValue3 = _$v.customValue3;
|
_customValue3 = _$v.customValue3;
|
||||||
|
|
@ -964,6 +978,7 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
|
||||||
email: email,
|
email: email,
|
||||||
phone: phone,
|
phone: phone,
|
||||||
password: password,
|
password: password,
|
||||||
|
emailVerifiedAt: emailVerifiedAt,
|
||||||
customValue1: customValue1,
|
customValue1: customValue1,
|
||||||
customValue2: customValue2,
|
customValue2: customValue2,
|
||||||
customValue3: customValue3,
|
customValue3: customValue3,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue