invoice/lib/redux/app/ui_state.g.dart

148 lines
4.0 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'ui_state.dart';
// **************************************************************************
// Generator: BuiltValueGenerator
// **************************************************************************
// ignore_for_file: always_put_control_body_on_new_line
// ignore_for_file: annotate_overrides
// ignore_for_file: avoid_annotating_with_dynamic
// ignore_for_file: avoid_returning_this
// ignore_for_file: omit_local_variable_types
// ignore_for_file: prefer_expression_function_bodies
// ignore_for_file: sort_constructors_first
Serializer<UIState> _$uIStateSerializer = new _$UIStateSerializer();
class _$UIStateSerializer implements StructuredSerializer<UIState> {
@override
final Iterable<Type> types = const [UIState, _$UIState];
@override
final String wireName = 'UIState';
@override
Iterable serialize(Serializers serializers, UIState object,
{FullType specifiedType: FullType.unspecified}) {
final result = <Object>[
'productUIState',
serializers.serialize(object.productUIState,
specifiedType: const FullType(EntityUIState)),
];
return result;
}
@override
UIState deserialize(Serializers serializers, Iterable serialized,
{FullType specifiedType: FullType.unspecified}) {
final result = new UIStateBuilder();
final iterator = serialized.iterator;
while (iterator.moveNext()) {
final key = iterator.current as String;
iterator.moveNext();
final dynamic value = iterator.current;
switch (key) {
case 'productUIState':
result.productUIState.replace(serializers.deserialize(value,
specifiedType: const FullType(EntityUIState)) as EntityUIState);
break;
}
}
return result.build();
}
}
class _$UIState extends UIState {
@override
final EntityUIState productUIState;
factory _$UIState([void updates(UIStateBuilder b)]) =>
(new UIStateBuilder()..update(updates)).build();
_$UIState._({this.productUIState}) : super._() {
if (productUIState == null)
throw new BuiltValueNullFieldError('UIState', 'productUIState');
}
@override
UIState rebuild(void updates(UIStateBuilder b)) =>
(toBuilder()..update(updates)).build();
@override
UIStateBuilder toBuilder() => new UIStateBuilder()..replace(this);
@override
bool operator ==(dynamic other) {
if (identical(other, this)) return true;
if (other is! UIState) return false;
return productUIState == other.productUIState;
}
@override
int get hashCode {
return $jf($jc(0, productUIState.hashCode));
}
@override
String toString() {
return (newBuiltValueToStringHelper('UIState')
..add('productUIState', productUIState))
.toString();
}
}
class UIStateBuilder implements Builder<UIState, UIStateBuilder> {
_$UIState _$v;
EntityUIStateBuilder _productUIState;
EntityUIStateBuilder get productUIState =>
_$this._productUIState ??= new EntityUIStateBuilder();
set productUIState(EntityUIStateBuilder productUIState) =>
_$this._productUIState = productUIState;
UIStateBuilder();
UIStateBuilder get _$this {
if (_$v != null) {
_productUIState = _$v.productUIState?.toBuilder();
_$v = null;
}
return this;
}
@override
void replace(UIState other) {
if (other == null) throw new ArgumentError.notNull('other');
_$v = other as _$UIState;
}
@override
void update(void updates(UIStateBuilder b)) {
if (updates != null) updates(this);
}
@override
_$UIState build() {
_$UIState _$result;
try {
_$result = _$v ?? new _$UIState._(productUIState: productUIState.build());
} catch (_) {
String _$failedField;
try {
_$failedField = 'productUIState';
productUIState.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'UIState', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}
}