799 lines
24 KiB
Dart
799 lines
24 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'user_model.dart';
|
|
|
|
// **************************************************************************
|
|
// BuiltValueGenerator
|
|
// **************************************************************************
|
|
|
|
Serializer<UserListResponse> _$userListResponseSerializer =
|
|
new _$UserListResponseSerializer();
|
|
Serializer<UserItemResponse> _$userItemResponseSerializer =
|
|
new _$UserItemResponseSerializer();
|
|
Serializer<UserEntity> _$userEntitySerializer = new _$UserEntitySerializer();
|
|
|
|
class _$UserListResponseSerializer
|
|
implements StructuredSerializer<UserListResponse> {
|
|
@override
|
|
final Iterable<Type> types = const [UserListResponse, _$UserListResponse];
|
|
@override
|
|
final String wireName = 'UserListResponse';
|
|
|
|
@override
|
|
Iterable<Object> serialize(Serializers serializers, UserListResponse object,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = <Object>[
|
|
'data',
|
|
serializers.serialize(object.data,
|
|
specifiedType:
|
|
const FullType(BuiltList, const [const FullType(UserEntity)])),
|
|
];
|
|
|
|
return result;
|
|
}
|
|
|
|
@override
|
|
UserListResponse deserialize(
|
|
Serializers serializers, Iterable<Object> serialized,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = new UserListResponseBuilder();
|
|
|
|
final iterator = serialized.iterator;
|
|
while (iterator.moveNext()) {
|
|
final key = iterator.current as String;
|
|
iterator.moveNext();
|
|
final dynamic value = iterator.current;
|
|
switch (key) {
|
|
case 'data':
|
|
result.data.replace(serializers.deserialize(value,
|
|
specifiedType: const FullType(
|
|
BuiltList, const [const FullType(UserEntity)]))
|
|
as BuiltList<dynamic>);
|
|
break;
|
|
}
|
|
}
|
|
|
|
return result.build();
|
|
}
|
|
}
|
|
|
|
class _$UserItemResponseSerializer
|
|
implements StructuredSerializer<UserItemResponse> {
|
|
@override
|
|
final Iterable<Type> types = const [UserItemResponse, _$UserItemResponse];
|
|
@override
|
|
final String wireName = 'UserItemResponse';
|
|
|
|
@override
|
|
Iterable<Object> serialize(Serializers serializers, UserItemResponse object,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = <Object>[
|
|
'data',
|
|
serializers.serialize(object.data,
|
|
specifiedType: const FullType(UserEntity)),
|
|
];
|
|
|
|
return result;
|
|
}
|
|
|
|
@override
|
|
UserItemResponse deserialize(
|
|
Serializers serializers, Iterable<Object> serialized,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = new UserItemResponseBuilder();
|
|
|
|
final iterator = serialized.iterator;
|
|
while (iterator.moveNext()) {
|
|
final key = iterator.current as String;
|
|
iterator.moveNext();
|
|
final dynamic value = iterator.current;
|
|
switch (key) {
|
|
case 'data':
|
|
result.data.replace(serializers.deserialize(value,
|
|
specifiedType: const FullType(UserEntity)) as UserEntity);
|
|
break;
|
|
}
|
|
}
|
|
|
|
return result.build();
|
|
}
|
|
}
|
|
|
|
class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
|
|
@override
|
|
final Iterable<Type> types = const [UserEntity, _$UserEntity];
|
|
@override
|
|
final String wireName = 'UserEntity';
|
|
|
|
@override
|
|
Iterable<Object> serialize(Serializers serializers, UserEntity object,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = <Object>[
|
|
'first_name',
|
|
serializers.serialize(object.firstName,
|
|
specifiedType: const FullType(String)),
|
|
'last_name',
|
|
serializers.serialize(object.lastName,
|
|
specifiedType: const FullType(String)),
|
|
'email',
|
|
serializers.serialize(object.email,
|
|
specifiedType: const FullType(String)),
|
|
'phone',
|
|
serializers.serialize(object.phone,
|
|
specifiedType: const FullType(String)),
|
|
];
|
|
if (object.customValue1 != null) {
|
|
result
|
|
..add('custom_value1')
|
|
..add(serializers.serialize(object.customValue1,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.customValue2 != null) {
|
|
result
|
|
..add('custom_value2')
|
|
..add(serializers.serialize(object.customValue2,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.customValue3 != null) {
|
|
result
|
|
..add('custom_value3')
|
|
..add(serializers.serialize(object.customValue3,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.customValue4 != null) {
|
|
result
|
|
..add('custom_value4')
|
|
..add(serializers.serialize(object.customValue4,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.userCompany != null) {
|
|
result
|
|
..add('company_user')
|
|
..add(serializers.serialize(object.userCompany,
|
|
specifiedType: const FullType(UserCompanyEntity)));
|
|
}
|
|
if (object.isChanged != null) {
|
|
result
|
|
..add('isChanged')
|
|
..add(serializers.serialize(object.isChanged,
|
|
specifiedType: const FullType(bool)));
|
|
}
|
|
if (object.createdAt != null) {
|
|
result
|
|
..add('created_at')
|
|
..add(serializers.serialize(object.createdAt,
|
|
specifiedType: const FullType(int)));
|
|
}
|
|
if (object.updatedAt != null) {
|
|
result
|
|
..add('updated_at')
|
|
..add(serializers.serialize(object.updatedAt,
|
|
specifiedType: const FullType(int)));
|
|
}
|
|
if (object.archivedAt != null) {
|
|
result
|
|
..add('deleted_at')
|
|
..add(serializers.serialize(object.archivedAt,
|
|
specifiedType: const FullType(int)));
|
|
}
|
|
if (object.isDeleted != null) {
|
|
result
|
|
..add('is_deleted')
|
|
..add(serializers.serialize(object.isDeleted,
|
|
specifiedType: const FullType(bool)));
|
|
}
|
|
if (object.createdUserId != null) {
|
|
result
|
|
..add('user_id')
|
|
..add(serializers.serialize(object.createdUserId,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.assignedUserId != null) {
|
|
result
|
|
..add('assigned_user_id')
|
|
..add(serializers.serialize(object.assignedUserId,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.id != null) {
|
|
result
|
|
..add('id')
|
|
..add(serializers.serialize(object.id,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
return result;
|
|
}
|
|
|
|
@override
|
|
UserEntity deserialize(Serializers serializers, Iterable<Object> serialized,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = new UserEntityBuilder();
|
|
|
|
final iterator = serialized.iterator;
|
|
while (iterator.moveNext()) {
|
|
final key = iterator.current as String;
|
|
iterator.moveNext();
|
|
final dynamic value = iterator.current;
|
|
switch (key) {
|
|
case 'first_name':
|
|
result.firstName = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'last_name':
|
|
result.lastName = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'email':
|
|
result.email = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'phone':
|
|
result.phone = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'custom_value1':
|
|
result.customValue1 = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'custom_value2':
|
|
result.customValue2 = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'custom_value3':
|
|
result.customValue3 = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'custom_value4':
|
|
result.customValue4 = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'company_user':
|
|
result.userCompany.replace(serializers.deserialize(value,
|
|
specifiedType: const FullType(UserCompanyEntity))
|
|
as UserCompanyEntity);
|
|
break;
|
|
case 'isChanged':
|
|
result.isChanged = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'created_at':
|
|
result.createdAt = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
case 'updated_at':
|
|
result.updatedAt = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
case 'deleted_at':
|
|
result.archivedAt = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
case 'is_deleted':
|
|
result.isDeleted = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'user_id':
|
|
result.createdUserId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'assigned_user_id':
|
|
result.assignedUserId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'id':
|
|
result.id = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
}
|
|
}
|
|
|
|
return result.build();
|
|
}
|
|
}
|
|
|
|
class _$UserListResponse extends UserListResponse {
|
|
@override
|
|
final BuiltList<UserEntity> data;
|
|
|
|
factory _$UserListResponse(
|
|
[void Function(UserListResponseBuilder) updates]) =>
|
|
(new UserListResponseBuilder()..update(updates)).build();
|
|
|
|
_$UserListResponse._({this.data}) : super._() {
|
|
if (data == null) {
|
|
throw new BuiltValueNullFieldError('UserListResponse', 'data');
|
|
}
|
|
}
|
|
|
|
@override
|
|
UserListResponse rebuild(void Function(UserListResponseBuilder) updates) =>
|
|
(toBuilder()..update(updates)).build();
|
|
|
|
@override
|
|
UserListResponseBuilder toBuilder() =>
|
|
new UserListResponseBuilder()..replace(this);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
if (identical(other, this)) return true;
|
|
return other is UserListResponse && data == other.data;
|
|
}
|
|
|
|
@override
|
|
int get hashCode {
|
|
return $jf($jc(0, data.hashCode));
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (newBuiltValueToStringHelper('UserListResponse')..add('data', data))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class UserListResponseBuilder
|
|
implements Builder<UserListResponse, UserListResponseBuilder> {
|
|
_$UserListResponse _$v;
|
|
|
|
ListBuilder<UserEntity> _data;
|
|
ListBuilder<UserEntity> get data =>
|
|
_$this._data ??= new ListBuilder<UserEntity>();
|
|
set data(ListBuilder<UserEntity> data) => _$this._data = data;
|
|
|
|
UserListResponseBuilder();
|
|
|
|
UserListResponseBuilder get _$this {
|
|
if (_$v != null) {
|
|
_data = _$v.data?.toBuilder();
|
|
_$v = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@override
|
|
void replace(UserListResponse other) {
|
|
if (other == null) {
|
|
throw new ArgumentError.notNull('other');
|
|
}
|
|
_$v = other as _$UserListResponse;
|
|
}
|
|
|
|
@override
|
|
void update(void Function(UserListResponseBuilder) updates) {
|
|
if (updates != null) updates(this);
|
|
}
|
|
|
|
@override
|
|
_$UserListResponse build() {
|
|
_$UserListResponse _$result;
|
|
try {
|
|
_$result = _$v ?? new _$UserListResponse._(data: data.build());
|
|
} catch (_) {
|
|
String _$failedField;
|
|
try {
|
|
_$failedField = 'data';
|
|
data.build();
|
|
} catch (e) {
|
|
throw new BuiltValueNestedFieldError(
|
|
'UserListResponse', _$failedField, e.toString());
|
|
}
|
|
rethrow;
|
|
}
|
|
replace(_$result);
|
|
return _$result;
|
|
}
|
|
}
|
|
|
|
class _$UserItemResponse extends UserItemResponse {
|
|
@override
|
|
final UserEntity data;
|
|
|
|
factory _$UserItemResponse(
|
|
[void Function(UserItemResponseBuilder) updates]) =>
|
|
(new UserItemResponseBuilder()..update(updates)).build();
|
|
|
|
_$UserItemResponse._({this.data}) : super._() {
|
|
if (data == null) {
|
|
throw new BuiltValueNullFieldError('UserItemResponse', 'data');
|
|
}
|
|
}
|
|
|
|
@override
|
|
UserItemResponse rebuild(void Function(UserItemResponseBuilder) updates) =>
|
|
(toBuilder()..update(updates)).build();
|
|
|
|
@override
|
|
UserItemResponseBuilder toBuilder() =>
|
|
new UserItemResponseBuilder()..replace(this);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
if (identical(other, this)) return true;
|
|
return other is UserItemResponse && data == other.data;
|
|
}
|
|
|
|
@override
|
|
int get hashCode {
|
|
return $jf($jc(0, data.hashCode));
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (newBuiltValueToStringHelper('UserItemResponse')..add('data', data))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class UserItemResponseBuilder
|
|
implements Builder<UserItemResponse, UserItemResponseBuilder> {
|
|
_$UserItemResponse _$v;
|
|
|
|
UserEntityBuilder _data;
|
|
UserEntityBuilder get data => _$this._data ??= new UserEntityBuilder();
|
|
set data(UserEntityBuilder data) => _$this._data = data;
|
|
|
|
UserItemResponseBuilder();
|
|
|
|
UserItemResponseBuilder get _$this {
|
|
if (_$v != null) {
|
|
_data = _$v.data?.toBuilder();
|
|
_$v = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@override
|
|
void replace(UserItemResponse other) {
|
|
if (other == null) {
|
|
throw new ArgumentError.notNull('other');
|
|
}
|
|
_$v = other as _$UserItemResponse;
|
|
}
|
|
|
|
@override
|
|
void update(void Function(UserItemResponseBuilder) updates) {
|
|
if (updates != null) updates(this);
|
|
}
|
|
|
|
@override
|
|
_$UserItemResponse build() {
|
|
_$UserItemResponse _$result;
|
|
try {
|
|
_$result = _$v ?? new _$UserItemResponse._(data: data.build());
|
|
} catch (_) {
|
|
String _$failedField;
|
|
try {
|
|
_$failedField = 'data';
|
|
data.build();
|
|
} catch (e) {
|
|
throw new BuiltValueNestedFieldError(
|
|
'UserItemResponse', _$failedField, e.toString());
|
|
}
|
|
rethrow;
|
|
}
|
|
replace(_$result);
|
|
return _$result;
|
|
}
|
|
}
|
|
|
|
class _$UserEntity extends UserEntity {
|
|
@override
|
|
final String firstName;
|
|
@override
|
|
final String lastName;
|
|
@override
|
|
final String email;
|
|
@override
|
|
final String phone;
|
|
@override
|
|
final String customValue1;
|
|
@override
|
|
final String customValue2;
|
|
@override
|
|
final String customValue3;
|
|
@override
|
|
final String customValue4;
|
|
@override
|
|
final UserCompanyEntity userCompany;
|
|
@override
|
|
final bool isChanged;
|
|
@override
|
|
final int createdAt;
|
|
@override
|
|
final int updatedAt;
|
|
@override
|
|
final int archivedAt;
|
|
@override
|
|
final bool isDeleted;
|
|
@override
|
|
final String createdUserId;
|
|
@override
|
|
final String assignedUserId;
|
|
@override
|
|
final String id;
|
|
|
|
factory _$UserEntity([void Function(UserEntityBuilder) updates]) =>
|
|
(new UserEntityBuilder()..update(updates)).build();
|
|
|
|
_$UserEntity._(
|
|
{this.firstName,
|
|
this.lastName,
|
|
this.email,
|
|
this.phone,
|
|
this.customValue1,
|
|
this.customValue2,
|
|
this.customValue3,
|
|
this.customValue4,
|
|
this.userCompany,
|
|
this.isChanged,
|
|
this.createdAt,
|
|
this.updatedAt,
|
|
this.archivedAt,
|
|
this.isDeleted,
|
|
this.createdUserId,
|
|
this.assignedUserId,
|
|
this.id})
|
|
: super._() {
|
|
if (firstName == null) {
|
|
throw new BuiltValueNullFieldError('UserEntity', 'firstName');
|
|
}
|
|
if (lastName == null) {
|
|
throw new BuiltValueNullFieldError('UserEntity', 'lastName');
|
|
}
|
|
if (email == null) {
|
|
throw new BuiltValueNullFieldError('UserEntity', 'email');
|
|
}
|
|
if (phone == null) {
|
|
throw new BuiltValueNullFieldError('UserEntity', 'phone');
|
|
}
|
|
}
|
|
|
|
@override
|
|
UserEntity rebuild(void Function(UserEntityBuilder) updates) =>
|
|
(toBuilder()..update(updates)).build();
|
|
|
|
@override
|
|
UserEntityBuilder toBuilder() => new UserEntityBuilder()..replace(this);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
if (identical(other, this)) return true;
|
|
return other is UserEntity &&
|
|
firstName == other.firstName &&
|
|
lastName == other.lastName &&
|
|
email == other.email &&
|
|
phone == other.phone &&
|
|
customValue1 == other.customValue1 &&
|
|
customValue2 == other.customValue2 &&
|
|
customValue3 == other.customValue3 &&
|
|
customValue4 == other.customValue4 &&
|
|
userCompany == other.userCompany &&
|
|
isChanged == other.isChanged &&
|
|
createdAt == other.createdAt &&
|
|
updatedAt == other.updatedAt &&
|
|
archivedAt == other.archivedAt &&
|
|
isDeleted == other.isDeleted &&
|
|
createdUserId == other.createdUserId &&
|
|
assignedUserId == other.assignedUserId &&
|
|
id == other.id;
|
|
}
|
|
|
|
@override
|
|
int get hashCode {
|
|
return $jf($jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
0,
|
|
firstName
|
|
.hashCode),
|
|
lastName
|
|
.hashCode),
|
|
email.hashCode),
|
|
phone.hashCode),
|
|
customValue1.hashCode),
|
|
customValue2.hashCode),
|
|
customValue3.hashCode),
|
|
customValue4.hashCode),
|
|
userCompany.hashCode),
|
|
isChanged.hashCode),
|
|
createdAt.hashCode),
|
|
updatedAt.hashCode),
|
|
archivedAt.hashCode),
|
|
isDeleted.hashCode),
|
|
createdUserId.hashCode),
|
|
assignedUserId.hashCode),
|
|
id.hashCode));
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (newBuiltValueToStringHelper('UserEntity')
|
|
..add('firstName', firstName)
|
|
..add('lastName', lastName)
|
|
..add('email', email)
|
|
..add('phone', phone)
|
|
..add('customValue1', customValue1)
|
|
..add('customValue2', customValue2)
|
|
..add('customValue3', customValue3)
|
|
..add('customValue4', customValue4)
|
|
..add('userCompany', userCompany)
|
|
..add('isChanged', isChanged)
|
|
..add('createdAt', createdAt)
|
|
..add('updatedAt', updatedAt)
|
|
..add('archivedAt', archivedAt)
|
|
..add('isDeleted', isDeleted)
|
|
..add('createdUserId', createdUserId)
|
|
..add('assignedUserId', assignedUserId)
|
|
..add('id', id))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
|
|
_$UserEntity _$v;
|
|
|
|
String _firstName;
|
|
String get firstName => _$this._firstName;
|
|
set firstName(String firstName) => _$this._firstName = firstName;
|
|
|
|
String _lastName;
|
|
String get lastName => _$this._lastName;
|
|
set lastName(String lastName) => _$this._lastName = lastName;
|
|
|
|
String _email;
|
|
String get email => _$this._email;
|
|
set email(String email) => _$this._email = email;
|
|
|
|
String _phone;
|
|
String get phone => _$this._phone;
|
|
set phone(String phone) => _$this._phone = phone;
|
|
|
|
String _customValue1;
|
|
String get customValue1 => _$this._customValue1;
|
|
set customValue1(String customValue1) => _$this._customValue1 = customValue1;
|
|
|
|
String _customValue2;
|
|
String get customValue2 => _$this._customValue2;
|
|
set customValue2(String customValue2) => _$this._customValue2 = customValue2;
|
|
|
|
String _customValue3;
|
|
String get customValue3 => _$this._customValue3;
|
|
set customValue3(String customValue3) => _$this._customValue3 = customValue3;
|
|
|
|
String _customValue4;
|
|
String get customValue4 => _$this._customValue4;
|
|
set customValue4(String customValue4) => _$this._customValue4 = customValue4;
|
|
|
|
UserCompanyEntityBuilder _userCompany;
|
|
UserCompanyEntityBuilder get userCompany =>
|
|
_$this._userCompany ??= new UserCompanyEntityBuilder();
|
|
set userCompany(UserCompanyEntityBuilder userCompany) =>
|
|
_$this._userCompany = userCompany;
|
|
|
|
bool _isChanged;
|
|
bool get isChanged => _$this._isChanged;
|
|
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
|
|
|
int _createdAt;
|
|
int get createdAt => _$this._createdAt;
|
|
set createdAt(int createdAt) => _$this._createdAt = createdAt;
|
|
|
|
int _updatedAt;
|
|
int get updatedAt => _$this._updatedAt;
|
|
set updatedAt(int updatedAt) => _$this._updatedAt = updatedAt;
|
|
|
|
int _archivedAt;
|
|
int get archivedAt => _$this._archivedAt;
|
|
set archivedAt(int archivedAt) => _$this._archivedAt = archivedAt;
|
|
|
|
bool _isDeleted;
|
|
bool get isDeleted => _$this._isDeleted;
|
|
set isDeleted(bool isDeleted) => _$this._isDeleted = isDeleted;
|
|
|
|
String _createdUserId;
|
|
String get createdUserId => _$this._createdUserId;
|
|
set createdUserId(String createdUserId) =>
|
|
_$this._createdUserId = createdUserId;
|
|
|
|
String _assignedUserId;
|
|
String get assignedUserId => _$this._assignedUserId;
|
|
set assignedUserId(String assignedUserId) =>
|
|
_$this._assignedUserId = assignedUserId;
|
|
|
|
String _id;
|
|
String get id => _$this._id;
|
|
set id(String id) => _$this._id = id;
|
|
|
|
UserEntityBuilder();
|
|
|
|
UserEntityBuilder get _$this {
|
|
if (_$v != null) {
|
|
_firstName = _$v.firstName;
|
|
_lastName = _$v.lastName;
|
|
_email = _$v.email;
|
|
_phone = _$v.phone;
|
|
_customValue1 = _$v.customValue1;
|
|
_customValue2 = _$v.customValue2;
|
|
_customValue3 = _$v.customValue3;
|
|
_customValue4 = _$v.customValue4;
|
|
_userCompany = _$v.userCompany?.toBuilder();
|
|
_isChanged = _$v.isChanged;
|
|
_createdAt = _$v.createdAt;
|
|
_updatedAt = _$v.updatedAt;
|
|
_archivedAt = _$v.archivedAt;
|
|
_isDeleted = _$v.isDeleted;
|
|
_createdUserId = _$v.createdUserId;
|
|
_assignedUserId = _$v.assignedUserId;
|
|
_id = _$v.id;
|
|
_$v = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@override
|
|
void replace(UserEntity other) {
|
|
if (other == null) {
|
|
throw new ArgumentError.notNull('other');
|
|
}
|
|
_$v = other as _$UserEntity;
|
|
}
|
|
|
|
@override
|
|
void update(void Function(UserEntityBuilder) updates) {
|
|
if (updates != null) updates(this);
|
|
}
|
|
|
|
@override
|
|
_$UserEntity build() {
|
|
_$UserEntity _$result;
|
|
try {
|
|
_$result = _$v ??
|
|
new _$UserEntity._(
|
|
firstName: firstName,
|
|
lastName: lastName,
|
|
email: email,
|
|
phone: phone,
|
|
customValue1: customValue1,
|
|
customValue2: customValue2,
|
|
customValue3: customValue3,
|
|
customValue4: customValue4,
|
|
userCompany: _userCompany?.build(),
|
|
isChanged: isChanged,
|
|
createdAt: createdAt,
|
|
updatedAt: updatedAt,
|
|
archivedAt: archivedAt,
|
|
isDeleted: isDeleted,
|
|
createdUserId: createdUserId,
|
|
assignedUserId: assignedUserId,
|
|
id: id);
|
|
} catch (_) {
|
|
String _$failedField;
|
|
try {
|
|
_$failedField = 'userCompany';
|
|
_userCompany?.build();
|
|
} catch (e) {
|
|
throw new BuiltValueNestedFieldError(
|
|
'UserEntity', _$failedField, e.toString());
|
|
}
|
|
rethrow;
|
|
}
|
|
replace(_$result);
|
|
return _$result;
|
|
}
|
|
}
|
|
|
|
// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new
|