// GENERATED CODE - DO NOT MODIFY BY HAND part of 'vendor_model.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** Serializer _$vendorListResponseSerializer = new _$VendorListResponseSerializer(); Serializer _$vendorItemResponseSerializer = new _$VendorItemResponseSerializer(); Serializer _$vendorEntitySerializer = new _$VendorEntitySerializer(); Serializer _$vendorContactEntitySerializer = new _$VendorContactEntitySerializer(); class _$VendorListResponseSerializer implements StructuredSerializer { @override final Iterable types = const [VendorListResponse, _$VendorListResponse]; @override final String wireName = 'VendorListResponse'; @override Iterable serialize(Serializers serializers, VendorListResponse object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'data', serializers.serialize(object.data, specifiedType: const FullType(BuiltList, const [const FullType(VendorEntity)])), ]; return result; } @override VendorListResponse deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new VendorListResponseBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final Object value = iterator.current; switch (key) { case 'data': result.data.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(VendorEntity)])) as BuiltList); break; } } return result.build(); } } class _$VendorItemResponseSerializer implements StructuredSerializer { @override final Iterable types = const [VendorItemResponse, _$VendorItemResponse]; @override final String wireName = 'VendorItemResponse'; @override Iterable serialize(Serializers serializers, VendorItemResponse object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'data', serializers.serialize(object.data, specifiedType: const FullType(VendorEntity)), ]; return result; } @override VendorItemResponse deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new VendorItemResponseBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final Object value = iterator.current; switch (key) { case 'data': result.data.replace(serializers.deserialize(value, specifiedType: const FullType(VendorEntity)) as VendorEntity); break; } } return result.build(); } } class _$VendorEntitySerializer implements StructuredSerializer { @override final Iterable types = const [VendorEntity, _$VendorEntity]; @override final String wireName = 'VendorEntity'; @override Iterable serialize(Serializers serializers, VendorEntity object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'name', serializers.serialize(object.name, specifiedType: const FullType(String)), 'address1', serializers.serialize(object.address1, specifiedType: const FullType(String)), 'address2', serializers.serialize(object.address2, specifiedType: const FullType(String)), 'city', serializers.serialize(object.city, specifiedType: const FullType(String)), 'state', serializers.serialize(object.state, specifiedType: const FullType(String)), 'postal_code', serializers.serialize(object.postalCode, specifiedType: const FullType(String)), 'country_id', serializers.serialize(object.countryId, specifiedType: const FullType(String)), 'phone', serializers.serialize(object.phone, specifiedType: const FullType(String)), 'private_notes', serializers.serialize(object.privateNotes, specifiedType: const FullType(String)), 'public_notes', serializers.serialize(object.publicNotes, specifiedType: const FullType(String)), 'website', serializers.serialize(object.website, specifiedType: const FullType(String)), 'number', serializers.serialize(object.number, specifiedType: const FullType(String)), 'vat_number', serializers.serialize(object.vatNumber, specifiedType: const FullType(String)), 'id_number', serializers.serialize(object.idNumber, specifiedType: const FullType(String)), 'currency_id', serializers.serialize(object.currencyId, specifiedType: const FullType(String)), 'custom_value1', serializers.serialize(object.customValue1, specifiedType: const FullType(String)), 'custom_value2', serializers.serialize(object.customValue2, specifiedType: const FullType(String)), 'custom_value3', serializers.serialize(object.customValue3, specifiedType: const FullType(String)), 'custom_value4', serializers.serialize(object.customValue4, specifiedType: const FullType(String)), 'contacts', serializers.serialize(object.contacts, specifiedType: const FullType( BuiltList, const [const FullType(VendorContactEntity)])), 'activities', serializers.serialize(object.activities, specifiedType: const FullType( BuiltList, const [const FullType(ActivityEntity)])), 'documents', serializers.serialize(object.documents, specifiedType: const FullType( BuiltList, const [const FullType(DocumentEntity)])), 'created_at', serializers.serialize(object.createdAt, specifiedType: const FullType(int)), 'updated_at', serializers.serialize(object.updatedAt, specifiedType: const FullType(int)), 'archived_at', serializers.serialize(object.archivedAt, specifiedType: const FullType(int)), 'id', serializers.serialize(object.id, specifiedType: const FullType(String)), ]; Object value; value = object.loadedAt; if (value != null) { result ..add('loadedAt') ..add(serializers.serialize(value, specifiedType: const FullType(int))); } value = object.isChanged; if (value != null) { result ..add('isChanged') ..add( serializers.serialize(value, specifiedType: const FullType(bool))); } value = object.isDeleted; if (value != null) { result ..add('is_deleted') ..add( serializers.serialize(value, specifiedType: const FullType(bool))); } value = object.createdUserId; if (value != null) { result ..add('user_id') ..add(serializers.serialize(value, specifiedType: const FullType(String))); } value = object.assignedUserId; if (value != null) { result ..add('assigned_user_id') ..add(serializers.serialize(value, specifiedType: const FullType(String))); } return result; } @override VendorEntity deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new VendorEntityBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final Object value = iterator.current; switch (key) { case 'loadedAt': result.loadedAt = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'name': result.name = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'address1': result.address1 = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'address2': result.address2 = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'city': result.city = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'state': result.state = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'postal_code': result.postalCode = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'country_id': result.countryId = 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 'private_notes': result.privateNotes = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'public_notes': result.publicNotes = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'website': result.website = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'number': result.number = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'vat_number': result.vatNumber = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'id_number': result.idNumber = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'currency_id': result.currencyId = 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 'contacts': result.contacts.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(VendorContactEntity)])) as BuiltList); break; case 'activities': result.activities.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(ActivityEntity)])) as BuiltList); break; case 'documents': result.documents.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(DocumentEntity)])) as BuiltList); 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 'archived_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 _$VendorContactEntitySerializer implements StructuredSerializer { @override final Iterable types = const [ VendorContactEntity, _$VendorContactEntity ]; @override final String wireName = 'VendorContactEntity'; @override Iterable serialize( Serializers serializers, VendorContactEntity object, {FullType specifiedType = FullType.unspecified}) { final result = [ '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)), 'is_primary', serializers.serialize(object.isPrimary, specifiedType: const FullType(bool)), 'phone', serializers.serialize(object.phone, specifiedType: const FullType(String)), 'custom_value1', serializers.serialize(object.customValue1, specifiedType: const FullType(String)), 'custom_value2', serializers.serialize(object.customValue2, specifiedType: const FullType(String)), 'custom_value3', serializers.serialize(object.customValue3, specifiedType: const FullType(String)), 'custom_value4', serializers.serialize(object.customValue4, specifiedType: const FullType(String)), 'link', serializers.serialize(object.link, specifiedType: const FullType(String)), 'created_at', serializers.serialize(object.createdAt, specifiedType: const FullType(int)), 'updated_at', serializers.serialize(object.updatedAt, specifiedType: const FullType(int)), 'archived_at', serializers.serialize(object.archivedAt, specifiedType: const FullType(int)), 'id', serializers.serialize(object.id, specifiedType: const FullType(String)), ]; Object value; value = object.isChanged; if (value != null) { result ..add('isChanged') ..add( serializers.serialize(value, specifiedType: const FullType(bool))); } value = object.isDeleted; if (value != null) { result ..add('is_deleted') ..add( serializers.serialize(value, specifiedType: const FullType(bool))); } value = object.createdUserId; if (value != null) { result ..add('user_id') ..add(serializers.serialize(value, specifiedType: const FullType(String))); } value = object.assignedUserId; if (value != null) { result ..add('assigned_user_id') ..add(serializers.serialize(value, specifiedType: const FullType(String))); } return result; } @override VendorContactEntity deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new VendorContactEntityBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final Object 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 'is_primary': result.isPrimary = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; 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 'link': result.link = serializers.deserialize(value, specifiedType: const FullType(String)) as String; 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 'archived_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 _$VendorListResponse extends VendorListResponse { @override final BuiltList data; factory _$VendorListResponse( [void Function(VendorListResponseBuilder) updates]) => (new VendorListResponseBuilder()..update(updates)).build(); _$VendorListResponse._({this.data}) : super._() { BuiltValueNullFieldError.checkNotNull(data, 'VendorListResponse', 'data'); } @override VendorListResponse rebuild( void Function(VendorListResponseBuilder) updates) => (toBuilder()..update(updates)).build(); @override VendorListResponseBuilder toBuilder() => new VendorListResponseBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is VendorListResponse && data == other.data; } int __hashCode; @override int get hashCode { return __hashCode ??= $jf($jc(0, data.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('VendorListResponse') ..add('data', data)) .toString(); } } class VendorListResponseBuilder implements Builder { _$VendorListResponse _$v; ListBuilder _data; ListBuilder get data => _$this._data ??= new ListBuilder(); set data(ListBuilder data) => _$this._data = data; VendorListResponseBuilder(); VendorListResponseBuilder get _$this { final $v = _$v; if ($v != null) { _data = $v.data.toBuilder(); _$v = null; } return this; } @override void replace(VendorListResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$VendorListResponse; } @override void update(void Function(VendorListResponseBuilder) updates) { if (updates != null) updates(this); } @override _$VendorListResponse build() { _$VendorListResponse _$result; try { _$result = _$v ?? new _$VendorListResponse._(data: data.build()); } catch (_) { String _$failedField; try { _$failedField = 'data'; data.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'VendorListResponse', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$VendorItemResponse extends VendorItemResponse { @override final VendorEntity data; factory _$VendorItemResponse( [void Function(VendorItemResponseBuilder) updates]) => (new VendorItemResponseBuilder()..update(updates)).build(); _$VendorItemResponse._({this.data}) : super._() { BuiltValueNullFieldError.checkNotNull(data, 'VendorItemResponse', 'data'); } @override VendorItemResponse rebuild( void Function(VendorItemResponseBuilder) updates) => (toBuilder()..update(updates)).build(); @override VendorItemResponseBuilder toBuilder() => new VendorItemResponseBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is VendorItemResponse && data == other.data; } int __hashCode; @override int get hashCode { return __hashCode ??= $jf($jc(0, data.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('VendorItemResponse') ..add('data', data)) .toString(); } } class VendorItemResponseBuilder implements Builder { _$VendorItemResponse _$v; VendorEntityBuilder _data; VendorEntityBuilder get data => _$this._data ??= new VendorEntityBuilder(); set data(VendorEntityBuilder data) => _$this._data = data; VendorItemResponseBuilder(); VendorItemResponseBuilder get _$this { final $v = _$v; if ($v != null) { _data = $v.data.toBuilder(); _$v = null; } return this; } @override void replace(VendorItemResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$VendorItemResponse; } @override void update(void Function(VendorItemResponseBuilder) updates) { if (updates != null) updates(this); } @override _$VendorItemResponse build() { _$VendorItemResponse _$result; try { _$result = _$v ?? new _$VendorItemResponse._(data: data.build()); } catch (_) { String _$failedField; try { _$failedField = 'data'; data.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'VendorItemResponse', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$VendorEntity extends VendorEntity { @override final int loadedAt; @override final String name; @override final String address1; @override final String address2; @override final String city; @override final String state; @override final String postalCode; @override final String countryId; @override final String phone; @override final String privateNotes; @override final String publicNotes; @override final String website; @override final String number; @override final String vatNumber; @override final String idNumber; @override final String currencyId; @override final String customValue1; @override final String customValue2; @override final String customValue3; @override final String customValue4; @override final BuiltList contacts; @override final BuiltList activities; @override final BuiltList documents; @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 _$VendorEntity([void Function(VendorEntityBuilder) updates]) => (new VendorEntityBuilder()..update(updates)).build(); _$VendorEntity._( {this.loadedAt, this.name, this.address1, this.address2, this.city, this.state, this.postalCode, this.countryId, this.phone, this.privateNotes, this.publicNotes, this.website, this.number, this.vatNumber, this.idNumber, this.currencyId, this.customValue1, this.customValue2, this.customValue3, this.customValue4, this.contacts, this.activities, this.documents, this.isChanged, this.createdAt, this.updatedAt, this.archivedAt, this.isDeleted, this.createdUserId, this.assignedUserId, this.id}) : super._() { BuiltValueNullFieldError.checkNotNull(name, 'VendorEntity', 'name'); BuiltValueNullFieldError.checkNotNull(address1, 'VendorEntity', 'address1'); BuiltValueNullFieldError.checkNotNull(address2, 'VendorEntity', 'address2'); BuiltValueNullFieldError.checkNotNull(city, 'VendorEntity', 'city'); BuiltValueNullFieldError.checkNotNull(state, 'VendorEntity', 'state'); BuiltValueNullFieldError.checkNotNull( postalCode, 'VendorEntity', 'postalCode'); BuiltValueNullFieldError.checkNotNull( countryId, 'VendorEntity', 'countryId'); BuiltValueNullFieldError.checkNotNull(phone, 'VendorEntity', 'phone'); BuiltValueNullFieldError.checkNotNull( privateNotes, 'VendorEntity', 'privateNotes'); BuiltValueNullFieldError.checkNotNull( publicNotes, 'VendorEntity', 'publicNotes'); BuiltValueNullFieldError.checkNotNull(website, 'VendorEntity', 'website'); BuiltValueNullFieldError.checkNotNull(number, 'VendorEntity', 'number'); BuiltValueNullFieldError.checkNotNull( vatNumber, 'VendorEntity', 'vatNumber'); BuiltValueNullFieldError.checkNotNull(idNumber, 'VendorEntity', 'idNumber'); BuiltValueNullFieldError.checkNotNull( currencyId, 'VendorEntity', 'currencyId'); BuiltValueNullFieldError.checkNotNull( customValue1, 'VendorEntity', 'customValue1'); BuiltValueNullFieldError.checkNotNull( customValue2, 'VendorEntity', 'customValue2'); BuiltValueNullFieldError.checkNotNull( customValue3, 'VendorEntity', 'customValue3'); BuiltValueNullFieldError.checkNotNull( customValue4, 'VendorEntity', 'customValue4'); BuiltValueNullFieldError.checkNotNull(contacts, 'VendorEntity', 'contacts'); BuiltValueNullFieldError.checkNotNull( activities, 'VendorEntity', 'activities'); BuiltValueNullFieldError.checkNotNull( documents, 'VendorEntity', 'documents'); BuiltValueNullFieldError.checkNotNull( createdAt, 'VendorEntity', 'createdAt'); BuiltValueNullFieldError.checkNotNull( updatedAt, 'VendorEntity', 'updatedAt'); BuiltValueNullFieldError.checkNotNull( archivedAt, 'VendorEntity', 'archivedAt'); BuiltValueNullFieldError.checkNotNull(id, 'VendorEntity', 'id'); } @override VendorEntity rebuild(void Function(VendorEntityBuilder) updates) => (toBuilder()..update(updates)).build(); @override VendorEntityBuilder toBuilder() => new VendorEntityBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is VendorEntity && name == other.name && address1 == other.address1 && address2 == other.address2 && city == other.city && state == other.state && postalCode == other.postalCode && countryId == other.countryId && phone == other.phone && privateNotes == other.privateNotes && publicNotes == other.publicNotes && website == other.website && number == other.number && vatNumber == other.vatNumber && idNumber == other.idNumber && currencyId == other.currencyId && customValue1 == other.customValue1 && customValue2 == other.customValue2 && customValue3 == other.customValue3 && customValue4 == other.customValue4 && contacts == other.contacts && activities == other.activities && documents == other.documents && isChanged == other.isChanged && createdAt == other.createdAt && updatedAt == other.updatedAt && archivedAt == other.archivedAt && isDeleted == other.isDeleted && createdUserId == other.createdUserId && assignedUserId == other.assignedUserId && id == other.id; } int __hashCode; @override int get hashCode { return __hashCode ??= $jf($jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, name.hashCode), address1.hashCode), address2.hashCode), city.hashCode), state.hashCode), postalCode.hashCode), countryId.hashCode), phone.hashCode), privateNotes.hashCode), publicNotes.hashCode), website.hashCode), number.hashCode), vatNumber.hashCode), idNumber.hashCode), currencyId.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), contacts.hashCode), activities.hashCode), documents.hashCode), isChanged.hashCode), createdAt.hashCode), updatedAt.hashCode), archivedAt.hashCode), isDeleted.hashCode), createdUserId.hashCode), assignedUserId.hashCode), id.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('VendorEntity') ..add('loadedAt', loadedAt) ..add('name', name) ..add('address1', address1) ..add('address2', address2) ..add('city', city) ..add('state', state) ..add('postalCode', postalCode) ..add('countryId', countryId) ..add('phone', phone) ..add('privateNotes', privateNotes) ..add('publicNotes', publicNotes) ..add('website', website) ..add('number', number) ..add('vatNumber', vatNumber) ..add('idNumber', idNumber) ..add('currencyId', currencyId) ..add('customValue1', customValue1) ..add('customValue2', customValue2) ..add('customValue3', customValue3) ..add('customValue4', customValue4) ..add('contacts', contacts) ..add('activities', activities) ..add('documents', documents) ..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 VendorEntityBuilder implements Builder { _$VendorEntity _$v; int _loadedAt; int get loadedAt => _$this._loadedAt; set loadedAt(int loadedAt) => _$this._loadedAt = loadedAt; String _name; String get name => _$this._name; set name(String name) => _$this._name = name; String _address1; String get address1 => _$this._address1; set address1(String address1) => _$this._address1 = address1; String _address2; String get address2 => _$this._address2; set address2(String address2) => _$this._address2 = address2; String _city; String get city => _$this._city; set city(String city) => _$this._city = city; String _state; String get state => _$this._state; set state(String state) => _$this._state = state; String _postalCode; String get postalCode => _$this._postalCode; set postalCode(String postalCode) => _$this._postalCode = postalCode; String _countryId; String get countryId => _$this._countryId; set countryId(String countryId) => _$this._countryId = countryId; String _phone; String get phone => _$this._phone; set phone(String phone) => _$this._phone = phone; String _privateNotes; String get privateNotes => _$this._privateNotes; set privateNotes(String privateNotes) => _$this._privateNotes = privateNotes; String _publicNotes; String get publicNotes => _$this._publicNotes; set publicNotes(String publicNotes) => _$this._publicNotes = publicNotes; String _website; String get website => _$this._website; set website(String website) => _$this._website = website; String _number; String get number => _$this._number; set number(String number) => _$this._number = number; String _vatNumber; String get vatNumber => _$this._vatNumber; set vatNumber(String vatNumber) => _$this._vatNumber = vatNumber; String _idNumber; String get idNumber => _$this._idNumber; set idNumber(String idNumber) => _$this._idNumber = idNumber; String _currencyId; String get currencyId => _$this._currencyId; set currencyId(String currencyId) => _$this._currencyId = currencyId; 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; ListBuilder _contacts; ListBuilder get contacts => _$this._contacts ??= new ListBuilder(); set contacts(ListBuilder contacts) => _$this._contacts = contacts; ListBuilder _activities; ListBuilder get activities => _$this._activities ??= new ListBuilder(); set activities(ListBuilder activities) => _$this._activities = activities; ListBuilder _documents; ListBuilder get documents => _$this._documents ??= new ListBuilder(); set documents(ListBuilder documents) => _$this._documents = documents; 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; VendorEntityBuilder() { VendorEntity._initializeBuilder(this); } VendorEntityBuilder get _$this { final $v = _$v; if ($v != null) { _loadedAt = $v.loadedAt; _name = $v.name; _address1 = $v.address1; _address2 = $v.address2; _city = $v.city; _state = $v.state; _postalCode = $v.postalCode; _countryId = $v.countryId; _phone = $v.phone; _privateNotes = $v.privateNotes; _publicNotes = $v.publicNotes; _website = $v.website; _number = $v.number; _vatNumber = $v.vatNumber; _idNumber = $v.idNumber; _currencyId = $v.currencyId; _customValue1 = $v.customValue1; _customValue2 = $v.customValue2; _customValue3 = $v.customValue3; _customValue4 = $v.customValue4; _contacts = $v.contacts.toBuilder(); _activities = $v.activities.toBuilder(); _documents = $v.documents.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(VendorEntity other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$VendorEntity; } @override void update(void Function(VendorEntityBuilder) updates) { if (updates != null) updates(this); } @override _$VendorEntity build() { _$VendorEntity _$result; try { _$result = _$v ?? new _$VendorEntity._( loadedAt: loadedAt, name: BuiltValueNullFieldError.checkNotNull( name, 'VendorEntity', 'name'), address1: BuiltValueNullFieldError.checkNotNull( address1, 'VendorEntity', 'address1'), address2: BuiltValueNullFieldError.checkNotNull( address2, 'VendorEntity', 'address2'), city: BuiltValueNullFieldError.checkNotNull( city, 'VendorEntity', 'city'), state: BuiltValueNullFieldError.checkNotNull( state, 'VendorEntity', 'state'), postalCode: BuiltValueNullFieldError.checkNotNull( postalCode, 'VendorEntity', 'postalCode'), countryId: BuiltValueNullFieldError.checkNotNull( countryId, 'VendorEntity', 'countryId'), phone: BuiltValueNullFieldError.checkNotNull( phone, 'VendorEntity', 'phone'), privateNotes: BuiltValueNullFieldError.checkNotNull( privateNotes, 'VendorEntity', 'privateNotes'), publicNotes: BuiltValueNullFieldError.checkNotNull(publicNotes, 'VendorEntity', 'publicNotes'), website: BuiltValueNullFieldError.checkNotNull(website, 'VendorEntity', 'website'), number: BuiltValueNullFieldError.checkNotNull(number, 'VendorEntity', 'number'), vatNumber: BuiltValueNullFieldError.checkNotNull(vatNumber, 'VendorEntity', 'vatNumber'), idNumber: BuiltValueNullFieldError.checkNotNull(idNumber, 'VendorEntity', 'idNumber'), currencyId: BuiltValueNullFieldError.checkNotNull(currencyId, 'VendorEntity', 'currencyId'), customValue1: BuiltValueNullFieldError.checkNotNull(customValue1, 'VendorEntity', 'customValue1'), customValue2: BuiltValueNullFieldError.checkNotNull(customValue2, 'VendorEntity', 'customValue2'), customValue3: BuiltValueNullFieldError.checkNotNull(customValue3, 'VendorEntity', 'customValue3'), customValue4: BuiltValueNullFieldError.checkNotNull(customValue4, 'VendorEntity', 'customValue4'), contacts: contacts.build(), activities: activities.build(), documents: documents.build(), isChanged: isChanged, createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, 'VendorEntity', 'createdAt'), updatedAt: BuiltValueNullFieldError.checkNotNull(updatedAt, 'VendorEntity', 'updatedAt'), archivedAt: BuiltValueNullFieldError.checkNotNull(archivedAt, 'VendorEntity', 'archivedAt'), isDeleted: isDeleted, createdUserId: createdUserId, assignedUserId: assignedUserId, id: BuiltValueNullFieldError.checkNotNull(id, 'VendorEntity', 'id')); } catch (_) { String _$failedField; try { _$failedField = 'contacts'; contacts.build(); _$failedField = 'activities'; activities.build(); _$failedField = 'documents'; documents.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'VendorEntity', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$VendorContactEntity extends VendorContactEntity { @override final String firstName; @override final String lastName; @override final String email; @override final bool isPrimary; @override final String phone; @override final String customValue1; @override final String customValue2; @override final String customValue3; @override final String customValue4; @override final String link; @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 _$VendorContactEntity( [void Function(VendorContactEntityBuilder) updates]) => (new VendorContactEntityBuilder()..update(updates)).build(); _$VendorContactEntity._( {this.firstName, this.lastName, this.email, this.isPrimary, this.phone, this.customValue1, this.customValue2, this.customValue3, this.customValue4, this.link, this.isChanged, this.createdAt, this.updatedAt, this.archivedAt, this.isDeleted, this.createdUserId, this.assignedUserId, this.id}) : super._() { BuiltValueNullFieldError.checkNotNull( firstName, 'VendorContactEntity', 'firstName'); BuiltValueNullFieldError.checkNotNull( lastName, 'VendorContactEntity', 'lastName'); BuiltValueNullFieldError.checkNotNull( email, 'VendorContactEntity', 'email'); BuiltValueNullFieldError.checkNotNull( isPrimary, 'VendorContactEntity', 'isPrimary'); BuiltValueNullFieldError.checkNotNull( phone, 'VendorContactEntity', 'phone'); BuiltValueNullFieldError.checkNotNull( customValue1, 'VendorContactEntity', 'customValue1'); BuiltValueNullFieldError.checkNotNull( customValue2, 'VendorContactEntity', 'customValue2'); BuiltValueNullFieldError.checkNotNull( customValue3, 'VendorContactEntity', 'customValue3'); BuiltValueNullFieldError.checkNotNull( customValue4, 'VendorContactEntity', 'customValue4'); BuiltValueNullFieldError.checkNotNull(link, 'VendorContactEntity', 'link'); BuiltValueNullFieldError.checkNotNull( createdAt, 'VendorContactEntity', 'createdAt'); BuiltValueNullFieldError.checkNotNull( updatedAt, 'VendorContactEntity', 'updatedAt'); BuiltValueNullFieldError.checkNotNull( archivedAt, 'VendorContactEntity', 'archivedAt'); BuiltValueNullFieldError.checkNotNull(id, 'VendorContactEntity', 'id'); } @override VendorContactEntity rebuild( void Function(VendorContactEntityBuilder) updates) => (toBuilder()..update(updates)).build(); @override VendorContactEntityBuilder toBuilder() => new VendorContactEntityBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is VendorContactEntity && firstName == other.firstName && lastName == other.lastName && email == other.email && isPrimary == other.isPrimary && phone == other.phone && customValue1 == other.customValue1 && customValue2 == other.customValue2 && customValue3 == other.customValue3 && customValue4 == other.customValue4 && link == other.link && isChanged == other.isChanged && createdAt == other.createdAt && updatedAt == other.updatedAt && archivedAt == other.archivedAt && isDeleted == other.isDeleted && createdUserId == other.createdUserId && assignedUserId == other.assignedUserId && id == other.id; } int __hashCode; @override int get hashCode { return __hashCode ??= $jf($jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( 0, firstName .hashCode), lastName .hashCode), email .hashCode), isPrimary .hashCode), phone.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), link.hashCode), isChanged.hashCode), createdAt.hashCode), updatedAt.hashCode), archivedAt.hashCode), isDeleted.hashCode), createdUserId.hashCode), assignedUserId.hashCode), id.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('VendorContactEntity') ..add('firstName', firstName) ..add('lastName', lastName) ..add('email', email) ..add('isPrimary', isPrimary) ..add('phone', phone) ..add('customValue1', customValue1) ..add('customValue2', customValue2) ..add('customValue3', customValue3) ..add('customValue4', customValue4) ..add('link', link) ..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 VendorContactEntityBuilder implements Builder { _$VendorContactEntity _$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; bool _isPrimary; bool get isPrimary => _$this._isPrimary; set isPrimary(bool isPrimary) => _$this._isPrimary = isPrimary; 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; String _link; String get link => _$this._link; set link(String link) => _$this._link = link; 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; VendorContactEntityBuilder() { VendorContactEntity._initializeBuilder(this); } VendorContactEntityBuilder get _$this { final $v = _$v; if ($v != null) { _firstName = $v.firstName; _lastName = $v.lastName; _email = $v.email; _isPrimary = $v.isPrimary; _phone = $v.phone; _customValue1 = $v.customValue1; _customValue2 = $v.customValue2; _customValue3 = $v.customValue3; _customValue4 = $v.customValue4; _link = $v.link; _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(VendorContactEntity other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$VendorContactEntity; } @override void update(void Function(VendorContactEntityBuilder) updates) { if (updates != null) updates(this); } @override _$VendorContactEntity build() { final _$result = _$v ?? new _$VendorContactEntity._( firstName: BuiltValueNullFieldError.checkNotNull( firstName, 'VendorContactEntity', 'firstName'), lastName: BuiltValueNullFieldError.checkNotNull( lastName, 'VendorContactEntity', 'lastName'), email: BuiltValueNullFieldError.checkNotNull( email, 'VendorContactEntity', 'email'), isPrimary: BuiltValueNullFieldError.checkNotNull( isPrimary, 'VendorContactEntity', 'isPrimary'), phone: BuiltValueNullFieldError.checkNotNull( phone, 'VendorContactEntity', 'phone'), customValue1: BuiltValueNullFieldError.checkNotNull( customValue1, 'VendorContactEntity', 'customValue1'), customValue2: BuiltValueNullFieldError.checkNotNull( customValue2, 'VendorContactEntity', 'customValue2'), customValue3: BuiltValueNullFieldError.checkNotNull( customValue3, 'VendorContactEntity', 'customValue3'), customValue4: BuiltValueNullFieldError.checkNotNull(customValue4, 'VendorContactEntity', 'customValue4'), link: BuiltValueNullFieldError.checkNotNull(link, 'VendorContactEntity', 'link'), isChanged: isChanged, createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, 'VendorContactEntity', 'createdAt'), updatedAt: BuiltValueNullFieldError.checkNotNull(updatedAt, 'VendorContactEntity', 'updatedAt'), archivedAt: BuiltValueNullFieldError.checkNotNull(archivedAt, 'VendorContactEntity', 'archivedAt'), isDeleted: isDeleted, createdUserId: createdUserId, assignedUserId: assignedUserId, id: BuiltValueNullFieldError.checkNotNull(id, 'VendorContactEntity', 'id')); 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,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new