// GENERATED CODE - DO NOT MODIFY BY HAND part of 'dashboard_state.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** Serializer _$dashboardUIStateSerializer = new _$DashboardUIStateSerializer(); Serializer _$dashboardUISettingsSerializer = new _$DashboardUISettingsSerializer(); class _$DashboardUIStateSerializer implements StructuredSerializer { @override final Iterable types = const [DashboardUIState, _$DashboardUIState]; @override final String wireName = 'DashboardUIState'; @override Iterable serialize(Serializers serializers, DashboardUIState object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'settings', serializers.serialize(object.settings, specifiedType: const FullType(DashboardUISettings)), 'selectedEntityType', serializers.serialize(object.selectedEntityType, specifiedType: const FullType(EntityType)), 'selectedEntities', serializers.serialize(object.selectedEntities, specifiedType: const FullType(BuiltMap, const [ const FullType.nullable(EntityType), const FullType(BuiltList, const [const FullType(String)]) ])), 'showSidebar', serializers.serialize(object.showSidebar, specifiedType: const FullType(bool)), ]; return result; } @override DashboardUIState deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new DashboardUIStateBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current! as String; iterator.moveNext(); final Object? value = iterator.current; switch (key) { case 'settings': result.settings.replace(serializers.deserialize(value, specifiedType: const FullType(DashboardUISettings))! as DashboardUISettings); break; case 'selectedEntityType': result.selectedEntityType = serializers.deserialize(value, specifiedType: const FullType(EntityType))! as EntityType; break; case 'selectedEntities': result.selectedEntities.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType.nullable(EntityType), const FullType(BuiltList, const [const FullType(String)]) ]))!); break; case 'showSidebar': result.showSidebar = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; break; } } return result.build(); } } class _$DashboardUISettingsSerializer implements StructuredSerializer { @override final Iterable types = const [ DashboardUISettings, _$DashboardUISettings ]; @override final String wireName = 'DashboardUISettings'; @override Iterable serialize( Serializers serializers, DashboardUISettings object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'dateRange', serializers.serialize(object.dateRange, specifiedType: const FullType(DateRange)), 'customStartDate', serializers.serialize(object.customStartDate, specifiedType: const FullType(String)), 'customEndDate', serializers.serialize(object.customEndDate, specifiedType: const FullType(String)), 'enableComparison', serializers.serialize(object.enableComparison, specifiedType: const FullType(bool)), 'compareDateRange', serializers.serialize(object.compareDateRange, specifiedType: const FullType(DateRangeComparison)), 'compareCustomStartDate', serializers.serialize(object.compareCustomStartDate, specifiedType: const FullType(String)), 'compareCustomEndDate', serializers.serialize(object.compareCustomEndDate, specifiedType: const FullType(String)), 'offset', serializers.serialize(object.offset, specifiedType: const FullType(int)), 'currencyId', serializers.serialize(object.currencyId, specifiedType: const FullType(String)), 'includeTaxes', serializers.serialize(object.includeTaxes, specifiedType: const FullType(bool)), 'groupBy', serializers.serialize(object.groupBy, specifiedType: const FullType(String)), ]; return result; } @override DashboardUISettings deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new DashboardUISettingsBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current! as String; iterator.moveNext(); final Object? value = iterator.current; switch (key) { case 'dateRange': result.dateRange = serializers.deserialize(value, specifiedType: const FullType(DateRange))! as DateRange; break; case 'customStartDate': result.customStartDate = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'customEndDate': result.customEndDate = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'enableComparison': result.enableComparison = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; break; case 'compareDateRange': result.compareDateRange = serializers.deserialize(value, specifiedType: const FullType(DateRangeComparison))! as DateRangeComparison; break; case 'compareCustomStartDate': result.compareCustomStartDate = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'compareCustomEndDate': result.compareCustomEndDate = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'offset': result.offset = serializers.deserialize(value, specifiedType: const FullType(int))! as int; break; case 'currencyId': result.currencyId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'includeTaxes': result.includeTaxes = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; break; case 'groupBy': result.groupBy = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; } } return result.build(); } } class _$DashboardUIState extends DashboardUIState { @override final DashboardUISettings settings; @override final EntityType selectedEntityType; @override final BuiltMap> selectedEntities; @override final bool showSidebar; factory _$DashboardUIState( [void Function(DashboardUIStateBuilder)? updates]) => (new DashboardUIStateBuilder()..update(updates))._build(); _$DashboardUIState._( {required this.settings, required this.selectedEntityType, required this.selectedEntities, required this.showSidebar}) : super._() { BuiltValueNullFieldError.checkNotNull( settings, r'DashboardUIState', 'settings'); BuiltValueNullFieldError.checkNotNull( selectedEntityType, r'DashboardUIState', 'selectedEntityType'); BuiltValueNullFieldError.checkNotNull( selectedEntities, r'DashboardUIState', 'selectedEntities'); BuiltValueNullFieldError.checkNotNull( showSidebar, r'DashboardUIState', 'showSidebar'); } @override DashboardUIState rebuild(void Function(DashboardUIStateBuilder) updates) => (toBuilder()..update(updates)).build(); @override DashboardUIStateBuilder toBuilder() => new DashboardUIStateBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is DashboardUIState && settings == other.settings && selectedEntityType == other.selectedEntityType && selectedEntities == other.selectedEntities && showSidebar == other.showSidebar; } int? __hashCode; @override int get hashCode { if (__hashCode != null) return __hashCode!; var _$hash = 0; _$hash = $jc(_$hash, settings.hashCode); _$hash = $jc(_$hash, selectedEntityType.hashCode); _$hash = $jc(_$hash, selectedEntities.hashCode); _$hash = $jc(_$hash, showSidebar.hashCode); _$hash = $jf(_$hash); return __hashCode ??= _$hash; } @override String toString() { return (newBuiltValueToStringHelper(r'DashboardUIState') ..add('settings', settings) ..add('selectedEntityType', selectedEntityType) ..add('selectedEntities', selectedEntities) ..add('showSidebar', showSidebar)) .toString(); } } class DashboardUIStateBuilder implements Builder { _$DashboardUIState? _$v; DashboardUISettingsBuilder? _settings; DashboardUISettingsBuilder get settings => _$this._settings ??= new DashboardUISettingsBuilder(); set settings(DashboardUISettingsBuilder? settings) => _$this._settings = settings; EntityType? _selectedEntityType; EntityType? get selectedEntityType => _$this._selectedEntityType; set selectedEntityType(EntityType? selectedEntityType) => _$this._selectedEntityType = selectedEntityType; MapBuilder>? _selectedEntities; MapBuilder> get selectedEntities => _$this._selectedEntities ??= new MapBuilder>(); set selectedEntities( MapBuilder>? selectedEntities) => _$this._selectedEntities = selectedEntities; bool? _showSidebar; bool? get showSidebar => _$this._showSidebar; set showSidebar(bool? showSidebar) => _$this._showSidebar = showSidebar; DashboardUIStateBuilder(); DashboardUIStateBuilder get _$this { final $v = _$v; if ($v != null) { _settings = $v.settings.toBuilder(); _selectedEntityType = $v.selectedEntityType; _selectedEntities = $v.selectedEntities.toBuilder(); _showSidebar = $v.showSidebar; _$v = null; } return this; } @override void replace(DashboardUIState other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$DashboardUIState; } @override void update(void Function(DashboardUIStateBuilder)? updates) { if (updates != null) updates(this); } @override DashboardUIState build() => _build(); _$DashboardUIState _build() { _$DashboardUIState _$result; try { _$result = _$v ?? new _$DashboardUIState._( settings: settings.build(), selectedEntityType: BuiltValueNullFieldError.checkNotNull( selectedEntityType, r'DashboardUIState', 'selectedEntityType'), selectedEntities: selectedEntities.build(), showSidebar: BuiltValueNullFieldError.checkNotNull( showSidebar, r'DashboardUIState', 'showSidebar')); } catch (_) { late String _$failedField; try { _$failedField = 'settings'; settings.build(); _$failedField = 'selectedEntities'; selectedEntities.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'DashboardUIState', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$DashboardUISettings extends DashboardUISettings { @override final DateRange dateRange; @override final String customStartDate; @override final String customEndDate; @override final bool enableComparison; @override final DateRangeComparison compareDateRange; @override final String compareCustomStartDate; @override final String compareCustomEndDate; @override final int offset; @override final String currencyId; @override final bool includeTaxes; @override final String groupBy; factory _$DashboardUISettings( [void Function(DashboardUISettingsBuilder)? updates]) => (new DashboardUISettingsBuilder()..update(updates))._build(); _$DashboardUISettings._( {required this.dateRange, required this.customStartDate, required this.customEndDate, required this.enableComparison, required this.compareDateRange, required this.compareCustomStartDate, required this.compareCustomEndDate, required this.offset, required this.currencyId, required this.includeTaxes, required this.groupBy}) : super._() { BuiltValueNullFieldError.checkNotNull( dateRange, r'DashboardUISettings', 'dateRange'); BuiltValueNullFieldError.checkNotNull( customStartDate, r'DashboardUISettings', 'customStartDate'); BuiltValueNullFieldError.checkNotNull( customEndDate, r'DashboardUISettings', 'customEndDate'); BuiltValueNullFieldError.checkNotNull( enableComparison, r'DashboardUISettings', 'enableComparison'); BuiltValueNullFieldError.checkNotNull( compareDateRange, r'DashboardUISettings', 'compareDateRange'); BuiltValueNullFieldError.checkNotNull(compareCustomStartDate, r'DashboardUISettings', 'compareCustomStartDate'); BuiltValueNullFieldError.checkNotNull( compareCustomEndDate, r'DashboardUISettings', 'compareCustomEndDate'); BuiltValueNullFieldError.checkNotNull( offset, r'DashboardUISettings', 'offset'); BuiltValueNullFieldError.checkNotNull( currencyId, r'DashboardUISettings', 'currencyId'); BuiltValueNullFieldError.checkNotNull( includeTaxes, r'DashboardUISettings', 'includeTaxes'); BuiltValueNullFieldError.checkNotNull( groupBy, r'DashboardUISettings', 'groupBy'); } @override DashboardUISettings rebuild( void Function(DashboardUISettingsBuilder) updates) => (toBuilder()..update(updates)).build(); @override DashboardUISettingsBuilder toBuilder() => new DashboardUISettingsBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is DashboardUISettings && dateRange == other.dateRange && customStartDate == other.customStartDate && customEndDate == other.customEndDate && enableComparison == other.enableComparison && compareDateRange == other.compareDateRange && compareCustomStartDate == other.compareCustomStartDate && compareCustomEndDate == other.compareCustomEndDate && offset == other.offset && currencyId == other.currencyId && includeTaxes == other.includeTaxes && groupBy == other.groupBy; } int? __hashCode; @override int get hashCode { if (__hashCode != null) return __hashCode!; var _$hash = 0; _$hash = $jc(_$hash, dateRange.hashCode); _$hash = $jc(_$hash, customStartDate.hashCode); _$hash = $jc(_$hash, customEndDate.hashCode); _$hash = $jc(_$hash, enableComparison.hashCode); _$hash = $jc(_$hash, compareDateRange.hashCode); _$hash = $jc(_$hash, compareCustomStartDate.hashCode); _$hash = $jc(_$hash, compareCustomEndDate.hashCode); _$hash = $jc(_$hash, offset.hashCode); _$hash = $jc(_$hash, currencyId.hashCode); _$hash = $jc(_$hash, includeTaxes.hashCode); _$hash = $jc(_$hash, groupBy.hashCode); _$hash = $jf(_$hash); return __hashCode ??= _$hash; } @override String toString() { return (newBuiltValueToStringHelper(r'DashboardUISettings') ..add('dateRange', dateRange) ..add('customStartDate', customStartDate) ..add('customEndDate', customEndDate) ..add('enableComparison', enableComparison) ..add('compareDateRange', compareDateRange) ..add('compareCustomStartDate', compareCustomStartDate) ..add('compareCustomEndDate', compareCustomEndDate) ..add('offset', offset) ..add('currencyId', currencyId) ..add('includeTaxes', includeTaxes) ..add('groupBy', groupBy)) .toString(); } } class DashboardUISettingsBuilder implements Builder { _$DashboardUISettings? _$v; DateRange? _dateRange; DateRange? get dateRange => _$this._dateRange; set dateRange(DateRange? dateRange) => _$this._dateRange = dateRange; String? _customStartDate; String? get customStartDate => _$this._customStartDate; set customStartDate(String? customStartDate) => _$this._customStartDate = customStartDate; String? _customEndDate; String? get customEndDate => _$this._customEndDate; set customEndDate(String? customEndDate) => _$this._customEndDate = customEndDate; bool? _enableComparison; bool? get enableComparison => _$this._enableComparison; set enableComparison(bool? enableComparison) => _$this._enableComparison = enableComparison; DateRangeComparison? _compareDateRange; DateRangeComparison? get compareDateRange => _$this._compareDateRange; set compareDateRange(DateRangeComparison? compareDateRange) => _$this._compareDateRange = compareDateRange; String? _compareCustomStartDate; String? get compareCustomStartDate => _$this._compareCustomStartDate; set compareCustomStartDate(String? compareCustomStartDate) => _$this._compareCustomStartDate = compareCustomStartDate; String? _compareCustomEndDate; String? get compareCustomEndDate => _$this._compareCustomEndDate; set compareCustomEndDate(String? compareCustomEndDate) => _$this._compareCustomEndDate = compareCustomEndDate; int? _offset; int? get offset => _$this._offset; set offset(int? offset) => _$this._offset = offset; String? _currencyId; String? get currencyId => _$this._currencyId; set currencyId(String? currencyId) => _$this._currencyId = currencyId; bool? _includeTaxes; bool? get includeTaxes => _$this._includeTaxes; set includeTaxes(bool? includeTaxes) => _$this._includeTaxes = includeTaxes; String? _groupBy; String? get groupBy => _$this._groupBy; set groupBy(String? groupBy) => _$this._groupBy = groupBy; DashboardUISettingsBuilder() { DashboardUISettings._initializeBuilder(this); } DashboardUISettingsBuilder get _$this { final $v = _$v; if ($v != null) { _dateRange = $v.dateRange; _customStartDate = $v.customStartDate; _customEndDate = $v.customEndDate; _enableComparison = $v.enableComparison; _compareDateRange = $v.compareDateRange; _compareCustomStartDate = $v.compareCustomStartDate; _compareCustomEndDate = $v.compareCustomEndDate; _offset = $v.offset; _currencyId = $v.currencyId; _includeTaxes = $v.includeTaxes; _groupBy = $v.groupBy; _$v = null; } return this; } @override void replace(DashboardUISettings other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$DashboardUISettings; } @override void update(void Function(DashboardUISettingsBuilder)? updates) { if (updates != null) updates(this); } @override DashboardUISettings build() => _build(); _$DashboardUISettings _build() { final _$result = _$v ?? new _$DashboardUISettings._( dateRange: BuiltValueNullFieldError.checkNotNull( dateRange, r'DashboardUISettings', 'dateRange'), customStartDate: BuiltValueNullFieldError.checkNotNull( customStartDate, r'DashboardUISettings', 'customStartDate'), customEndDate: BuiltValueNullFieldError.checkNotNull( customEndDate, r'DashboardUISettings', 'customEndDate'), enableComparison: BuiltValueNullFieldError.checkNotNull( enableComparison, r'DashboardUISettings', 'enableComparison'), compareDateRange: BuiltValueNullFieldError.checkNotNull( compareDateRange, r'DashboardUISettings', 'compareDateRange'), compareCustomStartDate: BuiltValueNullFieldError.checkNotNull( compareCustomStartDate, r'DashboardUISettings', 'compareCustomStartDate'), compareCustomEndDate: BuiltValueNullFieldError.checkNotNull( compareCustomEndDate, r'DashboardUISettings', 'compareCustomEndDate'), offset: BuiltValueNullFieldError.checkNotNull(offset, r'DashboardUISettings', 'offset'), currencyId: BuiltValueNullFieldError.checkNotNull(currencyId, r'DashboardUISettings', 'currencyId'), includeTaxes: BuiltValueNullFieldError.checkNotNull(includeTaxes, r'DashboardUISettings', 'includeTaxes'), groupBy: BuiltValueNullFieldError.checkNotNull(groupBy, r'DashboardUISettings', 'groupBy')); replace(_$result); return _$result; } } // ignore_for_file: deprecated_member_use_from_same_package,type=lint