// GENERATED CODE - DO NOT MODIFY BY HAND part of 'group_state.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** Serializer _$groupStateSerializer = new _$GroupStateSerializer(); Serializer _$groupUIStateSerializer = new _$GroupUIStateSerializer(); class _$GroupStateSerializer implements StructuredSerializer { @override final Iterable types = const [GroupState, _$GroupState]; @override final String wireName = 'GroupState'; @override Iterable serialize(Serializers serializers, GroupState object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'map', serializers.serialize(object.map, specifiedType: const FullType(BuiltMap, const [const FullType(String), const FullType(GroupEntity)])), 'list', serializers.serialize(object.list, specifiedType: const FullType(BuiltList, const [const FullType(String)])), ]; return result; } @override GroupState deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new GroupStateBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final Object value = iterator.current; switch (key) { case 'map': result.map.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(GroupEntity) ]))); break; case 'list': result.list.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltList, const [const FullType(String)])) as BuiltList); break; } } return result.build(); } } class _$GroupUIStateSerializer implements StructuredSerializer { @override final Iterable types = const [GroupUIState, _$GroupUIState]; @override final String wireName = 'GroupUIState'; @override Iterable serialize(Serializers serializers, GroupUIState object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'listUIState', serializers.serialize(object.listUIState, specifiedType: const FullType(ListUIState)), 'tabIndex', serializers.serialize(object.tabIndex, specifiedType: const FullType(int)), ]; Object value; value = object.editing; if (value != null) { result ..add('editing') ..add(serializers.serialize(value, specifiedType: const FullType(GroupEntity))); } value = object.selectedId; if (value != null) { result ..add('selectedId') ..add(serializers.serialize(value, specifiedType: const FullType(String))); } value = object.forceSelected; if (value != null) { result ..add('forceSelected') ..add( serializers.serialize(value, specifiedType: const FullType(bool))); } return result; } @override GroupUIState deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new GroupUIStateBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final Object value = iterator.current; switch (key) { case 'editing': result.editing.replace(serializers.deserialize(value, specifiedType: const FullType(GroupEntity)) as GroupEntity); break; case 'listUIState': result.listUIState.replace(serializers.deserialize(value, specifiedType: const FullType(ListUIState)) as ListUIState); break; case 'selectedId': result.selectedId = serializers.deserialize(value, specifiedType: const FullType(String)) as String; break; case 'forceSelected': result.forceSelected = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool; break; case 'tabIndex': result.tabIndex = serializers.deserialize(value, specifiedType: const FullType(int)) as int; break; } } return result.build(); } } class _$GroupState extends GroupState { @override final BuiltMap map; @override final BuiltList list; factory _$GroupState([void Function(GroupStateBuilder) updates]) => (new GroupStateBuilder()..update(updates))._build(); _$GroupState._({this.map, this.list}) : super._() { BuiltValueNullFieldError.checkNotNull(map, r'GroupState', 'map'); BuiltValueNullFieldError.checkNotNull(list, r'GroupState', 'list'); } @override GroupState rebuild(void Function(GroupStateBuilder) updates) => (toBuilder()..update(updates)).build(); @override GroupStateBuilder toBuilder() => new GroupStateBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is GroupState && map == other.map && list == other.list; } int __hashCode; @override int get hashCode { if (__hashCode != null) return __hashCode; var _$hash = 0; _$hash = $jc(_$hash, map.hashCode); _$hash = $jc(_$hash, list.hashCode); _$hash = $jf(_$hash); return __hashCode ??= _$hash; } @override String toString() { return (newBuiltValueToStringHelper(r'GroupState') ..add('map', map) ..add('list', list)) .toString(); } } class GroupStateBuilder implements Builder { _$GroupState _$v; MapBuilder _map; MapBuilder get map => _$this._map ??= new MapBuilder(); set map(MapBuilder map) => _$this._map = map; ListBuilder _list; ListBuilder get list => _$this._list ??= new ListBuilder(); set list(ListBuilder list) => _$this._list = list; GroupStateBuilder(); GroupStateBuilder get _$this { final $v = _$v; if ($v != null) { _map = $v.map.toBuilder(); _list = $v.list.toBuilder(); _$v = null; } return this; } @override void replace(GroupState other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$GroupState; } @override void update(void Function(GroupStateBuilder) updates) { if (updates != null) updates(this); } @override GroupState build() => _build(); _$GroupState _build() { _$GroupState _$result; try { _$result = _$v ?? new _$GroupState._(map: map.build(), list: list.build()); } catch (_) { String _$failedField; try { _$failedField = 'map'; map.build(); _$failedField = 'list'; list.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'GroupState', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } class _$GroupUIState extends GroupUIState { @override final GroupEntity editing; @override final ListUIState listUIState; @override final String selectedId; @override final bool forceSelected; @override final int tabIndex; @override final Completer saveCompleter; @override final Completer cancelCompleter; factory _$GroupUIState([void Function(GroupUIStateBuilder) updates]) => (new GroupUIStateBuilder()..update(updates))._build(); _$GroupUIState._( {this.editing, this.listUIState, this.selectedId, this.forceSelected, this.tabIndex, this.saveCompleter, this.cancelCompleter}) : super._() { BuiltValueNullFieldError.checkNotNull( listUIState, r'GroupUIState', 'listUIState'); BuiltValueNullFieldError.checkNotNull( tabIndex, r'GroupUIState', 'tabIndex'); } @override GroupUIState rebuild(void Function(GroupUIStateBuilder) updates) => (toBuilder()..update(updates)).build(); @override GroupUIStateBuilder toBuilder() => new GroupUIStateBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is GroupUIState && editing == other.editing && listUIState == other.listUIState && selectedId == other.selectedId && forceSelected == other.forceSelected && tabIndex == other.tabIndex && saveCompleter == other.saveCompleter && cancelCompleter == other.cancelCompleter; } int __hashCode; @override int get hashCode { if (__hashCode != null) return __hashCode; var _$hash = 0; _$hash = $jc(_$hash, editing.hashCode); _$hash = $jc(_$hash, listUIState.hashCode); _$hash = $jc(_$hash, selectedId.hashCode); _$hash = $jc(_$hash, forceSelected.hashCode); _$hash = $jc(_$hash, tabIndex.hashCode); _$hash = $jc(_$hash, saveCompleter.hashCode); _$hash = $jc(_$hash, cancelCompleter.hashCode); _$hash = $jf(_$hash); return __hashCode ??= _$hash; } @override String toString() { return (newBuiltValueToStringHelper(r'GroupUIState') ..add('editing', editing) ..add('listUIState', listUIState) ..add('selectedId', selectedId) ..add('forceSelected', forceSelected) ..add('tabIndex', tabIndex) ..add('saveCompleter', saveCompleter) ..add('cancelCompleter', cancelCompleter)) .toString(); } } class GroupUIStateBuilder implements Builder { _$GroupUIState _$v; GroupEntityBuilder _editing; GroupEntityBuilder get editing => _$this._editing ??= new GroupEntityBuilder(); set editing(GroupEntityBuilder editing) => _$this._editing = editing; ListUIStateBuilder _listUIState; ListUIStateBuilder get listUIState => _$this._listUIState ??= new ListUIStateBuilder(); set listUIState(ListUIStateBuilder listUIState) => _$this._listUIState = listUIState; String _selectedId; String get selectedId => _$this._selectedId; set selectedId(String selectedId) => _$this._selectedId = selectedId; bool _forceSelected; bool get forceSelected => _$this._forceSelected; set forceSelected(bool forceSelected) => _$this._forceSelected = forceSelected; int _tabIndex; int get tabIndex => _$this._tabIndex; set tabIndex(int tabIndex) => _$this._tabIndex = tabIndex; Completer _saveCompleter; Completer get saveCompleter => _$this._saveCompleter; set saveCompleter(Completer saveCompleter) => _$this._saveCompleter = saveCompleter; Completer _cancelCompleter; Completer get cancelCompleter => _$this._cancelCompleter; set cancelCompleter(Completer cancelCompleter) => _$this._cancelCompleter = cancelCompleter; GroupUIStateBuilder(); GroupUIStateBuilder get _$this { final $v = _$v; if ($v != null) { _editing = $v.editing?.toBuilder(); _listUIState = $v.listUIState.toBuilder(); _selectedId = $v.selectedId; _forceSelected = $v.forceSelected; _tabIndex = $v.tabIndex; _saveCompleter = $v.saveCompleter; _cancelCompleter = $v.cancelCompleter; _$v = null; } return this; } @override void replace(GroupUIState other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$GroupUIState; } @override void update(void Function(GroupUIStateBuilder) updates) { if (updates != null) updates(this); } @override GroupUIState build() => _build(); _$GroupUIState _build() { _$GroupUIState _$result; try { _$result = _$v ?? new _$GroupUIState._( editing: _editing?.build(), listUIState: listUIState.build(), selectedId: selectedId, forceSelected: forceSelected, tabIndex: BuiltValueNullFieldError.checkNotNull( tabIndex, r'GroupUIState', 'tabIndex'), saveCompleter: saveCompleter, cancelCompleter: cancelCompleter); } catch (_) { String _$failedField; try { _$failedField = 'editing'; _editing?.build(); _$failedField = 'listUIState'; listUIState.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'GroupUIState', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } // ignore_for_file: deprecated_member_use_from_same_package,type=lint