// GENERATED CODE - DO NOT MODIFY BY HAND part of 'expense_model.dart'; // ************************************************************************** // Generator: BuiltValueGenerator // ************************************************************************** // ignore_for_file: always_put_control_body_on_new_line // ignore_for_file: annotate_overrides // ignore_for_file: avoid_annotating_with_dynamic // ignore_for_file: avoid_returning_this // ignore_for_file: omit_local_variable_types // ignore_for_file: prefer_expression_function_bodies // ignore_for_file: sort_constructors_first Serializer _$expenseListResponseSerializer = new _$ExpenseListResponseSerializer(); Serializer _$expenseItemResponseSerializer = new _$ExpenseItemResponseSerializer(); Serializer _$expenseEntitySerializer = new _$ExpenseEntitySerializer(); Serializer _$expenseCategoryEntitySerializer = new _$ExpenseCategoryEntitySerializer(); class _$ExpenseListResponseSerializer implements StructuredSerializer { @override final Iterable types = const [ ExpenseListResponse, _$ExpenseListResponse ]; @override final String wireName = 'ExpenseListResponse'; @override Iterable serialize(Serializers serializers, ExpenseListResponse object, {FullType specifiedType: FullType.unspecified}) { final result = [ 'data', serializers.serialize(object.data, specifiedType: const FullType(BuiltList, const [const FullType(ExpenseEntity)])), ]; return result; } @override ExpenseListResponse deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType: FullType.unspecified}) { final result = new ExpenseListResponseBuilder(); 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(ExpenseEntity)])) as BuiltList); break; } } return result.build(); } } class _$ExpenseItemResponseSerializer implements StructuredSerializer { @override final Iterable types = const [ ExpenseItemResponse, _$ExpenseItemResponse ]; @override final String wireName = 'ExpenseItemResponse'; @override Iterable serialize(Serializers serializers, ExpenseItemResponse object, {FullType specifiedType: FullType.unspecified}) { final result = [ 'data', serializers.serialize(object.data, specifiedType: const FullType(ExpenseEntity)), ]; return result; } @override ExpenseItemResponse deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType: FullType.unspecified}) { final result = new ExpenseItemResponseBuilder(); 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(ExpenseEntity)) as ExpenseEntity); break; } } return result.build(); } } class _$ExpenseEntitySerializer implements StructuredSerializer { @override final Iterable types = const [ExpenseEntity, _$ExpenseEntity]; @override final String wireName = 'ExpenseEntity'; @override Iterable serialize(Serializers serializers, ExpenseEntity object, {FullType specifiedType: FullType.unspecified}) { final result = [ 'private_notes', serializers.serialize(object.privateNotes, specifiedType: const FullType(String)), 'public_notes', serializers.serialize(object.publicNotes, specifiedType: const FullType(String)), 'should_be_invoiced', serializers.serialize(object.shouldBeInvoiced, specifiedType: const FullType(bool)), 'transaction_id', serializers.serialize(object.transactionId, specifiedType: const FullType(String)), 'transaction_reference', serializers.serialize(object.transactionReference, specifiedType: const FullType(String)), 'bank_id', serializers.serialize(object.bankId, specifiedType: const FullType(String)), 'expense_currency_id', serializers.serialize(object.expenseCurrencyId, specifiedType: const FullType(int)), 'expense_category_id', serializers.serialize(object.exchangeCurrencyId, specifiedType: const FullType(int)), 'amount', serializers.serialize(object.amount, specifiedType: const FullType(double)), 'expense_date', serializers.serialize(object.expenseDate, specifiedType: const FullType(String)), 'exchange_rate', serializers.serialize(object.exchangeRate, specifiedType: const FullType(double)), 'invoiceCurrencyId', serializers.serialize(object.invoiceCurrencyId, specifiedType: const FullType(int)), 'tax_name1', serializers.serialize(object.taxName1, specifiedType: const FullType(String)), 'tax_rate1', serializers.serialize(object.taxRate1, specifiedType: const FullType(String)), 'tax_rate2', serializers.serialize(object.taxRate2, specifiedType: const FullType(String)), 'client_id', serializers.serialize(object.clientId, specifiedType: const FullType(int)), 'invoice_id', serializers.serialize(object.invoiceId, specifiedType: const FullType(int)), 'vendor_id', serializers.serialize(object.vendorId, specifiedType: const FullType(int)), 'custom_value1', serializers.serialize(object.customValue1, specifiedType: const FullType(String)), 'custom_value2', serializers.serialize(object.customValue2, specifiedType: const FullType(String)), 'expense_category', serializers.serialize(object.expenseCategories, specifiedType: const FullType( BuiltList, const [const FullType(ExpenseCategoryEntity)])), ]; if (object.id != null) { result ..add('id') ..add(serializers.serialize(object.id, 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))); } return result; } @override ExpenseEntity deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType: FullType.unspecified}) { final result = new ExpenseEntityBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final dynamic value = iterator.current; switch (key) { 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 'should_be_invoiced': result.shouldBeInvoiced = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'transaction_id': result.transactionId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'transaction_reference': result.transactionReference = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'bank_id': result.bankId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'expense_currency_id': result.expenseCurrencyId = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'expense_category_id': result.exchangeCurrencyId = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'amount': result.amount = serializers.deserialize(value, specifiedType: const FullType(double)) as double; break; case 'expense_date': result.expenseDate = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'exchange_rate': result.exchangeRate = serializers.deserialize(value, specifiedType: const FullType(double)) as double; break; case 'invoiceCurrencyId': result.invoiceCurrencyId = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'tax_name1': result.taxName1 = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'tax_rate1': result.taxRate1 = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'tax_rate2': result.taxRate2 = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'client_id': result.clientId = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'invoice_id': result.invoiceId = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'vendor_id': result.vendorId = 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 'expense_category': result.expenseCategories.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(ExpenseCategoryEntity)])) as BuiltList); break; case 'id': result.id = 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; } } return result.build(); } } class _$ExpenseCategoryEntitySerializer implements StructuredSerializer { @override final Iterable types = const [ ExpenseCategoryEntity, _$ExpenseCategoryEntity ]; @override final String wireName = 'ExpenseCategoryEntity'; @override Iterable serialize(Serializers serializers, ExpenseCategoryEntity object, {FullType specifiedType: FullType.unspecified}) { final result = [ 'name', serializers.serialize(object.name, specifiedType: const FullType(String)), ]; if (object.id != null) { result ..add('id') ..add(serializers.serialize(object.id, 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))); } return result; } @override ExpenseCategoryEntity deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType: FullType.unspecified}) { final result = new ExpenseCategoryEntityBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final dynamic value = iterator.current; switch (key) { case 'name': result.name = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'id': result.id = 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; } } return result.build(); } } class _$ExpenseListResponse extends ExpenseListResponse { @override final BuiltList data; factory _$ExpenseListResponse([void updates(ExpenseListResponseBuilder b)]) => (new ExpenseListResponseBuilder()..update(updates)).build(); _$ExpenseListResponse._({this.data}) : super._() { if (data == null) throw new BuiltValueNullFieldError('ExpenseListResponse', 'data'); } @override ExpenseListResponse rebuild(void updates(ExpenseListResponseBuilder b)) => (toBuilder()..update(updates)).build(); @override ExpenseListResponseBuilder toBuilder() => new ExpenseListResponseBuilder()..replace(this); @override bool operator ==(dynamic other) { if (identical(other, this)) return true; if (other is! ExpenseListResponse) return false; return data == other.data; } @override int get hashCode { return $jf($jc(0, data.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('ExpenseListResponse') ..add('data', data)) .toString(); } } class ExpenseListResponseBuilder implements Builder { _$ExpenseListResponse _$v; ListBuilder _data; ListBuilder get data => _$this._data ??= new ListBuilder(); set data(ListBuilder data) => _$this._data = data; ExpenseListResponseBuilder(); ExpenseListResponseBuilder get _$this { if (_$v != null) { _data = _$v.data?.toBuilder(); _$v = null; } return this; } @override void replace(ExpenseListResponse other) { if (other == null) throw new ArgumentError.notNull('other'); _$v = other as _$ExpenseListResponse; } @override void update(void updates(ExpenseListResponseBuilder b)) { if (updates != null) updates(this); } @override _$ExpenseListResponse build() { _$ExpenseListResponse _$result; try { _$result = _$v ?? new _$ExpenseListResponse._(data: data.build()); } catch (_) { String _$failedField; try { _$failedField = 'data'; data.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'ExpenseListResponse', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$ExpenseItemResponse extends ExpenseItemResponse { @override final ExpenseEntity data; factory _$ExpenseItemResponse([void updates(ExpenseItemResponseBuilder b)]) => (new ExpenseItemResponseBuilder()..update(updates)).build(); _$ExpenseItemResponse._({this.data}) : super._() { if (data == null) throw new BuiltValueNullFieldError('ExpenseItemResponse', 'data'); } @override ExpenseItemResponse rebuild(void updates(ExpenseItemResponseBuilder b)) => (toBuilder()..update(updates)).build(); @override ExpenseItemResponseBuilder toBuilder() => new ExpenseItemResponseBuilder()..replace(this); @override bool operator ==(dynamic other) { if (identical(other, this)) return true; if (other is! ExpenseItemResponse) return false; return data == other.data; } @override int get hashCode { return $jf($jc(0, data.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('ExpenseItemResponse') ..add('data', data)) .toString(); } } class ExpenseItemResponseBuilder implements Builder { _$ExpenseItemResponse _$v; ExpenseEntityBuilder _data; ExpenseEntityBuilder get data => _$this._data ??= new ExpenseEntityBuilder(); set data(ExpenseEntityBuilder data) => _$this._data = data; ExpenseItemResponseBuilder(); ExpenseItemResponseBuilder get _$this { if (_$v != null) { _data = _$v.data?.toBuilder(); _$v = null; } return this; } @override void replace(ExpenseItemResponse other) { if (other == null) throw new ArgumentError.notNull('other'); _$v = other as _$ExpenseItemResponse; } @override void update(void updates(ExpenseItemResponseBuilder b)) { if (updates != null) updates(this); } @override _$ExpenseItemResponse build() { _$ExpenseItemResponse _$result; try { _$result = _$v ?? new _$ExpenseItemResponse._(data: data.build()); } catch (_) { String _$failedField; try { _$failedField = 'data'; data.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'ExpenseItemResponse', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$ExpenseEntity extends ExpenseEntity { @override final String privateNotes; @override final String publicNotes; @override final bool shouldBeInvoiced; @override final String transactionId; @override final String transactionReference; @override final String bankId; @override final int expenseCurrencyId; @override final int exchangeCurrencyId; @override final double amount; @override final String expenseDate; @override final double exchangeRate; @override final int invoiceCurrencyId; @override final String taxName1; @override final String taxRate1; @override final String taxRate2; @override final int clientId; @override final int invoiceId; @override final int vendorId; @override final String customValue1; @override final String customValue2; @override final BuiltList expenseCategories; @override final int id; @override final int updatedAt; @override final int archivedAt; @override final bool isDeleted; factory _$ExpenseEntity([void updates(ExpenseEntityBuilder b)]) => (new ExpenseEntityBuilder()..update(updates)).build(); _$ExpenseEntity._( {this.privateNotes, this.publicNotes, this.shouldBeInvoiced, this.transactionId, this.transactionReference, this.bankId, this.expenseCurrencyId, this.exchangeCurrencyId, this.amount, this.expenseDate, this.exchangeRate, this.invoiceCurrencyId, this.taxName1, this.taxRate1, this.taxRate2, this.clientId, this.invoiceId, this.vendorId, this.customValue1, this.customValue2, this.expenseCategories, this.id, this.updatedAt, this.archivedAt, this.isDeleted}) : super._() { if (privateNotes == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'privateNotes'); if (publicNotes == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'publicNotes'); if (shouldBeInvoiced == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'shouldBeInvoiced'); if (transactionId == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'transactionId'); if (transactionReference == null) throw new BuiltValueNullFieldError( 'ExpenseEntity', 'transactionReference'); if (bankId == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'bankId'); if (expenseCurrencyId == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'expenseCurrencyId'); if (exchangeCurrencyId == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'exchangeCurrencyId'); if (amount == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'amount'); if (expenseDate == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'expenseDate'); if (exchangeRate == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'exchangeRate'); if (invoiceCurrencyId == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'invoiceCurrencyId'); if (taxName1 == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'taxName1'); if (taxRate1 == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'taxRate1'); if (taxRate2 == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'taxRate2'); if (clientId == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'clientId'); if (invoiceId == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'invoiceId'); if (vendorId == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'vendorId'); if (customValue1 == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'customValue1'); if (customValue2 == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'customValue2'); if (expenseCategories == null) throw new BuiltValueNullFieldError('ExpenseEntity', 'expenseCategories'); } @override ExpenseEntity rebuild(void updates(ExpenseEntityBuilder b)) => (toBuilder()..update(updates)).build(); @override ExpenseEntityBuilder toBuilder() => new ExpenseEntityBuilder()..replace(this); @override bool operator ==(dynamic other) { if (identical(other, this)) return true; if (other is! ExpenseEntity) return false; return privateNotes == other.privateNotes && publicNotes == other.publicNotes && shouldBeInvoiced == other.shouldBeInvoiced && transactionId == other.transactionId && transactionReference == other.transactionReference && bankId == other.bankId && expenseCurrencyId == other.expenseCurrencyId && exchangeCurrencyId == other.exchangeCurrencyId && amount == other.amount && expenseDate == other.expenseDate && exchangeRate == other.exchangeRate && invoiceCurrencyId == other.invoiceCurrencyId && taxName1 == other.taxName1 && taxRate1 == other.taxRate1 && taxRate2 == other.taxRate2 && clientId == other.clientId && invoiceId == other.invoiceId && vendorId == other.vendorId && customValue1 == other.customValue1 && customValue2 == other.customValue2 && expenseCategories == other.expenseCategories && id == other.id && updatedAt == other.updatedAt && archivedAt == other.archivedAt && isDeleted == other.isDeleted; } @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(0, privateNotes.hashCode), publicNotes.hashCode), shouldBeInvoiced.hashCode), transactionId.hashCode), transactionReference.hashCode), bankId.hashCode), expenseCurrencyId.hashCode), exchangeCurrencyId.hashCode), amount.hashCode), expenseDate.hashCode), exchangeRate.hashCode), invoiceCurrencyId.hashCode), taxName1.hashCode), taxRate1.hashCode), taxRate2.hashCode), clientId.hashCode), invoiceId.hashCode), vendorId.hashCode), customValue1.hashCode), customValue2.hashCode), expenseCategories.hashCode), id.hashCode), updatedAt.hashCode), archivedAt.hashCode), isDeleted.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('ExpenseEntity') ..add('privateNotes', privateNotes) ..add('publicNotes', publicNotes) ..add('shouldBeInvoiced', shouldBeInvoiced) ..add('transactionId', transactionId) ..add('transactionReference', transactionReference) ..add('bankId', bankId) ..add('expenseCurrencyId', expenseCurrencyId) ..add('exchangeCurrencyId', exchangeCurrencyId) ..add('amount', amount) ..add('expenseDate', expenseDate) ..add('exchangeRate', exchangeRate) ..add('invoiceCurrencyId', invoiceCurrencyId) ..add('taxName1', taxName1) ..add('taxRate1', taxRate1) ..add('taxRate2', taxRate2) ..add('clientId', clientId) ..add('invoiceId', invoiceId) ..add('vendorId', vendorId) ..add('customValue1', customValue1) ..add('customValue2', customValue2) ..add('expenseCategories', expenseCategories) ..add('id', id) ..add('updatedAt', updatedAt) ..add('archivedAt', archivedAt) ..add('isDeleted', isDeleted)) .toString(); } } class ExpenseEntityBuilder implements Builder { _$ExpenseEntity _$v; 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; bool _shouldBeInvoiced; bool get shouldBeInvoiced => _$this._shouldBeInvoiced; set shouldBeInvoiced(bool shouldBeInvoiced) => _$this._shouldBeInvoiced = shouldBeInvoiced; String _transactionId; String get transactionId => _$this._transactionId; set transactionId(String transactionId) => _$this._transactionId = transactionId; String _transactionReference; String get transactionReference => _$this._transactionReference; set transactionReference(String transactionReference) => _$this._transactionReference = transactionReference; String _bankId; String get bankId => _$this._bankId; set bankId(String bankId) => _$this._bankId = bankId; int _expenseCurrencyId; int get expenseCurrencyId => _$this._expenseCurrencyId; set expenseCurrencyId(int expenseCurrencyId) => _$this._expenseCurrencyId = expenseCurrencyId; int _exchangeCurrencyId; int get exchangeCurrencyId => _$this._exchangeCurrencyId; set exchangeCurrencyId(int exchangeCurrencyId) => _$this._exchangeCurrencyId = exchangeCurrencyId; double _amount; double get amount => _$this._amount; set amount(double amount) => _$this._amount = amount; String _expenseDate; String get expenseDate => _$this._expenseDate; set expenseDate(String expenseDate) => _$this._expenseDate = expenseDate; double _exchangeRate; double get exchangeRate => _$this._exchangeRate; set exchangeRate(double exchangeRate) => _$this._exchangeRate = exchangeRate; int _invoiceCurrencyId; int get invoiceCurrencyId => _$this._invoiceCurrencyId; set invoiceCurrencyId(int invoiceCurrencyId) => _$this._invoiceCurrencyId = invoiceCurrencyId; String _taxName1; String get taxName1 => _$this._taxName1; set taxName1(String taxName1) => _$this._taxName1 = taxName1; String _taxRate1; String get taxRate1 => _$this._taxRate1; set taxRate1(String taxRate1) => _$this._taxRate1 = taxRate1; String _taxRate2; String get taxRate2 => _$this._taxRate2; set taxRate2(String taxRate2) => _$this._taxRate2 = taxRate2; int _clientId; int get clientId => _$this._clientId; set clientId(int clientId) => _$this._clientId = clientId; int _invoiceId; int get invoiceId => _$this._invoiceId; set invoiceId(int invoiceId) => _$this._invoiceId = invoiceId; int _vendorId; int get vendorId => _$this._vendorId; set vendorId(int vendorId) => _$this._vendorId = vendorId; 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 _expenseCategories; ListBuilder get expenseCategories => _$this._expenseCategories ??= new ListBuilder(); set expenseCategories(ListBuilder expenseCategories) => _$this._expenseCategories = expenseCategories; int _id; int get id => _$this._id; set id(int id) => _$this._id = id; 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; ExpenseEntityBuilder(); ExpenseEntityBuilder get _$this { if (_$v != null) { _privateNotes = _$v.privateNotes; _publicNotes = _$v.publicNotes; _shouldBeInvoiced = _$v.shouldBeInvoiced; _transactionId = _$v.transactionId; _transactionReference = _$v.transactionReference; _bankId = _$v.bankId; _expenseCurrencyId = _$v.expenseCurrencyId; _exchangeCurrencyId = _$v.exchangeCurrencyId; _amount = _$v.amount; _expenseDate = _$v.expenseDate; _exchangeRate = _$v.exchangeRate; _invoiceCurrencyId = _$v.invoiceCurrencyId; _taxName1 = _$v.taxName1; _taxRate1 = _$v.taxRate1; _taxRate2 = _$v.taxRate2; _clientId = _$v.clientId; _invoiceId = _$v.invoiceId; _vendorId = _$v.vendorId; _customValue1 = _$v.customValue1; _customValue2 = _$v.customValue2; _expenseCategories = _$v.expenseCategories?.toBuilder(); _id = _$v.id; _updatedAt = _$v.updatedAt; _archivedAt = _$v.archivedAt; _isDeleted = _$v.isDeleted; _$v = null; } return this; } @override void replace(ExpenseEntity other) { if (other == null) throw new ArgumentError.notNull('other'); _$v = other as _$ExpenseEntity; } @override void update(void updates(ExpenseEntityBuilder b)) { if (updates != null) updates(this); } @override _$ExpenseEntity build() { _$ExpenseEntity _$result; try { _$result = _$v ?? new _$ExpenseEntity._( privateNotes: privateNotes, publicNotes: publicNotes, shouldBeInvoiced: shouldBeInvoiced, transactionId: transactionId, transactionReference: transactionReference, bankId: bankId, expenseCurrencyId: expenseCurrencyId, exchangeCurrencyId: exchangeCurrencyId, amount: amount, expenseDate: expenseDate, exchangeRate: exchangeRate, invoiceCurrencyId: invoiceCurrencyId, taxName1: taxName1, taxRate1: taxRate1, taxRate2: taxRate2, clientId: clientId, invoiceId: invoiceId, vendorId: vendorId, customValue1: customValue1, customValue2: customValue2, expenseCategories: expenseCategories.build(), id: id, updatedAt: updatedAt, archivedAt: archivedAt, isDeleted: isDeleted); } catch (_) { String _$failedField; try { _$failedField = 'expenseCategories'; expenseCategories.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'ExpenseEntity', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$ExpenseCategoryEntity extends ExpenseCategoryEntity { @override final String name; @override final int id; @override final int updatedAt; @override final int archivedAt; @override final bool isDeleted; factory _$ExpenseCategoryEntity( [void updates(ExpenseCategoryEntityBuilder b)]) => (new ExpenseCategoryEntityBuilder()..update(updates)).build(); _$ExpenseCategoryEntity._( {this.name, this.id, this.updatedAt, this.archivedAt, this.isDeleted}) : super._() { if (name == null) throw new BuiltValueNullFieldError('ExpenseCategoryEntity', 'name'); } @override ExpenseCategoryEntity rebuild(void updates(ExpenseCategoryEntityBuilder b)) => (toBuilder()..update(updates)).build(); @override ExpenseCategoryEntityBuilder toBuilder() => new ExpenseCategoryEntityBuilder()..replace(this); @override bool operator ==(dynamic other) { if (identical(other, this)) return true; if (other is! ExpenseCategoryEntity) return false; return name == other.name && id == other.id && updatedAt == other.updatedAt && archivedAt == other.archivedAt && isDeleted == other.isDeleted; } @override int get hashCode { return $jf($jc( $jc($jc($jc($jc(0, name.hashCode), id.hashCode), updatedAt.hashCode), archivedAt.hashCode), isDeleted.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('ExpenseCategoryEntity') ..add('name', name) ..add('id', id) ..add('updatedAt', updatedAt) ..add('archivedAt', archivedAt) ..add('isDeleted', isDeleted)) .toString(); } } class ExpenseCategoryEntityBuilder implements Builder { _$ExpenseCategoryEntity _$v; String _name; String get name => _$this._name; set name(String name) => _$this._name = name; int _id; int get id => _$this._id; set id(int id) => _$this._id = id; 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; ExpenseCategoryEntityBuilder(); ExpenseCategoryEntityBuilder get _$this { if (_$v != null) { _name = _$v.name; _id = _$v.id; _updatedAt = _$v.updatedAt; _archivedAt = _$v.archivedAt; _isDeleted = _$v.isDeleted; _$v = null; } return this; } @override void replace(ExpenseCategoryEntity other) { if (other == null) throw new ArgumentError.notNull('other'); _$v = other as _$ExpenseCategoryEntity; } @override void update(void updates(ExpenseCategoryEntityBuilder b)) { if (updates != null) updates(this); } @override _$ExpenseCategoryEntity build() { final _$result = _$v ?? new _$ExpenseCategoryEntity._( name: name, id: id, updatedAt: updatedAt, archivedAt: archivedAt, isDeleted: isDeleted); replace(_$result); return _$result; } }