// GENERATED CODE - DO NOT MODIFY BY HAND part of 'payment_model.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** Serializer _$paymentListResponseSerializer = new _$PaymentListResponseSerializer(); Serializer _$paymentItemResponseSerializer = new _$PaymentItemResponseSerializer(); Serializer _$paymentEntitySerializer = new _$PaymentEntitySerializer(); Serializer _$paymentableEntitySerializer = new _$PaymentableEntitySerializer(); class _$PaymentListResponseSerializer implements StructuredSerializer { @override final Iterable types = const [ PaymentListResponse, _$PaymentListResponse ]; @override final String wireName = 'PaymentListResponse'; @override Iterable serialize( Serializers serializers, PaymentListResponse object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'data', serializers.serialize(object.data, specifiedType: const FullType(BuiltList, const [const FullType(PaymentEntity)])), ]; return result; } @override PaymentListResponse deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new PaymentListResponseBuilder(); 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(PaymentEntity)]))! as BuiltList); break; } } return result.build(); } } class _$PaymentItemResponseSerializer implements StructuredSerializer { @override final Iterable types = const [ PaymentItemResponse, _$PaymentItemResponse ]; @override final String wireName = 'PaymentItemResponse'; @override Iterable serialize( Serializers serializers, PaymentItemResponse object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'data', serializers.serialize(object.data, specifiedType: const FullType(PaymentEntity)), ]; return result; } @override PaymentItemResponse deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new PaymentItemResponseBuilder(); 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(PaymentEntity))! as PaymentEntity); break; } } return result.build(); } } class _$PaymentEntitySerializer implements StructuredSerializer { @override final Iterable types = const [PaymentEntity, _$PaymentEntity]; @override final String wireName = 'PaymentEntity'; @override Iterable serialize(Serializers serializers, PaymentEntity object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'amount', serializers.serialize(object.amount, specifiedType: const FullType(double)), 'applied', serializers.serialize(object.applied, specifiedType: const FullType(double)), 'refunded', serializers.serialize(object.refunded, specifiedType: const FullType(double)), 'number', serializers.serialize(object.number, specifiedType: const FullType(String)), 'client_id', serializers.serialize(object.clientId, specifiedType: const FullType(String)), 'status_id', serializers.serialize(object.statusId, specifiedType: const FullType(String)), 'transaction_reference', serializers.serialize(object.transactionReference, specifiedType: const FullType(String)), 'date', serializers.serialize(object.date, specifiedType: const FullType(String)), 'type_id', serializers.serialize(object.typeId, specifiedType: const FullType(String)), 'private_notes', serializers.serialize(object.privateNotes, specifiedType: const FullType(String)), 'custom_value1', serializers.serialize(object.customValue1, specifiedType: const FullType(String)), 'custom_value2', serializers.serialize(object.customValue2, specifiedType: const FullType(String)), 'custom_value3', serializers.serialize(object.customValue3, specifiedType: const FullType(String)), 'custom_value4', serializers.serialize(object.customValue4, specifiedType: const FullType(String)), 'exchange_rate', serializers.serialize(object.exchangeRate, specifiedType: const FullType(double)), 'exchange_currency_id', serializers.serialize(object.exchangeCurrencyId, specifiedType: const FullType(String)), 'is_manual', serializers.serialize(object.isManual, specifiedType: const FullType(bool)), 'project_id', serializers.serialize(object.projectId, specifiedType: const FullType(String)), 'vendor_id', serializers.serialize(object.vendorId, specifiedType: const FullType(String)), 'invitation_id', serializers.serialize(object.invitationId, specifiedType: const FullType(String)), 'transaction_id', serializers.serialize(object.transactionId, specifiedType: const FullType(String)), 'client_contact_id', serializers.serialize(object.clientContactId, specifiedType: const FullType(String)), 'company_gateway_id', serializers.serialize(object.companyGatewayId, specifiedType: const FullType(String)), 'currency_id', serializers.serialize(object.currencyId, specifiedType: const FullType(String)), 'gateway_type_id', serializers.serialize(object.gatewayTypeId, specifiedType: const FullType(String)), 'paymentables', serializers.serialize(object.paymentables, specifiedType: const FullType( BuiltList, const [const FullType(PaymentableEntity)])), 'invoices', serializers.serialize(object.invoices, specifiedType: const FullType( BuiltList, const [const FullType(PaymentableEntity)])), 'credits', serializers.serialize(object.credits, specifiedType: const FullType( BuiltList, const [const FullType(PaymentableEntity)])), '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.idempotencyKey; if (value != null) { result ..add('idempotency_key') ..add(serializers.serialize(value, specifiedType: const FullType(String))); } value = object.isApplying; if (value != null) { result ..add('isApplying') ..add( serializers.serialize(value, specifiedType: const FullType(bool))); } value = object.sendEmail; if (value != null) { result ..add('sendEmail') ..add( serializers.serialize(value, specifiedType: const FullType(bool))); } value = object.gatewayRefund; if (value != null) { result ..add('gatewayRefund') ..add( serializers.serialize(value, specifiedType: const FullType(bool))); } 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 PaymentEntity deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new PaymentEntityBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current! as String; iterator.moveNext(); final Object? value = iterator.current; switch (key) { case 'amount': result.amount = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'applied': result.applied = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'refunded': result.refunded = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'number': result.number = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'idempotency_key': result.idempotencyKey = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; break; case 'client_id': result.clientId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'status_id': result.statusId = 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 'date': result.date = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'type_id': result.typeId = 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 '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 'exchange_rate': result.exchangeRate = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'exchange_currency_id': result.exchangeCurrencyId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'is_manual': result.isManual = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; break; case 'project_id': result.projectId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'vendor_id': result.vendorId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'invitation_id': result.invitationId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'transaction_id': result.transactionId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'client_contact_id': result.clientContactId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'company_gateway_id': result.companyGatewayId = 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 'gateway_type_id': result.gatewayTypeId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'isApplying': result.isApplying = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; break; case 'sendEmail': result.sendEmail = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; break; case 'gatewayRefund': result.gatewayRefund = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; break; case 'paymentables': result.paymentables.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(PaymentableEntity)]))! as BuiltList); break; case 'invoices': result.invoices.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(PaymentableEntity)]))! as BuiltList); break; case 'credits': result.credits.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(PaymentableEntity)]))! 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 _$PaymentableEntitySerializer implements StructuredSerializer { @override final Iterable types = const [PaymentableEntity, _$PaymentableEntity]; @override final String wireName = 'PaymentableEntity'; @override Iterable serialize(Serializers serializers, PaymentableEntity object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'amount', serializers.serialize(object.amount, specifiedType: const FullType(double)), 'id', serializers.serialize(object.id, specifiedType: const FullType(String)), ]; Object? value; value = object.createdAt; if (value != null) { result ..add('created_at') ..add(serializers.serialize(value, specifiedType: const FullType(int))); } value = object.updatedAt; if (value != null) { result ..add('updated_at') ..add(serializers.serialize(value, specifiedType: const FullType(int))); } value = object.invoiceId; if (value != null) { result ..add('invoice_id') ..add(serializers.serialize(value, specifiedType: const FullType(String))); } value = object.creditId; if (value != null) { result ..add('credit_id') ..add(serializers.serialize(value, specifiedType: const FullType(String))); } return result; } @override PaymentableEntity deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new PaymentableEntityBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current! as String; iterator.moveNext(); final Object? value = iterator.current; switch (key) { 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 'invoice_id': result.invoiceId = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; break; case 'credit_id': result.creditId = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; break; case 'amount': result.amount = serializers.deserialize(value, specifiedType: const FullType(double))! as double; break; case 'id': result.id = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; } } return result.build(); } } class _$PaymentListResponse extends PaymentListResponse { @override final BuiltList data; factory _$PaymentListResponse( [void Function(PaymentListResponseBuilder)? updates]) => (new PaymentListResponseBuilder()..update(updates))._build(); _$PaymentListResponse._({required this.data}) : super._() { BuiltValueNullFieldError.checkNotNull(data, r'PaymentListResponse', 'data'); } @override PaymentListResponse rebuild( void Function(PaymentListResponseBuilder) updates) => (toBuilder()..update(updates)).build(); @override PaymentListResponseBuilder toBuilder() => new PaymentListResponseBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is PaymentListResponse && data == other.data; } int? __hashCode; @override int get hashCode { if (__hashCode != null) return __hashCode!; var _$hash = 0; _$hash = $jc(_$hash, data.hashCode); _$hash = $jf(_$hash); return __hashCode ??= _$hash; } @override String toString() { return (newBuiltValueToStringHelper(r'PaymentListResponse') ..add('data', data)) .toString(); } } class PaymentListResponseBuilder implements Builder { _$PaymentListResponse? _$v; ListBuilder? _data; ListBuilder get data => _$this._data ??= new ListBuilder(); set data(ListBuilder? data) => _$this._data = data; PaymentListResponseBuilder(); PaymentListResponseBuilder get _$this { final $v = _$v; if ($v != null) { _data = $v.data.toBuilder(); _$v = null; } return this; } @override void replace(PaymentListResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentListResponse; } @override void update(void Function(PaymentListResponseBuilder)? updates) { if (updates != null) updates(this); } @override PaymentListResponse build() => _build(); _$PaymentListResponse _build() { _$PaymentListResponse _$result; try { _$result = _$v ?? new _$PaymentListResponse._(data: data.build()); } catch (_) { late String _$failedField; try { _$failedField = 'data'; data.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'PaymentListResponse', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$PaymentItemResponse extends PaymentItemResponse { @override final PaymentEntity data; factory _$PaymentItemResponse( [void Function(PaymentItemResponseBuilder)? updates]) => (new PaymentItemResponseBuilder()..update(updates))._build(); _$PaymentItemResponse._({required this.data}) : super._() { BuiltValueNullFieldError.checkNotNull(data, r'PaymentItemResponse', 'data'); } @override PaymentItemResponse rebuild( void Function(PaymentItemResponseBuilder) updates) => (toBuilder()..update(updates)).build(); @override PaymentItemResponseBuilder toBuilder() => new PaymentItemResponseBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is PaymentItemResponse && data == other.data; } int? __hashCode; @override int get hashCode { if (__hashCode != null) return __hashCode!; var _$hash = 0; _$hash = $jc(_$hash, data.hashCode); _$hash = $jf(_$hash); return __hashCode ??= _$hash; } @override String toString() { return (newBuiltValueToStringHelper(r'PaymentItemResponse') ..add('data', data)) .toString(); } } class PaymentItemResponseBuilder implements Builder { _$PaymentItemResponse? _$v; PaymentEntityBuilder? _data; PaymentEntityBuilder get data => _$this._data ??= new PaymentEntityBuilder(); set data(PaymentEntityBuilder? data) => _$this._data = data; PaymentItemResponseBuilder(); PaymentItemResponseBuilder get _$this { final $v = _$v; if ($v != null) { _data = $v.data.toBuilder(); _$v = null; } return this; } @override void replace(PaymentItemResponse other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentItemResponse; } @override void update(void Function(PaymentItemResponseBuilder)? updates) { if (updates != null) updates(this); } @override PaymentItemResponse build() => _build(); _$PaymentItemResponse _build() { _$PaymentItemResponse _$result; try { _$result = _$v ?? new _$PaymentItemResponse._(data: data.build()); } catch (_) { late String _$failedField; try { _$failedField = 'data'; data.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'PaymentItemResponse', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$PaymentEntity extends PaymentEntity { @override final double amount; @override final double applied; @override final double refunded; @override final String number; @override final String? idempotencyKey; @override final String clientId; @override final String statusId; @override final String transactionReference; @override final String date; @override final String typeId; @override final String privateNotes; @override final String customValue1; @override final String customValue2; @override final String customValue3; @override final String customValue4; @override final double exchangeRate; @override final String exchangeCurrencyId; @override final bool isManual; @override final String projectId; @override final String vendorId; @override final String invitationId; @override final String transactionId; @override final String clientContactId; @override final String companyGatewayId; @override final String currencyId; @override final String gatewayTypeId; @override final bool? isApplying; @override final bool? sendEmail; @override final bool? gatewayRefund; @override final BuiltList paymentables; @override final BuiltList invoices; @override final BuiltList credits; @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 _$PaymentEntity([void Function(PaymentEntityBuilder)? updates]) => (new PaymentEntityBuilder()..update(updates))._build(); _$PaymentEntity._( {required this.amount, required this.applied, required this.refunded, required this.number, this.idempotencyKey, required this.clientId, required this.statusId, required this.transactionReference, required this.date, required this.typeId, required this.privateNotes, required this.customValue1, required this.customValue2, required this.customValue3, required this.customValue4, required this.exchangeRate, required this.exchangeCurrencyId, required this.isManual, required this.projectId, required this.vendorId, required this.invitationId, required this.transactionId, required this.clientContactId, required this.companyGatewayId, required this.currencyId, required this.gatewayTypeId, this.isApplying, this.sendEmail, this.gatewayRefund, required this.paymentables, required this.invoices, required this.credits, this.isChanged, required this.createdAt, required this.updatedAt, required this.archivedAt, this.isDeleted, this.createdUserId, this.assignedUserId, required this.id}) : super._() { BuiltValueNullFieldError.checkNotNull(amount, r'PaymentEntity', 'amount'); BuiltValueNullFieldError.checkNotNull(applied, r'PaymentEntity', 'applied'); BuiltValueNullFieldError.checkNotNull( refunded, r'PaymentEntity', 'refunded'); BuiltValueNullFieldError.checkNotNull(number, r'PaymentEntity', 'number'); BuiltValueNullFieldError.checkNotNull( clientId, r'PaymentEntity', 'clientId'); BuiltValueNullFieldError.checkNotNull( statusId, r'PaymentEntity', 'statusId'); BuiltValueNullFieldError.checkNotNull( transactionReference, r'PaymentEntity', 'transactionReference'); BuiltValueNullFieldError.checkNotNull(date, r'PaymentEntity', 'date'); BuiltValueNullFieldError.checkNotNull(typeId, r'PaymentEntity', 'typeId'); BuiltValueNullFieldError.checkNotNull( privateNotes, r'PaymentEntity', 'privateNotes'); BuiltValueNullFieldError.checkNotNull( customValue1, r'PaymentEntity', 'customValue1'); BuiltValueNullFieldError.checkNotNull( customValue2, r'PaymentEntity', 'customValue2'); BuiltValueNullFieldError.checkNotNull( customValue3, r'PaymentEntity', 'customValue3'); BuiltValueNullFieldError.checkNotNull( customValue4, r'PaymentEntity', 'customValue4'); BuiltValueNullFieldError.checkNotNull( exchangeRate, r'PaymentEntity', 'exchangeRate'); BuiltValueNullFieldError.checkNotNull( exchangeCurrencyId, r'PaymentEntity', 'exchangeCurrencyId'); BuiltValueNullFieldError.checkNotNull( isManual, r'PaymentEntity', 'isManual'); BuiltValueNullFieldError.checkNotNull( projectId, r'PaymentEntity', 'projectId'); BuiltValueNullFieldError.checkNotNull( vendorId, r'PaymentEntity', 'vendorId'); BuiltValueNullFieldError.checkNotNull( invitationId, r'PaymentEntity', 'invitationId'); BuiltValueNullFieldError.checkNotNull( transactionId, r'PaymentEntity', 'transactionId'); BuiltValueNullFieldError.checkNotNull( clientContactId, r'PaymentEntity', 'clientContactId'); BuiltValueNullFieldError.checkNotNull( companyGatewayId, r'PaymentEntity', 'companyGatewayId'); BuiltValueNullFieldError.checkNotNull( currencyId, r'PaymentEntity', 'currencyId'); BuiltValueNullFieldError.checkNotNull( gatewayTypeId, r'PaymentEntity', 'gatewayTypeId'); BuiltValueNullFieldError.checkNotNull( paymentables, r'PaymentEntity', 'paymentables'); BuiltValueNullFieldError.checkNotNull( invoices, r'PaymentEntity', 'invoices'); BuiltValueNullFieldError.checkNotNull(credits, r'PaymentEntity', 'credits'); BuiltValueNullFieldError.checkNotNull( createdAt, r'PaymentEntity', 'createdAt'); BuiltValueNullFieldError.checkNotNull( updatedAt, r'PaymentEntity', 'updatedAt'); BuiltValueNullFieldError.checkNotNull( archivedAt, r'PaymentEntity', 'archivedAt'); BuiltValueNullFieldError.checkNotNull(id, r'PaymentEntity', 'id'); } @override PaymentEntity rebuild(void Function(PaymentEntityBuilder) updates) => (toBuilder()..update(updates)).build(); @override PaymentEntityBuilder toBuilder() => new PaymentEntityBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is PaymentEntity && amount == other.amount && applied == other.applied && refunded == other.refunded && number == other.number && idempotencyKey == other.idempotencyKey && clientId == other.clientId && statusId == other.statusId && transactionReference == other.transactionReference && date == other.date && typeId == other.typeId && privateNotes == other.privateNotes && customValue1 == other.customValue1 && customValue2 == other.customValue2 && customValue3 == other.customValue3 && customValue4 == other.customValue4 && exchangeRate == other.exchangeRate && exchangeCurrencyId == other.exchangeCurrencyId && isManual == other.isManual && projectId == other.projectId && vendorId == other.vendorId && invitationId == other.invitationId && transactionId == other.transactionId && clientContactId == other.clientContactId && companyGatewayId == other.companyGatewayId && currencyId == other.currencyId && gatewayTypeId == other.gatewayTypeId && isApplying == other.isApplying && sendEmail == other.sendEmail && gatewayRefund == other.gatewayRefund && paymentables == other.paymentables && invoices == other.invoices && credits == other.credits && 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 { if (__hashCode != null) return __hashCode!; var _$hash = 0; _$hash = $jc(_$hash, amount.hashCode); _$hash = $jc(_$hash, applied.hashCode); _$hash = $jc(_$hash, refunded.hashCode); _$hash = $jc(_$hash, number.hashCode); _$hash = $jc(_$hash, idempotencyKey.hashCode); _$hash = $jc(_$hash, clientId.hashCode); _$hash = $jc(_$hash, statusId.hashCode); _$hash = $jc(_$hash, transactionReference.hashCode); _$hash = $jc(_$hash, date.hashCode); _$hash = $jc(_$hash, typeId.hashCode); _$hash = $jc(_$hash, privateNotes.hashCode); _$hash = $jc(_$hash, customValue1.hashCode); _$hash = $jc(_$hash, customValue2.hashCode); _$hash = $jc(_$hash, customValue3.hashCode); _$hash = $jc(_$hash, customValue4.hashCode); _$hash = $jc(_$hash, exchangeRate.hashCode); _$hash = $jc(_$hash, exchangeCurrencyId.hashCode); _$hash = $jc(_$hash, isManual.hashCode); _$hash = $jc(_$hash, projectId.hashCode); _$hash = $jc(_$hash, vendorId.hashCode); _$hash = $jc(_$hash, invitationId.hashCode); _$hash = $jc(_$hash, transactionId.hashCode); _$hash = $jc(_$hash, clientContactId.hashCode); _$hash = $jc(_$hash, companyGatewayId.hashCode); _$hash = $jc(_$hash, currencyId.hashCode); _$hash = $jc(_$hash, gatewayTypeId.hashCode); _$hash = $jc(_$hash, isApplying.hashCode); _$hash = $jc(_$hash, sendEmail.hashCode); _$hash = $jc(_$hash, gatewayRefund.hashCode); _$hash = $jc(_$hash, paymentables.hashCode); _$hash = $jc(_$hash, invoices.hashCode); _$hash = $jc(_$hash, credits.hashCode); _$hash = $jc(_$hash, isChanged.hashCode); _$hash = $jc(_$hash, createdAt.hashCode); _$hash = $jc(_$hash, updatedAt.hashCode); _$hash = $jc(_$hash, archivedAt.hashCode); _$hash = $jc(_$hash, isDeleted.hashCode); _$hash = $jc(_$hash, createdUserId.hashCode); _$hash = $jc(_$hash, assignedUserId.hashCode); _$hash = $jc(_$hash, id.hashCode); _$hash = $jf(_$hash); return __hashCode ??= _$hash; } @override String toString() { return (newBuiltValueToStringHelper(r'PaymentEntity') ..add('amount', amount) ..add('applied', applied) ..add('refunded', refunded) ..add('number', number) ..add('idempotencyKey', idempotencyKey) ..add('clientId', clientId) ..add('statusId', statusId) ..add('transactionReference', transactionReference) ..add('date', date) ..add('typeId', typeId) ..add('privateNotes', privateNotes) ..add('customValue1', customValue1) ..add('customValue2', customValue2) ..add('customValue3', customValue3) ..add('customValue4', customValue4) ..add('exchangeRate', exchangeRate) ..add('exchangeCurrencyId', exchangeCurrencyId) ..add('isManual', isManual) ..add('projectId', projectId) ..add('vendorId', vendorId) ..add('invitationId', invitationId) ..add('transactionId', transactionId) ..add('clientContactId', clientContactId) ..add('companyGatewayId', companyGatewayId) ..add('currencyId', currencyId) ..add('gatewayTypeId', gatewayTypeId) ..add('isApplying', isApplying) ..add('sendEmail', sendEmail) ..add('gatewayRefund', gatewayRefund) ..add('paymentables', paymentables) ..add('invoices', invoices) ..add('credits', credits) ..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 PaymentEntityBuilder implements Builder { _$PaymentEntity? _$v; double? _amount; double? get amount => _$this._amount; set amount(double? amount) => _$this._amount = amount; double? _applied; double? get applied => _$this._applied; set applied(double? applied) => _$this._applied = applied; double? _refunded; double? get refunded => _$this._refunded; set refunded(double? refunded) => _$this._refunded = refunded; String? _number; String? get number => _$this._number; set number(String? number) => _$this._number = number; String? _idempotencyKey; String? get idempotencyKey => _$this._idempotencyKey; set idempotencyKey(String? idempotencyKey) => _$this._idempotencyKey = idempotencyKey; String? _clientId; String? get clientId => _$this._clientId; set clientId(String? clientId) => _$this._clientId = clientId; String? _statusId; String? get statusId => _$this._statusId; set statusId(String? statusId) => _$this._statusId = statusId; String? _transactionReference; String? get transactionReference => _$this._transactionReference; set transactionReference(String? transactionReference) => _$this._transactionReference = transactionReference; String? _date; String? get date => _$this._date; set date(String? date) => _$this._date = date; String? _typeId; String? get typeId => _$this._typeId; set typeId(String? typeId) => _$this._typeId = typeId; String? _privateNotes; String? get privateNotes => _$this._privateNotes; set privateNotes(String? privateNotes) => _$this._privateNotes = privateNotes; 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; double? _exchangeRate; double? get exchangeRate => _$this._exchangeRate; set exchangeRate(double? exchangeRate) => _$this._exchangeRate = exchangeRate; String? _exchangeCurrencyId; String? get exchangeCurrencyId => _$this._exchangeCurrencyId; set exchangeCurrencyId(String? exchangeCurrencyId) => _$this._exchangeCurrencyId = exchangeCurrencyId; bool? _isManual; bool? get isManual => _$this._isManual; set isManual(bool? isManual) => _$this._isManual = isManual; String? _projectId; String? get projectId => _$this._projectId; set projectId(String? projectId) => _$this._projectId = projectId; String? _vendorId; String? get vendorId => _$this._vendorId; set vendorId(String? vendorId) => _$this._vendorId = vendorId; String? _invitationId; String? get invitationId => _$this._invitationId; set invitationId(String? invitationId) => _$this._invitationId = invitationId; String? _transactionId; String? get transactionId => _$this._transactionId; set transactionId(String? transactionId) => _$this._transactionId = transactionId; String? _clientContactId; String? get clientContactId => _$this._clientContactId; set clientContactId(String? clientContactId) => _$this._clientContactId = clientContactId; String? _companyGatewayId; String? get companyGatewayId => _$this._companyGatewayId; set companyGatewayId(String? companyGatewayId) => _$this._companyGatewayId = companyGatewayId; String? _currencyId; String? get currencyId => _$this._currencyId; set currencyId(String? currencyId) => _$this._currencyId = currencyId; String? _gatewayTypeId; String? get gatewayTypeId => _$this._gatewayTypeId; set gatewayTypeId(String? gatewayTypeId) => _$this._gatewayTypeId = gatewayTypeId; bool? _isApplying; bool? get isApplying => _$this._isApplying; set isApplying(bool? isApplying) => _$this._isApplying = isApplying; bool? _sendEmail; bool? get sendEmail => _$this._sendEmail; set sendEmail(bool? sendEmail) => _$this._sendEmail = sendEmail; bool? _gatewayRefund; bool? get gatewayRefund => _$this._gatewayRefund; set gatewayRefund(bool? gatewayRefund) => _$this._gatewayRefund = gatewayRefund; ListBuilder? _paymentables; ListBuilder get paymentables => _$this._paymentables ??= new ListBuilder(); set paymentables(ListBuilder? paymentables) => _$this._paymentables = paymentables; ListBuilder? _invoices; ListBuilder get invoices => _$this._invoices ??= new ListBuilder(); set invoices(ListBuilder? invoices) => _$this._invoices = invoices; ListBuilder? _credits; ListBuilder get credits => _$this._credits ??= new ListBuilder(); set credits(ListBuilder? credits) => _$this._credits = credits; 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; PaymentEntityBuilder() { PaymentEntity._initializeBuilder(this); } PaymentEntityBuilder get _$this { final $v = _$v; if ($v != null) { _amount = $v.amount; _applied = $v.applied; _refunded = $v.refunded; _number = $v.number; _idempotencyKey = $v.idempotencyKey; _clientId = $v.clientId; _statusId = $v.statusId; _transactionReference = $v.transactionReference; _date = $v.date; _typeId = $v.typeId; _privateNotes = $v.privateNotes; _customValue1 = $v.customValue1; _customValue2 = $v.customValue2; _customValue3 = $v.customValue3; _customValue4 = $v.customValue4; _exchangeRate = $v.exchangeRate; _exchangeCurrencyId = $v.exchangeCurrencyId; _isManual = $v.isManual; _projectId = $v.projectId; _vendorId = $v.vendorId; _invitationId = $v.invitationId; _transactionId = $v.transactionId; _clientContactId = $v.clientContactId; _companyGatewayId = $v.companyGatewayId; _currencyId = $v.currencyId; _gatewayTypeId = $v.gatewayTypeId; _isApplying = $v.isApplying; _sendEmail = $v.sendEmail; _gatewayRefund = $v.gatewayRefund; _paymentables = $v.paymentables.toBuilder(); _invoices = $v.invoices.toBuilder(); _credits = $v.credits.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(PaymentEntity other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentEntity; } @override void update(void Function(PaymentEntityBuilder)? updates) { if (updates != null) updates(this); } @override PaymentEntity build() => _build(); _$PaymentEntity _build() { _$PaymentEntity _$result; try { _$result = _$v ?? new _$PaymentEntity._( amount: BuiltValueNullFieldError.checkNotNull( amount, r'PaymentEntity', 'amount'), applied: BuiltValueNullFieldError.checkNotNull( applied, r'PaymentEntity', 'applied'), refunded: BuiltValueNullFieldError.checkNotNull( refunded, r'PaymentEntity', 'refunded'), number: BuiltValueNullFieldError.checkNotNull( number, r'PaymentEntity', 'number'), idempotencyKey: idempotencyKey, clientId: BuiltValueNullFieldError.checkNotNull( clientId, r'PaymentEntity', 'clientId'), statusId: BuiltValueNullFieldError.checkNotNull( statusId, r'PaymentEntity', 'statusId'), transactionReference: BuiltValueNullFieldError.checkNotNull( transactionReference, r'PaymentEntity', 'transactionReference'), date: BuiltValueNullFieldError.checkNotNull( date, r'PaymentEntity', 'date'), typeId: BuiltValueNullFieldError.checkNotNull(typeId, r'PaymentEntity', 'typeId'), privateNotes: BuiltValueNullFieldError.checkNotNull(privateNotes, r'PaymentEntity', 'privateNotes'), customValue1: BuiltValueNullFieldError.checkNotNull(customValue1, r'PaymentEntity', 'customValue1'), customValue2: BuiltValueNullFieldError.checkNotNull(customValue2, r'PaymentEntity', 'customValue2'), customValue3: BuiltValueNullFieldError.checkNotNull(customValue3, r'PaymentEntity', 'customValue3'), customValue4: BuiltValueNullFieldError.checkNotNull(customValue4, r'PaymentEntity', 'customValue4'), exchangeRate: BuiltValueNullFieldError.checkNotNull(exchangeRate, r'PaymentEntity', 'exchangeRate'), exchangeCurrencyId: BuiltValueNullFieldError.checkNotNull(exchangeCurrencyId, r'PaymentEntity', 'exchangeCurrencyId'), isManual: BuiltValueNullFieldError.checkNotNull(isManual, r'PaymentEntity', 'isManual'), projectId: BuiltValueNullFieldError.checkNotNull(projectId, r'PaymentEntity', 'projectId'), vendorId: BuiltValueNullFieldError.checkNotNull(vendorId, r'PaymentEntity', 'vendorId'), invitationId: BuiltValueNullFieldError.checkNotNull(invitationId, r'PaymentEntity', 'invitationId'), transactionId: BuiltValueNullFieldError.checkNotNull(transactionId, r'PaymentEntity', 'transactionId'), clientContactId: BuiltValueNullFieldError.checkNotNull(clientContactId, r'PaymentEntity', 'clientContactId'), companyGatewayId: BuiltValueNullFieldError.checkNotNull(companyGatewayId, r'PaymentEntity', 'companyGatewayId'), currencyId: BuiltValueNullFieldError.checkNotNull(currencyId, r'PaymentEntity', 'currencyId'), gatewayTypeId: BuiltValueNullFieldError.checkNotNull(gatewayTypeId, r'PaymentEntity', 'gatewayTypeId'), isApplying: isApplying, sendEmail: sendEmail, gatewayRefund: gatewayRefund, paymentables: paymentables.build(), invoices: invoices.build(), credits: credits.build(), isChanged: isChanged, createdAt: BuiltValueNullFieldError.checkNotNull(createdAt, r'PaymentEntity', 'createdAt'), updatedAt: BuiltValueNullFieldError.checkNotNull(updatedAt, r'PaymentEntity', 'updatedAt'), archivedAt: BuiltValueNullFieldError.checkNotNull(archivedAt, r'PaymentEntity', 'archivedAt'), isDeleted: isDeleted, createdUserId: createdUserId, assignedUserId: assignedUserId, id: BuiltValueNullFieldError.checkNotNull(id, r'PaymentEntity', 'id')); } catch (_) { late String _$failedField; try { _$failedField = 'paymentables'; paymentables.build(); _$failedField = 'invoices'; invoices.build(); _$failedField = 'credits'; credits.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'PaymentEntity', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$PaymentableEntity extends PaymentableEntity { @override final int? createdAt; @override final int? updatedAt; @override final String? invoiceId; @override final String? creditId; @override final double amount; @override final String id; factory _$PaymentableEntity( [void Function(PaymentableEntityBuilder)? updates]) => (new PaymentableEntityBuilder()..update(updates))._build(); _$PaymentableEntity._( {this.createdAt, this.updatedAt, this.invoiceId, this.creditId, required this.amount, required this.id}) : super._() { BuiltValueNullFieldError.checkNotNull( amount, r'PaymentableEntity', 'amount'); BuiltValueNullFieldError.checkNotNull(id, r'PaymentableEntity', 'id'); } @override PaymentableEntity rebuild(void Function(PaymentableEntityBuilder) updates) => (toBuilder()..update(updates)).build(); @override PaymentableEntityBuilder toBuilder() => new PaymentableEntityBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is PaymentableEntity && createdAt == other.createdAt && updatedAt == other.updatedAt && invoiceId == other.invoiceId && creditId == other.creditId && amount == other.amount && id == other.id; } int? __hashCode; @override int get hashCode { if (__hashCode != null) return __hashCode!; var _$hash = 0; _$hash = $jc(_$hash, createdAt.hashCode); _$hash = $jc(_$hash, updatedAt.hashCode); _$hash = $jc(_$hash, invoiceId.hashCode); _$hash = $jc(_$hash, creditId.hashCode); _$hash = $jc(_$hash, amount.hashCode); _$hash = $jc(_$hash, id.hashCode); _$hash = $jf(_$hash); return __hashCode ??= _$hash; } @override String toString() { return (newBuiltValueToStringHelper(r'PaymentableEntity') ..add('createdAt', createdAt) ..add('updatedAt', updatedAt) ..add('invoiceId', invoiceId) ..add('creditId', creditId) ..add('amount', amount) ..add('id', id)) .toString(); } } class PaymentableEntityBuilder implements Builder { _$PaymentableEntity? _$v; 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; String? _invoiceId; String? get invoiceId => _$this._invoiceId; set invoiceId(String? invoiceId) => _$this._invoiceId = invoiceId; String? _creditId; String? get creditId => _$this._creditId; set creditId(String? creditId) => _$this._creditId = creditId; double? _amount; double? get amount => _$this._amount; set amount(double? amount) => _$this._amount = amount; String? _id; String? get id => _$this._id; set id(String? id) => _$this._id = id; PaymentableEntityBuilder(); PaymentableEntityBuilder get _$this { final $v = _$v; if ($v != null) { _createdAt = $v.createdAt; _updatedAt = $v.updatedAt; _invoiceId = $v.invoiceId; _creditId = $v.creditId; _amount = $v.amount; _id = $v.id; _$v = null; } return this; } @override void replace(PaymentableEntity other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$PaymentableEntity; } @override void update(void Function(PaymentableEntityBuilder)? updates) { if (updates != null) updates(this); } @override PaymentableEntity build() => _build(); _$PaymentableEntity _build() { final _$result = _$v ?? new _$PaymentableEntity._( createdAt: createdAt, updatedAt: updatedAt, invoiceId: invoiceId, creditId: creditId, amount: BuiltValueNullFieldError.checkNotNull( amount, r'PaymentableEntity', 'amount'), id: BuiltValueNullFieldError.checkNotNull( id, r'PaymentableEntity', 'id')); replace(_$result); return _$result; } } // ignore_for_file: deprecated_member_use_from_same_package,type=lint