// 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 _$clientContactEntitySerializer = new _$ClientContactEntitySerializer(); 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 Object 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 Object 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 = [ 'group_settings_id', serializers.serialize(object.groupId, specifiedType: const FullType(String)), '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)), 'credit_balance', serializers.serialize(object.creditBalance, specifiedType: const FullType(double)), 'paid_to_date', serializers.serialize(object.paidToDate, specifiedType: const FullType(double)), 'client_hash', serializers.serialize(object.clientHash, 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)), 'industry_id', serializers.serialize(object.industryId, specifiedType: const FullType(String)), 'size_id', serializers.serialize(object.sizeId, specifiedType: const FullType(String)), 'vat_number', serializers.serialize(object.vatNumber, specifiedType: const FullType(String)), 'id_number', serializers.serialize(object.idNumber, specifiedType: const FullType(String)), 'number', serializers.serialize(object.number, specifiedType: const FullType(String)), '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)), 'settings', serializers.serialize(object.settings, specifiedType: const FullType(SettingsEntity)), 'last_login', serializers.serialize(object.lastLogin, specifiedType: const FullType(int)), '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(ClientContactEntity)])), 'activities', serializers.serialize(object.activities, specifiedType: const FullType( BuiltList, const [const FullType(ActivityEntity)])), 'ledger', serializers.serialize(object.ledger, specifiedType: const FullType(BuiltList, const [const FullType(LedgerEntity)])), 'gateway_tokens', serializers.serialize(object.gatewayTokens, specifiedType: const FullType( BuiltList, const [const FullType(GatewayTokenEntity)])), 'documents', serializers.serialize(object.documents, specifiedType: const FullType( BuiltList, const [const FullType(DocumentEntity)])), 'system_logs', serializers.serialize(object.systemLogs, specifiedType: const FullType( BuiltList, const [const FullType(SystemLogEntity)])), '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 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 Object value = iterator.current; switch (key) { case 'group_settings_id': result.groupId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; 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 '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 'credit_balance': result.creditBalance = 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 'client_hash': result.clientHash = 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 '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 '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 'number': result.number = serializers.deserialize(value, specifiedType: const FullType(String)) as String; 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 'settings': result.settings.replace(serializers.deserialize(value, specifiedType: const FullType(SettingsEntity)) as SettingsEntity); break; case 'last_login': result.lastLogin = 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 '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(ClientContactEntity)])) as BuiltList); break; case 'activities': result.activities.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(ActivityEntity)])) as BuiltList); break; case 'ledger': result.ledger.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(LedgerEntity)])) as BuiltList); break; case 'gateway_tokens': result.gatewayTokens.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(GatewayTokenEntity)])) as BuiltList); break; case 'documents': result.documents.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(DocumentEntity)])) as BuiltList); break; case 'system_logs': result.systemLogs.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(SystemLogEntity)])) 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 _$ClientContactEntitySerializer implements StructuredSerializer { @override final Iterable types = const [ ClientContactEntity, _$ClientContactEntity ]; @override final String wireName = 'ClientContactEntity'; @override Iterable serialize( Serializers serializers, ClientContactEntity 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)), 'password', serializers.serialize(object.password, 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_email', serializers.serialize(object.sendEmail, specifiedType: const FullType(bool)), '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)), 'last_login', serializers.serialize(object.lastLogin, specifiedType: const FullType(int)), '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 ClientContactEntity deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new ClientContactEntityBuilder(); 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 '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_email': result.sendEmail = 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 '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 'last_login': result.lastLogin = serializers.deserialize(value, specifiedType: const FullType(int)) as int; 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 _$ClientListResponse extends ClientListResponse { @override final BuiltList data; factory _$ClientListResponse( [void Function(ClientListResponseBuilder) updates]) => (new ClientListResponseBuilder()..update(updates)).build(); _$ClientListResponse._({this.data}) : super._() { BuiltValueNullFieldError.checkNotNull(data, '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; } int __hashCode; @override int get hashCode { return __hashCode ??= $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 { final $v = _$v; if ($v != null) { _data = $v.data.toBuilder(); _$v = null; } return this; } @override void replace(ClientListResponse other) { ArgumentError.checkNotNull(other, '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._() { BuiltValueNullFieldError.checkNotNull(data, '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; } int __hashCode; @override int get hashCode { return __hashCode ??= $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 { final $v = _$v; if ($v != null) { _data = $v.data.toBuilder(); _$v = null; } return this; } @override void replace(ClientItemResponse other) { ArgumentError.checkNotNull(other, '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 String groupId; @override final int loadedAt; @override final String name; @override final String displayName; @override final double balance; @override final double creditBalance; @override final double paidToDate; @override final String clientHash; @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 industryId; @override final String sizeId; @override final String vatNumber; @override final String idNumber; @override final String number; @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 SettingsEntity settings; @override final int lastLogin; @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 ledger; @override final BuiltList gatewayTokens; @override final BuiltList documents; @override final BuiltList systemLogs; @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 _$ClientEntity([void Function(ClientEntityBuilder) updates]) => (new ClientEntityBuilder()..update(updates)).build(); _$ClientEntity._( {this.groupId, this.loadedAt, this.name, this.displayName, this.balance, this.creditBalance, this.paidToDate, this.clientHash, this.address1, this.address2, this.city, this.state, this.postalCode, this.countryId, this.phone, this.privateNotes, this.publicNotes, this.website, this.industryId, this.sizeId, this.vatNumber, this.idNumber, this.number, this.shippingAddress1, this.shippingAddress2, this.shippingCity, this.shippingState, this.shippingPostalCode, this.shippingCountryId, this.settings, this.lastLogin, this.customValue1, this.customValue2, this.customValue3, this.customValue4, this.contacts, this.activities, this.ledger, this.gatewayTokens, this.documents, this.systemLogs, this.isChanged, this.createdAt, this.updatedAt, this.archivedAt, this.isDeleted, this.createdUserId, this.assignedUserId, this.id}) : super._() { BuiltValueNullFieldError.checkNotNull(groupId, 'ClientEntity', 'groupId'); BuiltValueNullFieldError.checkNotNull(name, 'ClientEntity', 'name'); BuiltValueNullFieldError.checkNotNull( displayName, 'ClientEntity', 'displayName'); BuiltValueNullFieldError.checkNotNull(balance, 'ClientEntity', 'balance'); BuiltValueNullFieldError.checkNotNull( creditBalance, 'ClientEntity', 'creditBalance'); BuiltValueNullFieldError.checkNotNull( paidToDate, 'ClientEntity', 'paidToDate'); BuiltValueNullFieldError.checkNotNull( clientHash, 'ClientEntity', 'clientHash'); BuiltValueNullFieldError.checkNotNull(address1, 'ClientEntity', 'address1'); BuiltValueNullFieldError.checkNotNull(address2, 'ClientEntity', 'address2'); BuiltValueNullFieldError.checkNotNull(city, 'ClientEntity', 'city'); BuiltValueNullFieldError.checkNotNull(state, 'ClientEntity', 'state'); BuiltValueNullFieldError.checkNotNull( postalCode, 'ClientEntity', 'postalCode'); BuiltValueNullFieldError.checkNotNull( countryId, 'ClientEntity', 'countryId'); BuiltValueNullFieldError.checkNotNull(phone, 'ClientEntity', 'phone'); BuiltValueNullFieldError.checkNotNull( privateNotes, 'ClientEntity', 'privateNotes'); BuiltValueNullFieldError.checkNotNull( publicNotes, 'ClientEntity', 'publicNotes'); BuiltValueNullFieldError.checkNotNull(website, 'ClientEntity', 'website'); BuiltValueNullFieldError.checkNotNull( industryId, 'ClientEntity', 'industryId'); BuiltValueNullFieldError.checkNotNull(sizeId, 'ClientEntity', 'sizeId'); BuiltValueNullFieldError.checkNotNull( vatNumber, 'ClientEntity', 'vatNumber'); BuiltValueNullFieldError.checkNotNull(idNumber, 'ClientEntity', 'idNumber'); BuiltValueNullFieldError.checkNotNull(number, 'ClientEntity', 'number'); BuiltValueNullFieldError.checkNotNull( shippingAddress1, 'ClientEntity', 'shippingAddress1'); BuiltValueNullFieldError.checkNotNull( shippingAddress2, 'ClientEntity', 'shippingAddress2'); BuiltValueNullFieldError.checkNotNull( shippingCity, 'ClientEntity', 'shippingCity'); BuiltValueNullFieldError.checkNotNull( shippingState, 'ClientEntity', 'shippingState'); BuiltValueNullFieldError.checkNotNull( shippingPostalCode, 'ClientEntity', 'shippingPostalCode'); BuiltValueNullFieldError.checkNotNull( shippingCountryId, 'ClientEntity', 'shippingCountryId'); BuiltValueNullFieldError.checkNotNull(settings, 'ClientEntity', 'settings'); BuiltValueNullFieldError.checkNotNull( lastLogin, 'ClientEntity', 'lastLogin'); BuiltValueNullFieldError.checkNotNull( customValue1, 'ClientEntity', 'customValue1'); BuiltValueNullFieldError.checkNotNull( customValue2, 'ClientEntity', 'customValue2'); BuiltValueNullFieldError.checkNotNull( customValue3, 'ClientEntity', 'customValue3'); BuiltValueNullFieldError.checkNotNull( customValue4, 'ClientEntity', 'customValue4'); BuiltValueNullFieldError.checkNotNull(contacts, 'ClientEntity', 'contacts'); BuiltValueNullFieldError.checkNotNull( activities, 'ClientEntity', 'activities'); BuiltValueNullFieldError.checkNotNull(ledger, 'ClientEntity', 'ledger'); BuiltValueNullFieldError.checkNotNull( gatewayTokens, 'ClientEntity', 'gatewayTokens'); BuiltValueNullFieldError.checkNotNull( documents, 'ClientEntity', 'documents'); BuiltValueNullFieldError.checkNotNull( systemLogs, 'ClientEntity', 'systemLogs'); BuiltValueNullFieldError.checkNotNull( createdAt, 'ClientEntity', 'createdAt'); BuiltValueNullFieldError.checkNotNull( updatedAt, 'ClientEntity', 'updatedAt'); BuiltValueNullFieldError.checkNotNull( archivedAt, 'ClientEntity', 'archivedAt'); BuiltValueNullFieldError.checkNotNull(id, 'ClientEntity', 'id'); } @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 && groupId == other.groupId && name == other.name && displayName == other.displayName && balance == other.balance && creditBalance == other.creditBalance && paidToDate == other.paidToDate && clientHash == other.clientHash && 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 && industryId == other.industryId && sizeId == other.sizeId && vatNumber == other.vatNumber && idNumber == other.idNumber && number == other.number && shippingAddress1 == other.shippingAddress1 && shippingAddress2 == other.shippingAddress2 && shippingCity == other.shippingCity && shippingState == other.shippingState && shippingPostalCode == other.shippingPostalCode && shippingCountryId == other.shippingCountryId && settings == other.settings && lastLogin == other.lastLogin && customValue1 == other.customValue1 && customValue2 == other.customValue2 && customValue3 == other.customValue3 && customValue4 == other.customValue4 && contacts == other.contacts && activities == other.activities && ledger == other.ledger && gatewayTokens == other.gatewayTokens && documents == other.documents && systemLogs == other.systemLogs && 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($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, groupId.hashCode), name.hashCode), displayName.hashCode), balance.hashCode), creditBalance.hashCode), paidToDate.hashCode), clientHash.hashCode), address1.hashCode), address2.hashCode), city.hashCode), state.hashCode), postalCode.hashCode), countryId.hashCode), phone.hashCode), privateNotes.hashCode), publicNotes.hashCode), website.hashCode), industryId.hashCode), sizeId.hashCode), vatNumber.hashCode), idNumber.hashCode), number.hashCode), shippingAddress1.hashCode), shippingAddress2.hashCode), shippingCity.hashCode), shippingState.hashCode), shippingPostalCode.hashCode), shippingCountryId.hashCode), settings.hashCode), lastLogin.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), contacts.hashCode), activities.hashCode), ledger.hashCode), gatewayTokens.hashCode), documents.hashCode), systemLogs.hashCode), isChanged.hashCode), createdAt.hashCode), updatedAt.hashCode), archivedAt.hashCode), isDeleted.hashCode), createdUserId.hashCode), assignedUserId.hashCode), id.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('ClientEntity') ..add('groupId', groupId) ..add('loadedAt', loadedAt) ..add('name', name) ..add('displayName', displayName) ..add('balance', balance) ..add('creditBalance', creditBalance) ..add('paidToDate', paidToDate) ..add('clientHash', clientHash) ..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('industryId', industryId) ..add('sizeId', sizeId) ..add('vatNumber', vatNumber) ..add('idNumber', idNumber) ..add('number', number) ..add('shippingAddress1', shippingAddress1) ..add('shippingAddress2', shippingAddress2) ..add('shippingCity', shippingCity) ..add('shippingState', shippingState) ..add('shippingPostalCode', shippingPostalCode) ..add('shippingCountryId', shippingCountryId) ..add('settings', settings) ..add('lastLogin', lastLogin) ..add('customValue1', customValue1) ..add('customValue2', customValue2) ..add('customValue3', customValue3) ..add('customValue4', customValue4) ..add('contacts', contacts) ..add('activities', activities) ..add('ledger', ledger) ..add('gatewayTokens', gatewayTokens) ..add('documents', documents) ..add('systemLogs', systemLogs) ..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 ClientEntityBuilder implements Builder { _$ClientEntity _$v; String _groupId; String get groupId => _$this._groupId; set groupId(String groupId) => _$this._groupId = groupId; 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 _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 _creditBalance; double get creditBalance => _$this._creditBalance; set creditBalance(double creditBalance) => _$this._creditBalance = creditBalance; double _paidToDate; double get paidToDate => _$this._paidToDate; set paidToDate(double paidToDate) => _$this._paidToDate = paidToDate; String _clientHash; String get clientHash => _$this._clientHash; set clientHash(String clientHash) => _$this._clientHash = clientHash; 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 _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; 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 _number; String get number => _$this._number; set number(String number) => _$this._number = number; 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; SettingsEntityBuilder _settings; SettingsEntityBuilder get settings => _$this._settings ??= new SettingsEntityBuilder(); set settings(SettingsEntityBuilder settings) => _$this._settings = settings; int _lastLogin; int get lastLogin => _$this._lastLogin; set lastLogin(int lastLogin) => _$this._lastLogin = lastLogin; 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 _ledger; ListBuilder get ledger => _$this._ledger ??= new ListBuilder(); set ledger(ListBuilder ledger) => _$this._ledger = ledger; ListBuilder _gatewayTokens; ListBuilder get gatewayTokens => _$this._gatewayTokens ??= new ListBuilder(); set gatewayTokens(ListBuilder gatewayTokens) => _$this._gatewayTokens = gatewayTokens; ListBuilder _documents; ListBuilder get documents => _$this._documents ??= new ListBuilder(); set documents(ListBuilder documents) => _$this._documents = documents; ListBuilder _systemLogs; ListBuilder get systemLogs => _$this._systemLogs ??= new ListBuilder(); set systemLogs(ListBuilder systemLogs) => _$this._systemLogs = systemLogs; 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; ClientEntityBuilder() { ClientEntity._initializeBuilder(this); } ClientEntityBuilder get _$this { final $v = _$v; if ($v != null) { _groupId = $v.groupId; _loadedAt = $v.loadedAt; _name = $v.name; _displayName = $v.displayName; _balance = $v.balance; _creditBalance = $v.creditBalance; _paidToDate = $v.paidToDate; _clientHash = $v.clientHash; _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; _industryId = $v.industryId; _sizeId = $v.sizeId; _vatNumber = $v.vatNumber; _idNumber = $v.idNumber; _number = $v.number; _shippingAddress1 = $v.shippingAddress1; _shippingAddress2 = $v.shippingAddress2; _shippingCity = $v.shippingCity; _shippingState = $v.shippingState; _shippingPostalCode = $v.shippingPostalCode; _shippingCountryId = $v.shippingCountryId; _settings = $v.settings.toBuilder(); _lastLogin = $v.lastLogin; _customValue1 = $v.customValue1; _customValue2 = $v.customValue2; _customValue3 = $v.customValue3; _customValue4 = $v.customValue4; _contacts = $v.contacts.toBuilder(); _activities = $v.activities.toBuilder(); _ledger = $v.ledger.toBuilder(); _gatewayTokens = $v.gatewayTokens.toBuilder(); _documents = $v.documents.toBuilder(); _systemLogs = $v.systemLogs.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(ClientEntity other) { ArgumentError.checkNotNull(other, '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._( groupId: BuiltValueNullFieldError.checkNotNull( groupId, 'ClientEntity', 'groupId'), loadedAt: loadedAt, name: BuiltValueNullFieldError.checkNotNull( name, 'ClientEntity', 'name'), displayName: BuiltValueNullFieldError.checkNotNull( displayName, 'ClientEntity', 'displayName'), balance: BuiltValueNullFieldError.checkNotNull( balance, 'ClientEntity', 'balance'), creditBalance: BuiltValueNullFieldError.checkNotNull( creditBalance, 'ClientEntity', 'creditBalance'), paidToDate: BuiltValueNullFieldError.checkNotNull( paidToDate, 'ClientEntity', 'paidToDate'), clientHash: BuiltValueNullFieldError.checkNotNull( clientHash, 'ClientEntity', 'clientHash'), address1: BuiltValueNullFieldError.checkNotNull( address1, 'ClientEntity', 'address1'), address2: BuiltValueNullFieldError.checkNotNull(address2, 'ClientEntity', 'address2'), city: BuiltValueNullFieldError.checkNotNull(city, 'ClientEntity', 'city'), state: BuiltValueNullFieldError.checkNotNull(state, 'ClientEntity', 'state'), postalCode: BuiltValueNullFieldError.checkNotNull(postalCode, 'ClientEntity', 'postalCode'), countryId: BuiltValueNullFieldError.checkNotNull(countryId, 'ClientEntity', 'countryId'), phone: BuiltValueNullFieldError.checkNotNull(phone, 'ClientEntity', 'phone'), privateNotes: BuiltValueNullFieldError.checkNotNull(privateNotes, 'ClientEntity', 'privateNotes'), publicNotes: BuiltValueNullFieldError.checkNotNull(publicNotes, 'ClientEntity', 'publicNotes'), website: BuiltValueNullFieldError.checkNotNull(website, 'ClientEntity', 'website'), industryId: BuiltValueNullFieldError.checkNotNull(industryId, 'ClientEntity', 'industryId'), sizeId: BuiltValueNullFieldError.checkNotNull(sizeId, 'ClientEntity', 'sizeId'), vatNumber: BuiltValueNullFieldError.checkNotNull(vatNumber, 'ClientEntity', 'vatNumber'), idNumber: BuiltValueNullFieldError.checkNotNull(idNumber, 'ClientEntity', 'idNumber'), number: BuiltValueNullFieldError.checkNotNull(number, 'ClientEntity', 'number'), shippingAddress1: BuiltValueNullFieldError.checkNotNull(shippingAddress1, 'ClientEntity', 'shippingAddress1'), shippingAddress2: BuiltValueNullFieldError.checkNotNull(shippingAddress2, 'ClientEntity', 'shippingAddress2'), shippingCity: BuiltValueNullFieldError.checkNotNull(shippingCity, 'ClientEntity', 'shippingCity'), shippingState: BuiltValueNullFieldError.checkNotNull(shippingState, 'ClientEntity', 'shippingState'), shippingPostalCode: BuiltValueNullFieldError.checkNotNull(shippingPostalCode, 'ClientEntity', 'shippingPostalCode'), shippingCountryId: BuiltValueNullFieldError.checkNotNull(shippingCountryId, 'ClientEntity', 'shippingCountryId'), settings: settings.build(), lastLogin: BuiltValueNullFieldError.checkNotNull(lastLogin, 'ClientEntity', 'lastLogin'), customValue1: BuiltValueNullFieldError.checkNotNull(customValue1, 'ClientEntity', 'customValue1'), customValue2: BuiltValueNullFieldError.checkNotNull(customValue2, 'ClientEntity', 'customValue2'), customValue3: BuiltValueNullFieldError.checkNotNull(customValue3, 'ClientEntity', 'customValue3'), customValue4: BuiltValueNullFieldError.checkNotNull(customValue4, 'ClientEntity', 'customValue4'), contacts: contacts.build(), activities: activities.build(), ledger: ledger.build(), gatewayTokens: gatewayTokens.build(), documents: documents.build(), systemLogs: systemLogs.build(), isChanged: isChanged, createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, 'ClientEntity', 'createdAt'), updatedAt: BuiltValueNullFieldError.checkNotNull(updatedAt, 'ClientEntity', 'updatedAt'), archivedAt: BuiltValueNullFieldError.checkNotNull(archivedAt, 'ClientEntity', 'archivedAt'), isDeleted: isDeleted, createdUserId: createdUserId, assignedUserId: assignedUserId, id: BuiltValueNullFieldError.checkNotNull(id, 'ClientEntity', 'id')); } catch (_) { String _$failedField; try { _$failedField = 'settings'; settings.build(); _$failedField = 'contacts'; contacts.build(); _$failedField = 'activities'; activities.build(); _$failedField = 'ledger'; ledger.build(); _$failedField = 'gatewayTokens'; gatewayTokens.build(); _$failedField = 'documents'; documents.build(); _$failedField = 'systemLogs'; systemLogs.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'ClientEntity', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$ClientContactEntity extends ClientContactEntity { @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 sendEmail; @override final String customValue1; @override final String customValue2; @override final String customValue3; @override final String customValue4; @override final int lastLogin; @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 _$ClientContactEntity( [void Function(ClientContactEntityBuilder) updates]) => (new ClientContactEntityBuilder()..update(updates)).build(); _$ClientContactEntity._( {this.firstName, this.lastName, this.email, this.password, this.phone, this.contactKey, this.isPrimary, this.sendEmail, this.customValue1, this.customValue2, this.customValue3, this.customValue4, this.lastLogin, this.link, this.isChanged, this.createdAt, this.updatedAt, this.archivedAt, this.isDeleted, this.createdUserId, this.assignedUserId, this.id}) : super._() { BuiltValueNullFieldError.checkNotNull( firstName, 'ClientContactEntity', 'firstName'); BuiltValueNullFieldError.checkNotNull( lastName, 'ClientContactEntity', 'lastName'); BuiltValueNullFieldError.checkNotNull( email, 'ClientContactEntity', 'email'); BuiltValueNullFieldError.checkNotNull( password, 'ClientContactEntity', 'password'); BuiltValueNullFieldError.checkNotNull( phone, 'ClientContactEntity', 'phone'); BuiltValueNullFieldError.checkNotNull( contactKey, 'ClientContactEntity', 'contactKey'); BuiltValueNullFieldError.checkNotNull( isPrimary, 'ClientContactEntity', 'isPrimary'); BuiltValueNullFieldError.checkNotNull( sendEmail, 'ClientContactEntity', 'sendEmail'); BuiltValueNullFieldError.checkNotNull( customValue1, 'ClientContactEntity', 'customValue1'); BuiltValueNullFieldError.checkNotNull( customValue2, 'ClientContactEntity', 'customValue2'); BuiltValueNullFieldError.checkNotNull( customValue3, 'ClientContactEntity', 'customValue3'); BuiltValueNullFieldError.checkNotNull( customValue4, 'ClientContactEntity', 'customValue4'); BuiltValueNullFieldError.checkNotNull( lastLogin, 'ClientContactEntity', 'lastLogin'); BuiltValueNullFieldError.checkNotNull(link, 'ClientContactEntity', 'link'); BuiltValueNullFieldError.checkNotNull( createdAt, 'ClientContactEntity', 'createdAt'); BuiltValueNullFieldError.checkNotNull( updatedAt, 'ClientContactEntity', 'updatedAt'); BuiltValueNullFieldError.checkNotNull( archivedAt, 'ClientContactEntity', 'archivedAt'); BuiltValueNullFieldError.checkNotNull(id, 'ClientContactEntity', 'id'); } @override ClientContactEntity rebuild( void Function(ClientContactEntityBuilder) updates) => (toBuilder()..update(updates)).build(); @override ClientContactEntityBuilder toBuilder() => new ClientContactEntityBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is ClientContactEntity && firstName == other.firstName && lastName == other.lastName && email == other.email && password == other.password && phone == other.phone && contactKey == other.contactKey && isPrimary == other.isPrimary && sendEmail == other.sendEmail && customValue1 == other.customValue1 && customValue2 == other.customValue2 && customValue3 == other.customValue3 && customValue4 == other.customValue4 && lastLogin == other.lastLogin && 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( $jc($jc($jc($jc(0, firstName.hashCode), lastName.hashCode), email.hashCode), password.hashCode), phone.hashCode), contactKey.hashCode), isPrimary.hashCode), sendEmail.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), lastLogin.hashCode), link.hashCode), isChanged.hashCode), createdAt.hashCode), updatedAt.hashCode), archivedAt.hashCode), isDeleted.hashCode), createdUserId.hashCode), assignedUserId.hashCode), id.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('ClientContactEntity') ..add('firstName', firstName) ..add('lastName', lastName) ..add('email', email) ..add('password', password) ..add('phone', phone) ..add('contactKey', contactKey) ..add('isPrimary', isPrimary) ..add('sendEmail', sendEmail) ..add('customValue1', customValue1) ..add('customValue2', customValue2) ..add('customValue3', customValue3) ..add('customValue4', customValue4) ..add('lastLogin', lastLogin) ..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 ClientContactEntityBuilder implements Builder { _$ClientContactEntity _$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 _sendEmail; bool get sendEmail => _$this._sendEmail; set sendEmail(bool sendEmail) => _$this._sendEmail = sendEmail; 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; int _lastLogin; int get lastLogin => _$this._lastLogin; set lastLogin(int lastLogin) => _$this._lastLogin = lastLogin; 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; ClientContactEntityBuilder(); ClientContactEntityBuilder get _$this { final $v = _$v; if ($v != null) { _firstName = $v.firstName; _lastName = $v.lastName; _email = $v.email; _password = $v.password; _phone = $v.phone; _contactKey = $v.contactKey; _isPrimary = $v.isPrimary; _sendEmail = $v.sendEmail; _customValue1 = $v.customValue1; _customValue2 = $v.customValue2; _customValue3 = $v.customValue3; _customValue4 = $v.customValue4; _lastLogin = $v.lastLogin; _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(ClientContactEntity other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$ClientContactEntity; } @override void update(void Function(ClientContactEntityBuilder) updates) { if (updates != null) updates(this); } @override _$ClientContactEntity build() { final _$result = _$v ?? new _$ClientContactEntity._( firstName: BuiltValueNullFieldError.checkNotNull( firstName, 'ClientContactEntity', 'firstName'), lastName: BuiltValueNullFieldError.checkNotNull( lastName, 'ClientContactEntity', 'lastName'), email: BuiltValueNullFieldError.checkNotNull( email, 'ClientContactEntity', 'email'), password: BuiltValueNullFieldError.checkNotNull( password, 'ClientContactEntity', 'password'), phone: BuiltValueNullFieldError.checkNotNull( phone, 'ClientContactEntity', 'phone'), contactKey: BuiltValueNullFieldError.checkNotNull( contactKey, 'ClientContactEntity', 'contactKey'), isPrimary: BuiltValueNullFieldError.checkNotNull( isPrimary, 'ClientContactEntity', 'isPrimary'), sendEmail: BuiltValueNullFieldError.checkNotNull( sendEmail, 'ClientContactEntity', 'sendEmail'), customValue1: BuiltValueNullFieldError.checkNotNull(customValue1, 'ClientContactEntity', 'customValue1'), customValue2: BuiltValueNullFieldError.checkNotNull(customValue2, 'ClientContactEntity', 'customValue2'), customValue3: BuiltValueNullFieldError.checkNotNull(customValue3, 'ClientContactEntity', 'customValue3'), customValue4: BuiltValueNullFieldError.checkNotNull(customValue4, 'ClientContactEntity', 'customValue4'), lastLogin: BuiltValueNullFieldError.checkNotNull(lastLogin, 'ClientContactEntity', 'lastLogin'), link: BuiltValueNullFieldError.checkNotNull(link, 'ClientContactEntity', 'link'), isChanged: isChanged, createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, 'ClientContactEntity', 'createdAt'), updatedAt: BuiltValueNullFieldError.checkNotNull(updatedAt, 'ClientContactEntity', 'updatedAt'), archivedAt: BuiltValueNullFieldError.checkNotNull(archivedAt, 'ClientContactEntity', 'archivedAt'), isDeleted: isDeleted, createdUserId: createdUserId, assignedUserId: assignedUserId, id: BuiltValueNullFieldError.checkNotNull(id, 'ClientContactEntity', '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