// GENERATED CODE - DO NOT MODIFY BY HAND part of 'client_model.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** Serializer _$clientListResponseSerializer = new _$ClientListResponseSerializer(); Serializer _$clientItemResponseSerializer = new _$ClientItemResponseSerializer(); Serializer _$clientEntitySerializer = new _$ClientEntitySerializer(); Serializer _$contactEntitySerializer = new _$ContactEntitySerializer(); class _$ClientListResponseSerializer implements StructuredSerializer { @override final Iterable types = const [ClientListResponse, _$ClientListResponse]; @override final String wireName = 'ClientListResponse'; @override Iterable serialize(Serializers serializers, ClientListResponse object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'data', serializers.serialize(object.data, specifiedType: const FullType(BuiltList, const [const FullType(ClientEntity)])), ]; return result; } @override ClientListResponse deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new ClientListResponseBuilder(); 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(ClientEntity)])) as BuiltList); break; } } return result.build(); } } class _$ClientItemResponseSerializer implements StructuredSerializer { @override final Iterable types = const [ClientItemResponse, _$ClientItemResponse]; @override final String wireName = 'ClientItemResponse'; @override Iterable serialize(Serializers serializers, ClientItemResponse object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'data', serializers.serialize(object.data, specifiedType: const FullType(ClientEntity)), ]; return result; } @override ClientItemResponse deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new ClientItemResponseBuilder(); 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(ClientEntity)) as ClientEntity); break; } } return result.build(); } } class _$ClientEntitySerializer implements StructuredSerializer { @override final Iterable types = const [ClientEntity, _$ClientEntity]; @override final String wireName = 'ClientEntity'; @override Iterable serialize(Serializers serializers, ClientEntity object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'name', serializers.serialize(object.name, specifiedType: const FullType(String)), 'display_name', serializers.serialize(object.displayName, specifiedType: const FullType(String)), 'balance', serializers.serialize(object.balance, specifiedType: const FullType(double)), 'paid_to_date', serializers.serialize(object.paidToDate, specifiedType: const FullType(double)), '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)), 'work_phone', serializers.serialize(object.workPhone, 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)), 'industry_id', serializers.serialize(object.industryId, specifiedType: const FullType(String)), 'size_id', serializers.serialize(object.sizeId, specifiedType: const FullType(String)), 'payment_terms', serializers.serialize(object.paymentTerms, specifiedType: const FullType(int)), 'vat_number', serializers.serialize(object.vatNumber, specifiedType: const FullType(String)), 'id_number', serializers.serialize(object.idNumber, specifiedType: const FullType(String)), 'language_id', serializers.serialize(object.languageId, specifiedType: const FullType(String)), 'currency_id', serializers.serialize(object.currencyId, specifiedType: const FullType(String)), 'invoice_number_counter', serializers.serialize(object.invoiceNumberCounter, specifiedType: const FullType(int)), 'quote_number_counter', serializers.serialize(object.quoteNumberCounter, specifiedType: const FullType(int)), 'task_rate', serializers.serialize(object.taskRate, specifiedType: const FullType(double)), 'shipping_address1', serializers.serialize(object.shippingAddress1, specifiedType: const FullType(String)), 'shipping_address2', serializers.serialize(object.shippingAddress2, specifiedType: const FullType(String)), 'shipping_city', serializers.serialize(object.shippingCity, specifiedType: const FullType(String)), 'shipping_state', serializers.serialize(object.shippingState, specifiedType: const FullType(String)), 'shipping_postal_code', serializers.serialize(object.shippingPostalCode, specifiedType: const FullType(String)), 'shipping_country_id', serializers.serialize(object.shippingCountryId, specifiedType: const FullType(String)), 'show_tasks_in_portal', serializers.serialize(object.showTasksInPortal, specifiedType: const FullType(bool)), 'send_reminders', serializers.serialize(object.sendReminders, specifiedType: const FullType(bool)), 'credit_number_counter', serializers.serialize(object.creditNumberCounter, specifiedType: const FullType(int)), 'custom_value1', serializers.serialize(object.customValue1, specifiedType: const FullType(String)), 'custom_value2', serializers.serialize(object.customValue2, specifiedType: const FullType(String)), 'contacts', serializers.serialize(object.contacts, specifiedType: const FullType(BuiltList, const [const FullType(ContactEntity)])), 'activities', serializers.serialize(object.activities, specifiedType: const FullType( BuiltList, const [const FullType(ActivityEntity)])), ]; if (object.lastUpdatedActivities != null) { result ..add('lastUpdatedActivities') ..add(serializers.serialize(object.lastUpdatedActivities, specifiedType: const FullType(int))); } 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('archived_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.isOwner != null) { result ..add('is_owner') ..add(serializers.serialize(object.isOwner, specifiedType: const FullType(bool))); } if (object.id != null) { result ..add('id') ..add(serializers.serialize(object.id, specifiedType: const FullType(String))); } return result; } @override ClientEntity deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new ClientEntityBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final dynamic value = iterator.current; switch (key) { case 'lastUpdatedActivities': result.lastUpdatedActivities = 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 'display_name': result.displayName = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'balance': result.balance = serializers.deserialize(value, specifiedType: const FullType(double)) as double; break; case 'paid_to_date': result.paidToDate = serializers.deserialize(value, specifiedType: const FullType(double)) as double; 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 'work_phone': result.workPhone = 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 'industry_id': result.industryId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'size_id': result.sizeId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'payment_terms': result.paymentTerms = serializers.deserialize(value, specifiedType: const FullType(int)) as int; 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 'language_id': result.languageId = 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 'invoice_number_counter': result.invoiceNumberCounter = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'quote_number_counter': result.quoteNumberCounter = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'task_rate': result.taskRate = serializers.deserialize(value, specifiedType: const FullType(double)) as double; break; case 'shipping_address1': result.shippingAddress1 = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'shipping_address2': result.shippingAddress2 = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'shipping_city': result.shippingCity = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'shipping_state': result.shippingState = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'shipping_postal_code': result.shippingPostalCode = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'shipping_country_id': result.shippingCountryId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'show_tasks_in_portal': result.showTasksInPortal = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'send_reminders': result.sendReminders = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'credit_number_counter': result.creditNumberCounter = serializers.deserialize(value, specifiedType: const FullType(int)) as int; 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 'contacts': result.contacts.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(ContactEntity)])) as BuiltList); break; case 'activities': result.activities.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(ActivityEntity)])) as BuiltList); 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 'is_owner': result.isOwner = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'id': result.id = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; } } return result.build(); } } class _$ContactEntitySerializer implements StructuredSerializer { @override final Iterable types = const [ContactEntity, _$ContactEntity]; @override final String wireName = 'ContactEntity'; @override Iterable serialize(Serializers serializers, ContactEntity 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)), 'phone', serializers.serialize(object.phone, specifiedType: const FullType(String)), 'contact_key', serializers.serialize(object.contactKey, specifiedType: const FullType(String)), 'is_primary', serializers.serialize(object.isPrimary, specifiedType: const FullType(bool)), 'send_invoice', serializers.serialize(object.sendInvoice, specifiedType: const FullType(bool)), 'custom_value1', serializers.serialize(object.customValue1, specifiedType: const FullType(String)), 'custom_value2', serializers.serialize(object.customValue2, specifiedType: const FullType(String)), ]; if (object.password != null) { result ..add('password') ..add(serializers.serialize(object.password, specifiedType: const FullType(String))); } 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('archived_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.isOwner != null) { result ..add('is_owner') ..add(serializers.serialize(object.isOwner, specifiedType: const FullType(bool))); } if (object.id != null) { result ..add('id') ..add(serializers.serialize(object.id, specifiedType: const FullType(String))); } return result; } @override ContactEntity deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new ContactEntityBuilder(); 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 'password': result.password = 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 'contact_key': result.contactKey = 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 'send_invoice': result.sendInvoice = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; 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 '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 'is_owner': result.isOwner = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'id': result.id = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; } } return result.build(); } } class _$ClientListResponse extends ClientListResponse { @override final BuiltList data; factory _$ClientListResponse( [void Function(ClientListResponseBuilder) updates]) => (new ClientListResponseBuilder()..update(updates)).build(); _$ClientListResponse._({this.data}) : super._() { if (data == null) { throw new BuiltValueNullFieldError('ClientListResponse', 'data'); } } @override ClientListResponse rebuild( void Function(ClientListResponseBuilder) updates) => (toBuilder()..update(updates)).build(); @override ClientListResponseBuilder toBuilder() => new ClientListResponseBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is ClientListResponse && data == other.data; } @override int get hashCode { return $jf($jc(0, data.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('ClientListResponse') ..add('data', data)) .toString(); } } class ClientListResponseBuilder implements Builder { _$ClientListResponse _$v; ListBuilder _data; ListBuilder get data => _$this._data ??= new ListBuilder(); set data(ListBuilder data) => _$this._data = data; ClientListResponseBuilder(); ClientListResponseBuilder get _$this { if (_$v != null) { _data = _$v.data?.toBuilder(); _$v = null; } return this; } @override void replace(ClientListResponse other) { if (other == null) { throw new ArgumentError.notNull('other'); } _$v = other as _$ClientListResponse; } @override void update(void Function(ClientListResponseBuilder) updates) { if (updates != null) updates(this); } @override _$ClientListResponse build() { _$ClientListResponse _$result; try { _$result = _$v ?? new _$ClientListResponse._(data: data.build()); } catch (_) { String _$failedField; try { _$failedField = 'data'; data.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'ClientListResponse', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$ClientItemResponse extends ClientItemResponse { @override final ClientEntity data; factory _$ClientItemResponse( [void Function(ClientItemResponseBuilder) updates]) => (new ClientItemResponseBuilder()..update(updates)).build(); _$ClientItemResponse._({this.data}) : super._() { if (data == null) { throw new BuiltValueNullFieldError('ClientItemResponse', 'data'); } } @override ClientItemResponse rebuild( void Function(ClientItemResponseBuilder) updates) => (toBuilder()..update(updates)).build(); @override ClientItemResponseBuilder toBuilder() => new ClientItemResponseBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is ClientItemResponse && data == other.data; } @override int get hashCode { return $jf($jc(0, data.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('ClientItemResponse') ..add('data', data)) .toString(); } } class ClientItemResponseBuilder implements Builder { _$ClientItemResponse _$v; ClientEntityBuilder _data; ClientEntityBuilder get data => _$this._data ??= new ClientEntityBuilder(); set data(ClientEntityBuilder data) => _$this._data = data; ClientItemResponseBuilder(); ClientItemResponseBuilder get _$this { if (_$v != null) { _data = _$v.data?.toBuilder(); _$v = null; } return this; } @override void replace(ClientItemResponse other) { if (other == null) { throw new ArgumentError.notNull('other'); } _$v = other as _$ClientItemResponse; } @override void update(void Function(ClientItemResponseBuilder) updates) { if (updates != null) updates(this); } @override _$ClientItemResponse build() { _$ClientItemResponse _$result; try { _$result = _$v ?? new _$ClientItemResponse._(data: data.build()); } catch (_) { String _$failedField; try { _$failedField = 'data'; data.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'ClientItemResponse', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$ClientEntity extends ClientEntity { @override final int lastUpdatedActivities; @override final String name; @override final String displayName; @override final double balance; @override final double paidToDate; @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 workPhone; @override final String privateNotes; @override final String publicNotes; @override final String website; @override final String industryId; @override final String sizeId; @override final int paymentTerms; @override final String vatNumber; @override final String idNumber; @override final String languageId; @override final String currencyId; @override final int invoiceNumberCounter; @override final int quoteNumberCounter; @override final double taskRate; @override final String shippingAddress1; @override final String shippingAddress2; @override final String shippingCity; @override final String shippingState; @override final String shippingPostalCode; @override final String shippingCountryId; @override final bool showTasksInPortal; @override final bool sendReminders; @override final int creditNumberCounter; @override final String customValue1; @override final String customValue2; @override final BuiltList contacts; @override final BuiltList activities; @override final bool isChanged; @override final int createdAt; @override final int updatedAt; @override final int archivedAt; @override final bool isDeleted; @override final bool isOwner; @override final String id; factory _$ClientEntity([void Function(ClientEntityBuilder) updates]) => (new ClientEntityBuilder()..update(updates)).build(); _$ClientEntity._( {this.lastUpdatedActivities, this.name, this.displayName, this.balance, this.paidToDate, this.address1, this.address2, this.city, this.state, this.postalCode, this.countryId, this.workPhone, this.privateNotes, this.publicNotes, this.website, this.industryId, this.sizeId, this.paymentTerms, this.vatNumber, this.idNumber, this.languageId, this.currencyId, this.invoiceNumberCounter, this.quoteNumberCounter, this.taskRate, this.shippingAddress1, this.shippingAddress2, this.shippingCity, this.shippingState, this.shippingPostalCode, this.shippingCountryId, this.showTasksInPortal, this.sendReminders, this.creditNumberCounter, this.customValue1, this.customValue2, this.contacts, this.activities, this.isChanged, this.createdAt, this.updatedAt, this.archivedAt, this.isDeleted, this.isOwner, this.id}) : super._() { if (name == null) { throw new BuiltValueNullFieldError('ClientEntity', 'name'); } if (displayName == null) { throw new BuiltValueNullFieldError('ClientEntity', 'displayName'); } if (balance == null) { throw new BuiltValueNullFieldError('ClientEntity', 'balance'); } if (paidToDate == null) { throw new BuiltValueNullFieldError('ClientEntity', 'paidToDate'); } if (address1 == null) { throw new BuiltValueNullFieldError('ClientEntity', 'address1'); } if (address2 == null) { throw new BuiltValueNullFieldError('ClientEntity', 'address2'); } if (city == null) { throw new BuiltValueNullFieldError('ClientEntity', 'city'); } if (state == null) { throw new BuiltValueNullFieldError('ClientEntity', 'state'); } if (postalCode == null) { throw new BuiltValueNullFieldError('ClientEntity', 'postalCode'); } if (countryId == null) { throw new BuiltValueNullFieldError('ClientEntity', 'countryId'); } if (workPhone == null) { throw new BuiltValueNullFieldError('ClientEntity', 'workPhone'); } if (privateNotes == null) { throw new BuiltValueNullFieldError('ClientEntity', 'privateNotes'); } if (publicNotes == null) { throw new BuiltValueNullFieldError('ClientEntity', 'publicNotes'); } if (website == null) { throw new BuiltValueNullFieldError('ClientEntity', 'website'); } if (industryId == null) { throw new BuiltValueNullFieldError('ClientEntity', 'industryId'); } if (sizeId == null) { throw new BuiltValueNullFieldError('ClientEntity', 'sizeId'); } if (paymentTerms == null) { throw new BuiltValueNullFieldError('ClientEntity', 'paymentTerms'); } if (vatNumber == null) { throw new BuiltValueNullFieldError('ClientEntity', 'vatNumber'); } if (idNumber == null) { throw new BuiltValueNullFieldError('ClientEntity', 'idNumber'); } if (languageId == null) { throw new BuiltValueNullFieldError('ClientEntity', 'languageId'); } if (currencyId == null) { throw new BuiltValueNullFieldError('ClientEntity', 'currencyId'); } if (invoiceNumberCounter == null) { throw new BuiltValueNullFieldError( 'ClientEntity', 'invoiceNumberCounter'); } if (quoteNumberCounter == null) { throw new BuiltValueNullFieldError('ClientEntity', 'quoteNumberCounter'); } if (taskRate == null) { throw new BuiltValueNullFieldError('ClientEntity', 'taskRate'); } if (shippingAddress1 == null) { throw new BuiltValueNullFieldError('ClientEntity', 'shippingAddress1'); } if (shippingAddress2 == null) { throw new BuiltValueNullFieldError('ClientEntity', 'shippingAddress2'); } if (shippingCity == null) { throw new BuiltValueNullFieldError('ClientEntity', 'shippingCity'); } if (shippingState == null) { throw new BuiltValueNullFieldError('ClientEntity', 'shippingState'); } if (shippingPostalCode == null) { throw new BuiltValueNullFieldError('ClientEntity', 'shippingPostalCode'); } if (shippingCountryId == null) { throw new BuiltValueNullFieldError('ClientEntity', 'shippingCountryId'); } if (showTasksInPortal == null) { throw new BuiltValueNullFieldError('ClientEntity', 'showTasksInPortal'); } if (sendReminders == null) { throw new BuiltValueNullFieldError('ClientEntity', 'sendReminders'); } if (creditNumberCounter == null) { throw new BuiltValueNullFieldError('ClientEntity', 'creditNumberCounter'); } if (customValue1 == null) { throw new BuiltValueNullFieldError('ClientEntity', 'customValue1'); } if (customValue2 == null) { throw new BuiltValueNullFieldError('ClientEntity', 'customValue2'); } if (contacts == null) { throw new BuiltValueNullFieldError('ClientEntity', 'contacts'); } if (activities == null) { throw new BuiltValueNullFieldError('ClientEntity', 'activities'); } if (isChanged == null) { throw new BuiltValueNullFieldError('ClientEntity', 'isChanged'); } } @override ClientEntity rebuild(void Function(ClientEntityBuilder) updates) => (toBuilder()..update(updates)).build(); @override ClientEntityBuilder toBuilder() => new ClientEntityBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is ClientEntity && lastUpdatedActivities == other.lastUpdatedActivities && name == other.name && displayName == other.displayName && balance == other.balance && paidToDate == other.paidToDate && address1 == other.address1 && address2 == other.address2 && city == other.city && state == other.state && postalCode == other.postalCode && countryId == other.countryId && workPhone == other.workPhone && privateNotes == other.privateNotes && publicNotes == other.publicNotes && website == other.website && industryId == other.industryId && sizeId == other.sizeId && paymentTerms == other.paymentTerms && vatNumber == other.vatNumber && idNumber == other.idNumber && languageId == other.languageId && currencyId == other.currencyId && invoiceNumberCounter == other.invoiceNumberCounter && quoteNumberCounter == other.quoteNumberCounter && taskRate == other.taskRate && shippingAddress1 == other.shippingAddress1 && shippingAddress2 == other.shippingAddress2 && shippingCity == other.shippingCity && shippingState == other.shippingState && shippingPostalCode == other.shippingPostalCode && shippingCountryId == other.shippingCountryId && showTasksInPortal == other.showTasksInPortal && sendReminders == other.sendReminders && creditNumberCounter == other.creditNumberCounter && customValue1 == other.customValue1 && customValue2 == other.customValue2 && contacts == other.contacts && activities == other.activities && isChanged == other.isChanged && createdAt == other.createdAt && updatedAt == other.updatedAt && archivedAt == other.archivedAt && isDeleted == other.isDeleted && isOwner == other.isOwner && 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( $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, lastUpdatedActivities.hashCode), name.hashCode), displayName.hashCode), balance.hashCode), paidToDate.hashCode), address1.hashCode), address2.hashCode), city.hashCode), state.hashCode), postalCode.hashCode), countryId.hashCode), workPhone.hashCode), privateNotes.hashCode), publicNotes.hashCode), website.hashCode), industryId.hashCode), sizeId.hashCode), paymentTerms.hashCode), vatNumber.hashCode), idNumber.hashCode), languageId.hashCode), currencyId.hashCode), invoiceNumberCounter.hashCode), quoteNumberCounter.hashCode), taskRate.hashCode), shippingAddress1.hashCode), shippingAddress2.hashCode), shippingCity.hashCode), shippingState.hashCode), shippingPostalCode.hashCode), shippingCountryId.hashCode), showTasksInPortal.hashCode), sendReminders.hashCode), creditNumberCounter.hashCode), customValue1.hashCode), customValue2.hashCode), contacts.hashCode), activities.hashCode), isChanged.hashCode), createdAt.hashCode), updatedAt.hashCode), archivedAt.hashCode), isDeleted.hashCode), isOwner.hashCode), id.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('ClientEntity') ..add('lastUpdatedActivities', lastUpdatedActivities) ..add('name', name) ..add('displayName', displayName) ..add('balance', balance) ..add('paidToDate', paidToDate) ..add('address1', address1) ..add('address2', address2) ..add('city', city) ..add('state', state) ..add('postalCode', postalCode) ..add('countryId', countryId) ..add('workPhone', workPhone) ..add('privateNotes', privateNotes) ..add('publicNotes', publicNotes) ..add('website', website) ..add('industryId', industryId) ..add('sizeId', sizeId) ..add('paymentTerms', paymentTerms) ..add('vatNumber', vatNumber) ..add('idNumber', idNumber) ..add('languageId', languageId) ..add('currencyId', currencyId) ..add('invoiceNumberCounter', invoiceNumberCounter) ..add('quoteNumberCounter', quoteNumberCounter) ..add('taskRate', taskRate) ..add('shippingAddress1', shippingAddress1) ..add('shippingAddress2', shippingAddress2) ..add('shippingCity', shippingCity) ..add('shippingState', shippingState) ..add('shippingPostalCode', shippingPostalCode) ..add('shippingCountryId', shippingCountryId) ..add('showTasksInPortal', showTasksInPortal) ..add('sendReminders', sendReminders) ..add('creditNumberCounter', creditNumberCounter) ..add('customValue1', customValue1) ..add('customValue2', customValue2) ..add('contacts', contacts) ..add('activities', activities) ..add('isChanged', isChanged) ..add('createdAt', createdAt) ..add('updatedAt', updatedAt) ..add('archivedAt', archivedAt) ..add('isDeleted', isDeleted) ..add('isOwner', isOwner) ..add('id', id)) .toString(); } } class ClientEntityBuilder implements Builder { _$ClientEntity _$v; int _lastUpdatedActivities; int get lastUpdatedActivities => _$this._lastUpdatedActivities; set lastUpdatedActivities(int lastUpdatedActivities) => _$this._lastUpdatedActivities = lastUpdatedActivities; String _name; String get name => _$this._name; set name(String name) => _$this._name = name; String _displayName; String get displayName => _$this._displayName; set displayName(String displayName) => _$this._displayName = displayName; double _balance; double get balance => _$this._balance; set balance(double balance) => _$this._balance = balance; double _paidToDate; double get paidToDate => _$this._paidToDate; set paidToDate(double paidToDate) => _$this._paidToDate = paidToDate; 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 _workPhone; String get workPhone => _$this._workPhone; set workPhone(String workPhone) => _$this._workPhone = workPhone; 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 _industryId; String get industryId => _$this._industryId; set industryId(String industryId) => _$this._industryId = industryId; String _sizeId; String get sizeId => _$this._sizeId; set sizeId(String sizeId) => _$this._sizeId = sizeId; int _paymentTerms; int get paymentTerms => _$this._paymentTerms; set paymentTerms(int paymentTerms) => _$this._paymentTerms = paymentTerms; 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 _languageId; String get languageId => _$this._languageId; set languageId(String languageId) => _$this._languageId = languageId; String _currencyId; String get currencyId => _$this._currencyId; set currencyId(String currencyId) => _$this._currencyId = currencyId; int _invoiceNumberCounter; int get invoiceNumberCounter => _$this._invoiceNumberCounter; set invoiceNumberCounter(int invoiceNumberCounter) => _$this._invoiceNumberCounter = invoiceNumberCounter; int _quoteNumberCounter; int get quoteNumberCounter => _$this._quoteNumberCounter; set quoteNumberCounter(int quoteNumberCounter) => _$this._quoteNumberCounter = quoteNumberCounter; double _taskRate; double get taskRate => _$this._taskRate; set taskRate(double taskRate) => _$this._taskRate = taskRate; String _shippingAddress1; String get shippingAddress1 => _$this._shippingAddress1; set shippingAddress1(String shippingAddress1) => _$this._shippingAddress1 = shippingAddress1; String _shippingAddress2; String get shippingAddress2 => _$this._shippingAddress2; set shippingAddress2(String shippingAddress2) => _$this._shippingAddress2 = shippingAddress2; String _shippingCity; String get shippingCity => _$this._shippingCity; set shippingCity(String shippingCity) => _$this._shippingCity = shippingCity; String _shippingState; String get shippingState => _$this._shippingState; set shippingState(String shippingState) => _$this._shippingState = shippingState; String _shippingPostalCode; String get shippingPostalCode => _$this._shippingPostalCode; set shippingPostalCode(String shippingPostalCode) => _$this._shippingPostalCode = shippingPostalCode; String _shippingCountryId; String get shippingCountryId => _$this._shippingCountryId; set shippingCountryId(String shippingCountryId) => _$this._shippingCountryId = shippingCountryId; bool _showTasksInPortal; bool get showTasksInPortal => _$this._showTasksInPortal; set showTasksInPortal(bool showTasksInPortal) => _$this._showTasksInPortal = showTasksInPortal; bool _sendReminders; bool get sendReminders => _$this._sendReminders; set sendReminders(bool sendReminders) => _$this._sendReminders = sendReminders; int _creditNumberCounter; int get creditNumberCounter => _$this._creditNumberCounter; set creditNumberCounter(int creditNumberCounter) => _$this._creditNumberCounter = creditNumberCounter; 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; 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; 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; bool _isOwner; bool get isOwner => _$this._isOwner; set isOwner(bool isOwner) => _$this._isOwner = isOwner; String _id; String get id => _$this._id; set id(String id) => _$this._id = id; ClientEntityBuilder(); ClientEntityBuilder get _$this { if (_$v != null) { _lastUpdatedActivities = _$v.lastUpdatedActivities; _name = _$v.name; _displayName = _$v.displayName; _balance = _$v.balance; _paidToDate = _$v.paidToDate; _address1 = _$v.address1; _address2 = _$v.address2; _city = _$v.city; _state = _$v.state; _postalCode = _$v.postalCode; _countryId = _$v.countryId; _workPhone = _$v.workPhone; _privateNotes = _$v.privateNotes; _publicNotes = _$v.publicNotes; _website = _$v.website; _industryId = _$v.industryId; _sizeId = _$v.sizeId; _paymentTerms = _$v.paymentTerms; _vatNumber = _$v.vatNumber; _idNumber = _$v.idNumber; _languageId = _$v.languageId; _currencyId = _$v.currencyId; _invoiceNumberCounter = _$v.invoiceNumberCounter; _quoteNumberCounter = _$v.quoteNumberCounter; _taskRate = _$v.taskRate; _shippingAddress1 = _$v.shippingAddress1; _shippingAddress2 = _$v.shippingAddress2; _shippingCity = _$v.shippingCity; _shippingState = _$v.shippingState; _shippingPostalCode = _$v.shippingPostalCode; _shippingCountryId = _$v.shippingCountryId; _showTasksInPortal = _$v.showTasksInPortal; _sendReminders = _$v.sendReminders; _creditNumberCounter = _$v.creditNumberCounter; _customValue1 = _$v.customValue1; _customValue2 = _$v.customValue2; _contacts = _$v.contacts?.toBuilder(); _activities = _$v.activities?.toBuilder(); _isChanged = _$v.isChanged; _createdAt = _$v.createdAt; _updatedAt = _$v.updatedAt; _archivedAt = _$v.archivedAt; _isDeleted = _$v.isDeleted; _isOwner = _$v.isOwner; _id = _$v.id; _$v = null; } return this; } @override void replace(ClientEntity other) { if (other == null) { throw new ArgumentError.notNull('other'); } _$v = other as _$ClientEntity; } @override void update(void Function(ClientEntityBuilder) updates) { if (updates != null) updates(this); } @override _$ClientEntity build() { _$ClientEntity _$result; try { _$result = _$v ?? new _$ClientEntity._( lastUpdatedActivities: lastUpdatedActivities, name: name, displayName: displayName, balance: balance, paidToDate: paidToDate, address1: address1, address2: address2, city: city, state: state, postalCode: postalCode, countryId: countryId, workPhone: workPhone, privateNotes: privateNotes, publicNotes: publicNotes, website: website, industryId: industryId, sizeId: sizeId, paymentTerms: paymentTerms, vatNumber: vatNumber, idNumber: idNumber, languageId: languageId, currencyId: currencyId, invoiceNumberCounter: invoiceNumberCounter, quoteNumberCounter: quoteNumberCounter, taskRate: taskRate, shippingAddress1: shippingAddress1, shippingAddress2: shippingAddress2, shippingCity: shippingCity, shippingState: shippingState, shippingPostalCode: shippingPostalCode, shippingCountryId: shippingCountryId, showTasksInPortal: showTasksInPortal, sendReminders: sendReminders, creditNumberCounter: creditNumberCounter, customValue1: customValue1, customValue2: customValue2, contacts: contacts.build(), activities: activities.build(), isChanged: isChanged, createdAt: createdAt, updatedAt: updatedAt, archivedAt: archivedAt, isDeleted: isDeleted, isOwner: isOwner, id: id); } catch (_) { String _$failedField; try { _$failedField = 'contacts'; contacts.build(); _$failedField = 'activities'; activities.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'ClientEntity', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$ContactEntity extends ContactEntity { @override final String firstName; @override final String lastName; @override final String email; @override final String password; @override final String phone; @override final String contactKey; @override final bool isPrimary; @override final bool sendInvoice; @override final String customValue1; @override final String customValue2; @override final bool isChanged; @override final int createdAt; @override final int updatedAt; @override final int archivedAt; @override final bool isDeleted; @override final bool isOwner; @override final String id; factory _$ContactEntity([void Function(ContactEntityBuilder) updates]) => (new ContactEntityBuilder()..update(updates)).build(); _$ContactEntity._( {this.firstName, this.lastName, this.email, this.password, this.phone, this.contactKey, this.isPrimary, this.sendInvoice, this.customValue1, this.customValue2, this.isChanged, this.createdAt, this.updatedAt, this.archivedAt, this.isDeleted, this.isOwner, this.id}) : super._() { if (firstName == null) { throw new BuiltValueNullFieldError('ContactEntity', 'firstName'); } if (lastName == null) { throw new BuiltValueNullFieldError('ContactEntity', 'lastName'); } if (email == null) { throw new BuiltValueNullFieldError('ContactEntity', 'email'); } if (phone == null) { throw new BuiltValueNullFieldError('ContactEntity', 'phone'); } if (contactKey == null) { throw new BuiltValueNullFieldError('ContactEntity', 'contactKey'); } if (isPrimary == null) { throw new BuiltValueNullFieldError('ContactEntity', 'isPrimary'); } if (sendInvoice == null) { throw new BuiltValueNullFieldError('ContactEntity', 'sendInvoice'); } if (customValue1 == null) { throw new BuiltValueNullFieldError('ContactEntity', 'customValue1'); } if (customValue2 == null) { throw new BuiltValueNullFieldError('ContactEntity', 'customValue2'); } if (isChanged == null) { throw new BuiltValueNullFieldError('ContactEntity', 'isChanged'); } } @override ContactEntity rebuild(void Function(ContactEntityBuilder) updates) => (toBuilder()..update(updates)).build(); @override ContactEntityBuilder toBuilder() => new ContactEntityBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is ContactEntity && firstName == other.firstName && lastName == other.lastName && email == other.email && password == other.password && phone == other.phone && contactKey == other.contactKey && isPrimary == other.isPrimary && sendInvoice == other.sendInvoice && customValue1 == other.customValue1 && customValue2 == other.customValue2 && isChanged == other.isChanged && createdAt == other.createdAt && updatedAt == other.updatedAt && archivedAt == other.archivedAt && isDeleted == other.isDeleted && isOwner == other.isOwner && 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), password.hashCode), phone.hashCode), contactKey.hashCode), isPrimary.hashCode), sendInvoice.hashCode), customValue1.hashCode), customValue2.hashCode), isChanged.hashCode), createdAt.hashCode), updatedAt.hashCode), archivedAt.hashCode), isDeleted.hashCode), isOwner.hashCode), id.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('ContactEntity') ..add('firstName', firstName) ..add('lastName', lastName) ..add('email', email) ..add('password', password) ..add('phone', phone) ..add('contactKey', contactKey) ..add('isPrimary', isPrimary) ..add('sendInvoice', sendInvoice) ..add('customValue1', customValue1) ..add('customValue2', customValue2) ..add('isChanged', isChanged) ..add('createdAt', createdAt) ..add('updatedAt', updatedAt) ..add('archivedAt', archivedAt) ..add('isDeleted', isDeleted) ..add('isOwner', isOwner) ..add('id', id)) .toString(); } } class ContactEntityBuilder implements Builder { _$ContactEntity _$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 _password; String get password => _$this._password; set password(String password) => _$this._password = password; String _phone; String get phone => _$this._phone; set phone(String phone) => _$this._phone = phone; String _contactKey; String get contactKey => _$this._contactKey; set contactKey(String contactKey) => _$this._contactKey = contactKey; bool _isPrimary; bool get isPrimary => _$this._isPrimary; set isPrimary(bool isPrimary) => _$this._isPrimary = isPrimary; bool _sendInvoice; bool get sendInvoice => _$this._sendInvoice; set sendInvoice(bool sendInvoice) => _$this._sendInvoice = sendInvoice; 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; 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; bool _isOwner; bool get isOwner => _$this._isOwner; set isOwner(bool isOwner) => _$this._isOwner = isOwner; String _id; String get id => _$this._id; set id(String id) => _$this._id = id; ContactEntityBuilder(); ContactEntityBuilder get _$this { if (_$v != null) { _firstName = _$v.firstName; _lastName = _$v.lastName; _email = _$v.email; _password = _$v.password; _phone = _$v.phone; _contactKey = _$v.contactKey; _isPrimary = _$v.isPrimary; _sendInvoice = _$v.sendInvoice; _customValue1 = _$v.customValue1; _customValue2 = _$v.customValue2; _isChanged = _$v.isChanged; _createdAt = _$v.createdAt; _updatedAt = _$v.updatedAt; _archivedAt = _$v.archivedAt; _isDeleted = _$v.isDeleted; _isOwner = _$v.isOwner; _id = _$v.id; _$v = null; } return this; } @override void replace(ContactEntity other) { if (other == null) { throw new ArgumentError.notNull('other'); } _$v = other as _$ContactEntity; } @override void update(void Function(ContactEntityBuilder) updates) { if (updates != null) updates(this); } @override _$ContactEntity build() { final _$result = _$v ?? new _$ContactEntity._( firstName: firstName, lastName: lastName, email: email, password: password, phone: phone, contactKey: contactKey, isPrimary: isPrimary, sendInvoice: sendInvoice, customValue1: customValue1, customValue2: customValue2, isChanged: isChanged, createdAt: createdAt, updatedAt: updatedAt, archivedAt: archivedAt, isDeleted: isDeleted, isOwner: isOwner, id: 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,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new