// GENERATED CODE - DO NOT MODIFY BY HAND part of 'entities.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** const EntityType _$company = const EntityType._('company'); const EntityType _$taxRate = const EntityType._('taxRate'); const EntityType _$companyGateway = const EntityType._('companyGateway'); const EntityType _$gateway = const EntityType._('gateway'); const EntityType _$invoice = const EntityType._('invoice'); const EntityType _$recurringInvoice = const EntityType._('recurringInvoice'); const EntityType _$invoiceItem = const EntityType._('invoiceItem'); const EntityType _$quote = const EntityType._('quote'); const EntityType _$quoteItem = const EntityType._('quoteItem'); const EntityType _$product = const EntityType._('product'); const EntityType _$client = const EntityType._('client'); const EntityType _$contact = const EntityType._('contact'); const EntityType _$task = const EntityType._('task'); const EntityType _$project = const EntityType._('project'); const EntityType _$expense = const EntityType._('expense'); const EntityType _$expenseCategory = const EntityType._('expenseCategory'); const EntityType _$vendor = const EntityType._('vendor'); const EntityType _$vendorContact = const EntityType._('vendorContact'); const EntityType _$credit = const EntityType._('credit'); const EntityType _$payment = const EntityType._('payment'); const EntityType _$country = const EntityType._('country'); const EntityType _$currency = const EntityType._('currency'); const EntityType _$language = const EntityType._('language'); const EntityType _$industry = const EntityType._('industry'); const EntityType _$size = const EntityType._('size'); const EntityType _$paymentType = const EntityType._('paymentType'); const EntityType _$taskStatus = const EntityType._('taskStatus'); const EntityType _$document = const EntityType._('document'); const EntityType _$group = const EntityType._('group'); const EntityType _$timezone = const EntityType._('timezone'); const EntityType _$dateFormat = const EntityType._('dateFormat'); const EntityType _$font = const EntityType._('font'); EntityType _$typeValueOf(String name) { switch (name) { case 'company': return _$company; case 'taxRate': return _$taxRate; case 'companyGateway': return _$companyGateway; case 'gateway': return _$gateway; case 'invoice': return _$invoice; case 'recurringInvoice': return _$recurringInvoice; case 'invoiceItem': return _$invoiceItem; case 'quote': return _$quote; case 'quoteItem': return _$quoteItem; case 'product': return _$product; case 'client': return _$client; case 'contact': return _$contact; case 'task': return _$task; case 'project': return _$project; case 'expense': return _$expense; case 'expenseCategory': return _$expenseCategory; case 'vendor': return _$vendor; case 'vendorContact': return _$vendorContact; case 'credit': return _$credit; case 'payment': return _$payment; case 'country': return _$country; case 'currency': return _$currency; case 'language': return _$language; case 'industry': return _$industry; case 'size': return _$size; case 'paymentType': return _$paymentType; case 'taskStatus': return _$taskStatus; case 'document': return _$document; case 'group': return _$group; case 'timezone': return _$timezone; case 'dateFormat': return _$dateFormat; case 'font': return _$font; default: throw new ArgumentError(name); } } final BuiltSet _$typeValues = new BuiltSet(const [ _$company, _$taxRate, _$companyGateway, _$gateway, _$invoice, _$recurringInvoice, _$invoiceItem, _$quote, _$quoteItem, _$product, _$client, _$contact, _$task, _$project, _$expense, _$expenseCategory, _$vendor, _$vendorContact, _$credit, _$payment, _$country, _$currency, _$language, _$industry, _$size, _$paymentType, _$taskStatus, _$document, _$group, _$timezone, _$dateFormat, _$font, ]); const EntityState _$active = const EntityState._('active'); const EntityState _$archived = const EntityState._('archived'); const EntityState _$deleted = const EntityState._('deleted'); EntityState _$valueOf(String name) { switch (name) { case 'active': return _$active; case 'archived': return _$archived; case 'deleted': return _$deleted; default: throw new ArgumentError(name); } } final BuiltSet _$values = new BuiltSet(const [ _$active, _$archived, _$deleted, ]); const EmailTemplate _$initial = const EmailTemplate._('initial'); const EmailTemplate _$reminder1 = const EmailTemplate._('reminder1'); const EmailTemplate _$reminder2 = const EmailTemplate._('reminder2'); const EmailTemplate _$reminder3 = const EmailTemplate._('reminder3'); EmailTemplate _$templateValueOf(String name) { switch (name) { case 'initial': return _$initial; case 'reminder1': return _$reminder1; case 'reminder2': return _$reminder2; case 'reminder3': return _$reminder3; default: throw new ArgumentError(name); } } final BuiltSet _$templateValues = new BuiltSet(const [ _$initial, _$reminder1, _$reminder2, _$reminder3, ]); const UserPermission _$create = const UserPermission._('create'); const UserPermission _$edit = const UserPermission._('edit'); const UserPermission _$view = const UserPermission._('view'); UserPermission _$permissionValueOf(String name) { switch (name) { case 'create': return _$create; case 'edit': return _$edit; case 'view': return _$view; default: throw new ArgumentError(name); } } final BuiltSet _$permissionValues = new BuiltSet(const [ _$create, _$edit, _$view, ]); Serializer _$entityTypeSerializer = new _$EntityTypeSerializer(); Serializer _$entityStateSerializer = new _$EntityStateSerializer(); Serializer _$emailTemplateSerializer = new _$EmailTemplateSerializer(); Serializer _$userPermissionSerializer = new _$UserPermissionSerializer(); Serializer _$errorMessageSerializer = new _$ErrorMessageSerializer(); Serializer _$loginResponseSerializer = new _$LoginResponseSerializer(); Serializer _$dashboardResponseSerializer = new _$DashboardResponseSerializer(); Serializer _$dashboardEntitySerializer = new _$DashboardEntitySerializer(); Serializer _$activityEntitySerializer = new _$ActivityEntitySerializer(); class _$EntityTypeSerializer implements PrimitiveSerializer { @override final Iterable types = const [EntityType]; @override final String wireName = 'EntityType'; @override Object serialize(Serializers serializers, EntityType object, {FullType specifiedType = FullType.unspecified}) => object.name; @override EntityType deserialize(Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => EntityType.valueOf(serialized as String); } class _$EntityStateSerializer implements PrimitiveSerializer { @override final Iterable types = const [EntityState]; @override final String wireName = 'EntityState'; @override Object serialize(Serializers serializers, EntityState object, {FullType specifiedType = FullType.unspecified}) => object.name; @override EntityState deserialize(Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => EntityState.valueOf(serialized as String); } class _$EmailTemplateSerializer implements PrimitiveSerializer { @override final Iterable types = const [EmailTemplate]; @override final String wireName = 'EmailTemplate'; @override Object serialize(Serializers serializers, EmailTemplate object, {FullType specifiedType = FullType.unspecified}) => object.name; @override EmailTemplate deserialize(Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => EmailTemplate.valueOf(serialized as String); } class _$UserPermissionSerializer implements PrimitiveSerializer { @override final Iterable types = const [UserPermission]; @override final String wireName = 'UserPermission'; @override Object serialize(Serializers serializers, UserPermission object, {FullType specifiedType = FullType.unspecified}) => object.name; @override UserPermission deserialize(Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => UserPermission.valueOf(serialized as String); } class _$ErrorMessageSerializer implements StructuredSerializer { @override final Iterable types = const [ErrorMessage, _$ErrorMessage]; @override final String wireName = 'ErrorMessage'; @override Iterable serialize(Serializers serializers, ErrorMessage object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'message', serializers.serialize(object.message, specifiedType: const FullType(String)), ]; return result; } @override ErrorMessage deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new ErrorMessageBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final dynamic value = iterator.current; switch (key) { case 'message': result.message = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; } } return result.build(); } } class _$LoginResponseSerializer implements StructuredSerializer { @override final Iterable types = const [LoginResponse, _$LoginResponse]; @override final String wireName = 'LoginResponse'; @override Iterable serialize(Serializers serializers, LoginResponse object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'data', serializers.serialize(object.userCompanies, specifiedType: const FullType( BuiltList, const [const FullType(UserCompanyEntity)])), 'static', serializers.serialize(object.static, specifiedType: const FullType(StaticDataEntity)), ]; return result; } @override LoginResponse deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new LoginResponseBuilder(); 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.userCompanies.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(UserCompanyEntity)])) as BuiltList); break; case 'static': result.static.replace(serializers.deserialize(value, specifiedType: const FullType(StaticDataEntity)) as StaticDataEntity); break; } } return result.build(); } } class _$DashboardResponseSerializer implements StructuredSerializer { @override final Iterable types = const [DashboardResponse, _$DashboardResponse]; @override final String wireName = 'DashboardResponse'; @override Iterable serialize(Serializers serializers, DashboardResponse object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'data', serializers.serialize(object.data, specifiedType: const FullType(DashboardEntity)), ]; return result; } @override DashboardResponse deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new DashboardResponseBuilder(); 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(DashboardEntity)) as DashboardEntity); break; } } return result.build(); } } class _$DashboardEntitySerializer implements StructuredSerializer { @override final Iterable types = const [DashboardEntity, _$DashboardEntity]; @override final String wireName = 'DashboardEntity'; @override Iterable serialize(Serializers serializers, DashboardEntity object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'activities', serializers.serialize(object.activities, specifiedType: const FullType( BuiltList, const [const FullType(ActivityEntity)])), ]; return result; } @override DashboardEntity deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new DashboardEntityBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final dynamic value = iterator.current; switch (key) { case 'activities': result.activities.replace(serializers.deserialize(value, specifiedType: const FullType( BuiltList, const [const FullType(ActivityEntity)])) as BuiltList); break; } } return result.build(); } } class _$ActivityEntitySerializer implements StructuredSerializer { @override final Iterable types = const [ActivityEntity, _$ActivityEntity]; @override final String wireName = 'ActivityEntity'; @override Iterable serialize(Serializers serializers, ActivityEntity object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'notes', serializers.serialize(object.notes, specifiedType: const FullType(String)), 'id', serializers.serialize(object.key, specifiedType: const FullType(String)), 'activity_type_id', serializers.serialize(object.activityTypeId, specifiedType: const FullType(String)), 'user_id', serializers.serialize(object.userId, specifiedType: const FullType(String)), 'updated_at', serializers.serialize(object.updatedAt, specifiedType: const FullType(int)), ]; if (object.clientId != null) { result ..add('client_id') ..add(serializers.serialize(object.clientId, specifiedType: const FullType(String))); } if (object.invoiceId != null) { result ..add('invoice_id') ..add(serializers.serialize(object.invoiceId, specifiedType: const FullType(String))); } if (object.paymentId != null) { result ..add('payment_id') ..add(serializers.serialize(object.paymentId, specifiedType: const FullType(String))); } if (object.creditId != null) { result ..add('credit_id') ..add(serializers.serialize(object.creditId, specifiedType: const FullType(String))); } if (object.expenseId != null) { result ..add('expense_id') ..add(serializers.serialize(object.expenseId, specifiedType: const FullType(String))); } if (object.isSystem != null) { result ..add('is_system') ..add(serializers.serialize(object.isSystem, specifiedType: const FullType(bool))); } if (object.contactId != null) { result ..add('contact_id') ..add(serializers.serialize(object.contactId, specifiedType: const FullType(String))); } if (object.taskId != null) { result ..add('task_id') ..add(serializers.serialize(object.taskId, specifiedType: const FullType(String))); } return result; } @override ActivityEntity deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new ActivityEntityBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final dynamic value = iterator.current; switch (key) { case 'notes': result.notes = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'id': result.key = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'activity_type_id': result.activityTypeId = 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 'user_id': result.userId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'invoice_id': result.invoiceId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'payment_id': result.paymentId = 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 'updated_at': result.updatedAt = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; case 'expense_id': result.expenseId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'is_system': result.isSystem = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'contact_id': result.contactId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'task_id': result.taskId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; } } return result.build(); } } class _$ErrorMessage extends ErrorMessage { @override final String message; factory _$ErrorMessage([void Function(ErrorMessageBuilder) updates]) => (new ErrorMessageBuilder()..update(updates)).build(); _$ErrorMessage._({this.message}) : super._() { if (message == null) { throw new BuiltValueNullFieldError('ErrorMessage', 'message'); } } @override ErrorMessage rebuild(void Function(ErrorMessageBuilder) updates) => (toBuilder()..update(updates)).build(); @override ErrorMessageBuilder toBuilder() => new ErrorMessageBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is ErrorMessage && message == other.message; } @override int get hashCode { return $jf($jc(0, message.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('ErrorMessage') ..add('message', message)) .toString(); } } class ErrorMessageBuilder implements Builder { _$ErrorMessage _$v; String _message; String get message => _$this._message; set message(String message) => _$this._message = message; ErrorMessageBuilder(); ErrorMessageBuilder get _$this { if (_$v != null) { _message = _$v.message; _$v = null; } return this; } @override void replace(ErrorMessage other) { if (other == null) { throw new ArgumentError.notNull('other'); } _$v = other as _$ErrorMessage; } @override void update(void Function(ErrorMessageBuilder) updates) { if (updates != null) updates(this); } @override _$ErrorMessage build() { final _$result = _$v ?? new _$ErrorMessage._(message: message); replace(_$result); return _$result; } } class _$LoginResponse extends LoginResponse { @override final BuiltList userCompanies; @override final StaticDataEntity static; factory _$LoginResponse([void Function(LoginResponseBuilder) updates]) => (new LoginResponseBuilder()..update(updates)).build(); _$LoginResponse._({this.userCompanies, this.static}) : super._() { if (userCompanies == null) { throw new BuiltValueNullFieldError('LoginResponse', 'userCompanies'); } if (static == null) { throw new BuiltValueNullFieldError('LoginResponse', 'static'); } } @override LoginResponse rebuild(void Function(LoginResponseBuilder) updates) => (toBuilder()..update(updates)).build(); @override LoginResponseBuilder toBuilder() => new LoginResponseBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is LoginResponse && userCompanies == other.userCompanies && static == other.static; } @override int get hashCode { return $jf($jc($jc(0, userCompanies.hashCode), static.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('LoginResponse') ..add('userCompanies', userCompanies) ..add('static', static)) .toString(); } } class LoginResponseBuilder implements Builder { _$LoginResponse _$v; ListBuilder _userCompanies; ListBuilder get userCompanies => _$this._userCompanies ??= new ListBuilder(); set userCompanies(ListBuilder userCompanies) => _$this._userCompanies = userCompanies; StaticDataEntityBuilder _static; StaticDataEntityBuilder get static => _$this._static ??= new StaticDataEntityBuilder(); set static(StaticDataEntityBuilder static) => _$this._static = static; LoginResponseBuilder(); LoginResponseBuilder get _$this { if (_$v != null) { _userCompanies = _$v.userCompanies?.toBuilder(); _static = _$v.static?.toBuilder(); _$v = null; } return this; } @override void replace(LoginResponse other) { if (other == null) { throw new ArgumentError.notNull('other'); } _$v = other as _$LoginResponse; } @override void update(void Function(LoginResponseBuilder) updates) { if (updates != null) updates(this); } @override _$LoginResponse build() { _$LoginResponse _$result; try { _$result = _$v ?? new _$LoginResponse._( userCompanies: userCompanies.build(), static: static.build()); } catch (_) { String _$failedField; try { _$failedField = 'userCompanies'; userCompanies.build(); _$failedField = 'static'; static.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'LoginResponse', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$DashboardResponse extends DashboardResponse { @override final DashboardEntity data; factory _$DashboardResponse( [void Function(DashboardResponseBuilder) updates]) => (new DashboardResponseBuilder()..update(updates)).build(); _$DashboardResponse._({this.data}) : super._() { if (data == null) { throw new BuiltValueNullFieldError('DashboardResponse', 'data'); } } @override DashboardResponse rebuild(void Function(DashboardResponseBuilder) updates) => (toBuilder()..update(updates)).build(); @override DashboardResponseBuilder toBuilder() => new DashboardResponseBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is DashboardResponse && data == other.data; } @override int get hashCode { return $jf($jc(0, data.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('DashboardResponse')..add('data', data)) .toString(); } } class DashboardResponseBuilder implements Builder { _$DashboardResponse _$v; DashboardEntityBuilder _data; DashboardEntityBuilder get data => _$this._data ??= new DashboardEntityBuilder(); set data(DashboardEntityBuilder data) => _$this._data = data; DashboardResponseBuilder(); DashboardResponseBuilder get _$this { if (_$v != null) { _data = _$v.data?.toBuilder(); _$v = null; } return this; } @override void replace(DashboardResponse other) { if (other == null) { throw new ArgumentError.notNull('other'); } _$v = other as _$DashboardResponse; } @override void update(void Function(DashboardResponseBuilder) updates) { if (updates != null) updates(this); } @override _$DashboardResponse build() { _$DashboardResponse _$result; try { _$result = _$v ?? new _$DashboardResponse._(data: data.build()); } catch (_) { String _$failedField; try { _$failedField = 'data'; data.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'DashboardResponse', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$DashboardEntity extends DashboardEntity { @override final BuiltList activities; factory _$DashboardEntity([void Function(DashboardEntityBuilder) updates]) => (new DashboardEntityBuilder()..update(updates)).build(); _$DashboardEntity._({this.activities}) : super._() { if (activities == null) { throw new BuiltValueNullFieldError('DashboardEntity', 'activities'); } } @override DashboardEntity rebuild(void Function(DashboardEntityBuilder) updates) => (toBuilder()..update(updates)).build(); @override DashboardEntityBuilder toBuilder() => new DashboardEntityBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is DashboardEntity && activities == other.activities; } @override int get hashCode { return $jf($jc(0, activities.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('DashboardEntity') ..add('activities', activities)) .toString(); } } class DashboardEntityBuilder implements Builder { _$DashboardEntity _$v; ListBuilder _activities; ListBuilder get activities => _$this._activities ??= new ListBuilder(); set activities(ListBuilder activities) => _$this._activities = activities; DashboardEntityBuilder(); DashboardEntityBuilder get _$this { if (_$v != null) { _activities = _$v.activities?.toBuilder(); _$v = null; } return this; } @override void replace(DashboardEntity other) { if (other == null) { throw new ArgumentError.notNull('other'); } _$v = other as _$DashboardEntity; } @override void update(void Function(DashboardEntityBuilder) updates) { if (updates != null) updates(this); } @override _$DashboardEntity build() { _$DashboardEntity _$result; try { _$result = _$v ?? new _$DashboardEntity._(activities: activities.build()); } catch (_) { String _$failedField; try { _$failedField = 'activities'; activities.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'DashboardEntity', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$ActivityEntity extends ActivityEntity { @override final String notes; @override final String key; @override final String activityTypeId; @override final String clientId; @override final String userId; @override final String invoiceId; @override final String paymentId; @override final String creditId; @override final int updatedAt; @override final String expenseId; @override final bool isSystem; @override final String contactId; @override final String taskId; factory _$ActivityEntity([void Function(ActivityEntityBuilder) updates]) => (new ActivityEntityBuilder()..update(updates)).build(); _$ActivityEntity._( {this.notes, this.key, this.activityTypeId, this.clientId, this.userId, this.invoiceId, this.paymentId, this.creditId, this.updatedAt, this.expenseId, this.isSystem, this.contactId, this.taskId}) : super._() { if (notes == null) { throw new BuiltValueNullFieldError('ActivityEntity', 'notes'); } if (key == null) { throw new BuiltValueNullFieldError('ActivityEntity', 'key'); } if (activityTypeId == null) { throw new BuiltValueNullFieldError('ActivityEntity', 'activityTypeId'); } if (userId == null) { throw new BuiltValueNullFieldError('ActivityEntity', 'userId'); } if (updatedAt == null) { throw new BuiltValueNullFieldError('ActivityEntity', 'updatedAt'); } } @override ActivityEntity rebuild(void Function(ActivityEntityBuilder) updates) => (toBuilder()..update(updates)).build(); @override ActivityEntityBuilder toBuilder() => new ActivityEntityBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is ActivityEntity && notes == other.notes && key == other.key && activityTypeId == other.activityTypeId && clientId == other.clientId && userId == other.userId && invoiceId == other.invoiceId && paymentId == other.paymentId && creditId == other.creditId && updatedAt == other.updatedAt && expenseId == other.expenseId && isSystem == other.isSystem && contactId == other.contactId && taskId == other.taskId; } @override int get hashCode { return $jf($jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc($jc(0, notes.hashCode), key.hashCode), activityTypeId.hashCode), clientId.hashCode), userId.hashCode), invoiceId.hashCode), paymentId.hashCode), creditId.hashCode), updatedAt.hashCode), expenseId.hashCode), isSystem.hashCode), contactId.hashCode), taskId.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('ActivityEntity') ..add('notes', notes) ..add('key', key) ..add('activityTypeId', activityTypeId) ..add('clientId', clientId) ..add('userId', userId) ..add('invoiceId', invoiceId) ..add('paymentId', paymentId) ..add('creditId', creditId) ..add('updatedAt', updatedAt) ..add('expenseId', expenseId) ..add('isSystem', isSystem) ..add('contactId', contactId) ..add('taskId', taskId)) .toString(); } } class ActivityEntityBuilder implements Builder { _$ActivityEntity _$v; String _notes; String get notes => _$this._notes; set notes(String notes) => _$this._notes = notes; String _key; String get key => _$this._key; set key(String key) => _$this._key = key; String _activityTypeId; String get activityTypeId => _$this._activityTypeId; set activityTypeId(String activityTypeId) => _$this._activityTypeId = activityTypeId; String _clientId; String get clientId => _$this._clientId; set clientId(String clientId) => _$this._clientId = clientId; String _userId; String get userId => _$this._userId; set userId(String userId) => _$this._userId = userId; String _invoiceId; String get invoiceId => _$this._invoiceId; set invoiceId(String invoiceId) => _$this._invoiceId = invoiceId; String _paymentId; String get paymentId => _$this._paymentId; set paymentId(String paymentId) => _$this._paymentId = paymentId; String _creditId; String get creditId => _$this._creditId; set creditId(String creditId) => _$this._creditId = creditId; int _updatedAt; int get updatedAt => _$this._updatedAt; set updatedAt(int updatedAt) => _$this._updatedAt = updatedAt; String _expenseId; String get expenseId => _$this._expenseId; set expenseId(String expenseId) => _$this._expenseId = expenseId; bool _isSystem; bool get isSystem => _$this._isSystem; set isSystem(bool isSystem) => _$this._isSystem = isSystem; String _contactId; String get contactId => _$this._contactId; set contactId(String contactId) => _$this._contactId = contactId; String _taskId; String get taskId => _$this._taskId; set taskId(String taskId) => _$this._taskId = taskId; ActivityEntityBuilder(); ActivityEntityBuilder get _$this { if (_$v != null) { _notes = _$v.notes; _key = _$v.key; _activityTypeId = _$v.activityTypeId; _clientId = _$v.clientId; _userId = _$v.userId; _invoiceId = _$v.invoiceId; _paymentId = _$v.paymentId; _creditId = _$v.creditId; _updatedAt = _$v.updatedAt; _expenseId = _$v.expenseId; _isSystem = _$v.isSystem; _contactId = _$v.contactId; _taskId = _$v.taskId; _$v = null; } return this; } @override void replace(ActivityEntity other) { if (other == null) { throw new ArgumentError.notNull('other'); } _$v = other as _$ActivityEntity; } @override void update(void Function(ActivityEntityBuilder) updates) { if (updates != null) updates(this); } @override _$ActivityEntity build() { final _$result = _$v ?? new _$ActivityEntity._( notes: notes, key: key, activityTypeId: activityTypeId, clientId: clientId, userId: userId, invoiceId: invoiceId, paymentId: paymentId, creditId: creditId, updatedAt: updatedAt, expenseId: expenseId, isSystem: isSystem, contactId: contactId, taskId: taskId); replace(_$result); return _$result; } } // ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new