invoice/lib/redux/dashboard/dashboard_state.g.dart

568 lines
19 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'dashboard_state.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
Serializer<DashboardUIState> _$dashboardUIStateSerializer =
new _$DashboardUIStateSerializer();
Serializer<DashboardUISettings> _$dashboardUISettingsSerializer =
new _$DashboardUISettingsSerializer();
class _$DashboardUIStateSerializer
implements StructuredSerializer<DashboardUIState> {
@override
final Iterable<Type> types = const [DashboardUIState, _$DashboardUIState];
@override
final String wireName = 'DashboardUIState';
@override
Iterable<Object> serialize(Serializers serializers, DashboardUIState object,
{FullType specifiedType = FullType.unspecified}) {
final result = <Object>[
'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(EntityType),
const FullType(BuiltList, const [const FullType(String)])
])),
];
return result;
}
@override
DashboardUIState deserialize(
Serializers serializers, Iterable<Object> 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 dynamic 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(EntityType),
const FullType(BuiltList, const [const FullType(String)])
])));
break;
}
}
return result.build();
}
}
class _$DashboardUISettingsSerializer
implements StructuredSerializer<DashboardUISettings> {
@override
final Iterable<Type> types = const [
DashboardUISettings,
_$DashboardUISettings
];
@override
final String wireName = 'DashboardUISettings';
@override
Iterable<Object> serialize(
Serializers serializers, DashboardUISettings object,
{FullType specifiedType = FullType.unspecified}) {
final result = <Object>[
'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)),
];
return result;
}
@override
DashboardUISettings deserialize(
Serializers serializers, Iterable<Object> 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 dynamic 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;
}
}
return result.build();
}
}
class _$DashboardUIState extends DashboardUIState {
@override
final DashboardUISettings settings;
@override
final EntityType selectedEntityType;
@override
final BuiltMap<EntityType, BuiltList<String>> selectedEntities;
factory _$DashboardUIState(
[void Function(DashboardUIStateBuilder) updates]) =>
(new DashboardUIStateBuilder()..update(updates)).build();
_$DashboardUIState._(
{this.settings, this.selectedEntityType, this.selectedEntities})
: super._() {
if (settings == null) {
throw new BuiltValueNullFieldError('DashboardUIState', 'settings');
}
if (selectedEntityType == null) {
throw new BuiltValueNullFieldError(
'DashboardUIState', 'selectedEntityType');
}
if (selectedEntities == null) {
throw new BuiltValueNullFieldError(
'DashboardUIState', 'selectedEntities');
}
}
@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;
}
int __hashCode;
@override
int get hashCode {
return __hashCode ??= $jf($jc(
$jc($jc(0, settings.hashCode), selectedEntityType.hashCode),
selectedEntities.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('DashboardUIState')
..add('settings', settings)
..add('selectedEntityType', selectedEntityType)
..add('selectedEntities', selectedEntities))
.toString();
}
}
class DashboardUIStateBuilder
implements Builder<DashboardUIState, DashboardUIStateBuilder> {
_$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<EntityType, BuiltList<String>> _selectedEntities;
MapBuilder<EntityType, BuiltList<String>> get selectedEntities =>
_$this._selectedEntities ??=
new MapBuilder<EntityType, BuiltList<String>>();
set selectedEntities(
MapBuilder<EntityType, BuiltList<String>> selectedEntities) =>
_$this._selectedEntities = selectedEntities;
DashboardUIStateBuilder();
DashboardUIStateBuilder get _$this {
if (_$v != null) {
_settings = _$v.settings?.toBuilder();
_selectedEntityType = _$v.selectedEntityType;
_selectedEntities = _$v.selectedEntities?.toBuilder();
_$v = null;
}
return this;
}
@override
void replace(DashboardUIState other) {
if (other == null) {
throw new ArgumentError.notNull('other');
}
_$v = other as _$DashboardUIState;
}
@override
void update(void Function(DashboardUIStateBuilder) updates) {
if (updates != null) updates(this);
}
@override
_$DashboardUIState build() {
_$DashboardUIState _$result;
try {
_$result = _$v ??
new _$DashboardUIState._(
settings: settings.build(),
selectedEntityType: selectedEntityType,
selectedEntities: selectedEntities.build());
} catch (_) {
String _$failedField;
try {
_$failedField = 'settings';
settings.build();
_$failedField = 'selectedEntities';
selectedEntities.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'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;
factory _$DashboardUISettings(
[void Function(DashboardUISettingsBuilder) updates]) =>
(new DashboardUISettingsBuilder()..update(updates)).build();
_$DashboardUISettings._(
{this.dateRange,
this.customStartDate,
this.customEndDate,
this.enableComparison,
this.compareDateRange,
this.compareCustomStartDate,
this.compareCustomEndDate,
this.offset,
this.currencyId,
this.includeTaxes})
: super._() {
if (dateRange == null) {
throw new BuiltValueNullFieldError('DashboardUISettings', 'dateRange');
}
if (customStartDate == null) {
throw new BuiltValueNullFieldError(
'DashboardUISettings', 'customStartDate');
}
if (customEndDate == null) {
throw new BuiltValueNullFieldError(
'DashboardUISettings', 'customEndDate');
}
if (enableComparison == null) {
throw new BuiltValueNullFieldError(
'DashboardUISettings', 'enableComparison');
}
if (compareDateRange == null) {
throw new BuiltValueNullFieldError(
'DashboardUISettings', 'compareDateRange');
}
if (compareCustomStartDate == null) {
throw new BuiltValueNullFieldError(
'DashboardUISettings', 'compareCustomStartDate');
}
if (compareCustomEndDate == null) {
throw new BuiltValueNullFieldError(
'DashboardUISettings', 'compareCustomEndDate');
}
if (offset == null) {
throw new BuiltValueNullFieldError('DashboardUISettings', 'offset');
}
if (currencyId == null) {
throw new BuiltValueNullFieldError('DashboardUISettings', 'currencyId');
}
if (includeTaxes == null) {
throw new BuiltValueNullFieldError('DashboardUISettings', 'includeTaxes');
}
}
@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;
}
int __hashCode;
@override
int get hashCode {
return __hashCode ??= $jf($jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc(
$jc($jc(0, dateRange.hashCode),
customStartDate.hashCode),
customEndDate.hashCode),
enableComparison.hashCode),
compareDateRange.hashCode),
compareCustomStartDate.hashCode),
compareCustomEndDate.hashCode),
offset.hashCode),
currencyId.hashCode),
includeTaxes.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('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))
.toString();
}
}
class DashboardUISettingsBuilder
implements Builder<DashboardUISettings, DashboardUISettingsBuilder> {
_$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;
DashboardUISettingsBuilder();
DashboardUISettingsBuilder get _$this {
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;
_$v = null;
}
return this;
}
@override
void replace(DashboardUISettings other) {
if (other == null) {
throw new ArgumentError.notNull('other');
}
_$v = other as _$DashboardUISettings;
}
@override
void update(void Function(DashboardUISettingsBuilder) updates) {
if (updates != null) updates(this);
}
@override
_$DashboardUISettings build() {
final _$result = _$v ??
new _$DashboardUISettings._(
dateRange: dateRange,
customStartDate: customStartDate,
customEndDate: customEndDate,
enableComparison: enableComparison,
compareDateRange: compareDateRange,
compareCustomStartDate: compareCustomStartDate,
compareCustomEndDate: compareCustomEndDate,
offset: offset,
currencyId: currencyId,
includeTaxes: includeTaxes);
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