// GENERATED CODE - DO NOT MODIFY BY HAND part of 'static_state.dart'; // ************************************************************************** // 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_catches_without_on_clauses // ignore_for_file: avoid_returning_this // ignore_for_file: lines_longer_than_80_chars // ignore_for_file: omit_local_variable_types // ignore_for_file: prefer_expression_function_bodies // ignore_for_file: sort_constructors_first Serializer _$staticStateSerializer = new _$StaticStateSerializer(); class _$StaticStateSerializer implements StructuredSerializer { @override final Iterable types = const [StaticState, _$StaticState]; @override final String wireName = 'StaticState'; @override Iterable serialize(Serializers serializers, StaticState object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'currencyMap', serializers.serialize(object.currencyMap, specifiedType: const FullType(BuiltMap, const [const FullType(int), const FullType(CurrencyEntity)])), 'sizeMap', serializers.serialize(object.sizeMap, specifiedType: const FullType(BuiltMap, const [const FullType(int), const FullType(SizeEntity)])), 'industryMap', serializers.serialize(object.industryMap, specifiedType: const FullType(BuiltMap, const [const FullType(int), const FullType(IndustryEntity)])), 'timezoneMap', serializers.serialize(object.timezoneMap, specifiedType: const FullType(BuiltMap, const [const FullType(int), const FullType(TimezoneEntity)])), 'dateFormatMap', serializers.serialize(object.dateFormatMap, specifiedType: const FullType(BuiltMap, const [const FullType(int), const FullType(DateFormatEntity)])), 'datetimeFormatMap', serializers.serialize(object.datetimeFormatMap, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(DatetimeFormatEntity) ])), 'languageMap', serializers.serialize(object.languageMap, specifiedType: const FullType(BuiltMap, const [const FullType(int), const FullType(LanguageEntity)])), 'paymentTypeMap', serializers.serialize(object.paymentTypeMap, specifiedType: const FullType(BuiltMap, const [const FullType(int), const FullType(PaymentTypeEntity)])), 'countryMap', serializers.serialize(object.countryMap, specifiedType: const FullType(BuiltMap, const [const FullType(int), const FullType(CountryEntity)])), 'invoiceStatusMap', serializers.serialize(object.invoiceStatusMap, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(InvoiceStatusEntity) ])), 'frequencyMap', serializers.serialize(object.frequencyMap, specifiedType: const FullType(BuiltMap, const [const FullType(int), const FullType(FrequencyEntity)])), ]; return result; } @override StaticState deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new StaticStateBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as String; iterator.moveNext(); final dynamic value = iterator.current; switch (key) { case 'currencyMap': result.currencyMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(CurrencyEntity) ])) as BuiltMap); break; case 'sizeMap': result.sizeMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(SizeEntity) ])) as BuiltMap); break; case 'industryMap': result.industryMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(IndustryEntity) ])) as BuiltMap); break; case 'timezoneMap': result.timezoneMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(TimezoneEntity) ])) as BuiltMap); break; case 'dateFormatMap': result.dateFormatMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(DateFormatEntity) ])) as BuiltMap); break; case 'datetimeFormatMap': result.datetimeFormatMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(DatetimeFormatEntity) ])) as BuiltMap); break; case 'languageMap': result.languageMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(LanguageEntity) ])) as BuiltMap); break; case 'paymentTypeMap': result.paymentTypeMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(PaymentTypeEntity) ])) as BuiltMap); break; case 'countryMap': result.countryMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(CountryEntity) ])) as BuiltMap); break; case 'invoiceStatusMap': result.invoiceStatusMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(InvoiceStatusEntity) ])) as BuiltMap); break; case 'frequencyMap': result.frequencyMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(int), const FullType(FrequencyEntity) ])) as BuiltMap); break; } } return result.build(); } } class _$StaticState extends StaticState { @override final BuiltMap currencyMap; @override final BuiltMap sizeMap; @override final BuiltMap industryMap; @override final BuiltMap timezoneMap; @override final BuiltMap dateFormatMap; @override final BuiltMap datetimeFormatMap; @override final BuiltMap languageMap; @override final BuiltMap paymentTypeMap; @override final BuiltMap countryMap; @override final BuiltMap invoiceStatusMap; @override final BuiltMap frequencyMap; factory _$StaticState([void updates(StaticStateBuilder b)]) => (new StaticStateBuilder()..update(updates)).build(); _$StaticState._( {this.currencyMap, this.sizeMap, this.industryMap, this.timezoneMap, this.dateFormatMap, this.datetimeFormatMap, this.languageMap, this.paymentTypeMap, this.countryMap, this.invoiceStatusMap, this.frequencyMap}) : super._() { if (currencyMap == null) throw new BuiltValueNullFieldError('StaticState', 'currencyMap'); if (sizeMap == null) throw new BuiltValueNullFieldError('StaticState', 'sizeMap'); if (industryMap == null) throw new BuiltValueNullFieldError('StaticState', 'industryMap'); if (timezoneMap == null) throw new BuiltValueNullFieldError('StaticState', 'timezoneMap'); if (dateFormatMap == null) throw new BuiltValueNullFieldError('StaticState', 'dateFormatMap'); if (datetimeFormatMap == null) throw new BuiltValueNullFieldError('StaticState', 'datetimeFormatMap'); if (languageMap == null) throw new BuiltValueNullFieldError('StaticState', 'languageMap'); if (paymentTypeMap == null) throw new BuiltValueNullFieldError('StaticState', 'paymentTypeMap'); if (countryMap == null) throw new BuiltValueNullFieldError('StaticState', 'countryMap'); if (invoiceStatusMap == null) throw new BuiltValueNullFieldError('StaticState', 'invoiceStatusMap'); if (frequencyMap == null) throw new BuiltValueNullFieldError('StaticState', 'frequencyMap'); } @override StaticState rebuild(void updates(StaticStateBuilder b)) => (toBuilder()..update(updates)).build(); @override StaticStateBuilder toBuilder() => new StaticStateBuilder()..replace(this); @override bool operator ==(dynamic other) { if (identical(other, this)) return true; if (other is! StaticState) return false; return currencyMap == other.currencyMap && sizeMap == other.sizeMap && industryMap == other.industryMap && timezoneMap == other.timezoneMap && dateFormatMap == other.dateFormatMap && datetimeFormatMap == other.datetimeFormatMap && languageMap == other.languageMap && paymentTypeMap == other.paymentTypeMap && countryMap == other.countryMap && invoiceStatusMap == other.invoiceStatusMap && frequencyMap == other.frequencyMap; } @override int get hashCode { return $jf($jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc( $jc($jc(0, currencyMap.hashCode), sizeMap.hashCode), industryMap.hashCode), timezoneMap.hashCode), dateFormatMap.hashCode), datetimeFormatMap.hashCode), languageMap.hashCode), paymentTypeMap.hashCode), countryMap.hashCode), invoiceStatusMap.hashCode), frequencyMap.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper('StaticState') ..add('currencyMap', currencyMap) ..add('sizeMap', sizeMap) ..add('industryMap', industryMap) ..add('timezoneMap', timezoneMap) ..add('dateFormatMap', dateFormatMap) ..add('datetimeFormatMap', datetimeFormatMap) ..add('languageMap', languageMap) ..add('paymentTypeMap', paymentTypeMap) ..add('countryMap', countryMap) ..add('invoiceStatusMap', invoiceStatusMap) ..add('frequencyMap', frequencyMap)) .toString(); } } class StaticStateBuilder implements Builder { _$StaticState _$v; MapBuilder _currencyMap; MapBuilder get currencyMap => _$this._currencyMap ??= new MapBuilder(); set currencyMap(MapBuilder currencyMap) => _$this._currencyMap = currencyMap; MapBuilder _sizeMap; MapBuilder get sizeMap => _$this._sizeMap ??= new MapBuilder(); set sizeMap(MapBuilder sizeMap) => _$this._sizeMap = sizeMap; MapBuilder _industryMap; MapBuilder get industryMap => _$this._industryMap ??= new MapBuilder(); set industryMap(MapBuilder industryMap) => _$this._industryMap = industryMap; MapBuilder _timezoneMap; MapBuilder get timezoneMap => _$this._timezoneMap ??= new MapBuilder(); set timezoneMap(MapBuilder timezoneMap) => _$this._timezoneMap = timezoneMap; MapBuilder _dateFormatMap; MapBuilder get dateFormatMap => _$this._dateFormatMap ??= new MapBuilder(); set dateFormatMap(MapBuilder dateFormatMap) => _$this._dateFormatMap = dateFormatMap; MapBuilder _datetimeFormatMap; MapBuilder get datetimeFormatMap => _$this._datetimeFormatMap ??= new MapBuilder(); set datetimeFormatMap( MapBuilder datetimeFormatMap) => _$this._datetimeFormatMap = datetimeFormatMap; MapBuilder _languageMap; MapBuilder get languageMap => _$this._languageMap ??= new MapBuilder(); set languageMap(MapBuilder languageMap) => _$this._languageMap = languageMap; MapBuilder _paymentTypeMap; MapBuilder get paymentTypeMap => _$this._paymentTypeMap ??= new MapBuilder(); set paymentTypeMap(MapBuilder paymentTypeMap) => _$this._paymentTypeMap = paymentTypeMap; MapBuilder _countryMap; MapBuilder get countryMap => _$this._countryMap ??= new MapBuilder(); set countryMap(MapBuilder countryMap) => _$this._countryMap = countryMap; MapBuilder _invoiceStatusMap; MapBuilder get invoiceStatusMap => _$this._invoiceStatusMap ??= new MapBuilder(); set invoiceStatusMap(MapBuilder invoiceStatusMap) => _$this._invoiceStatusMap = invoiceStatusMap; MapBuilder _frequencyMap; MapBuilder get frequencyMap => _$this._frequencyMap ??= new MapBuilder(); set frequencyMap(MapBuilder frequencyMap) => _$this._frequencyMap = frequencyMap; StaticStateBuilder(); StaticStateBuilder get _$this { if (_$v != null) { _currencyMap = _$v.currencyMap?.toBuilder(); _sizeMap = _$v.sizeMap?.toBuilder(); _industryMap = _$v.industryMap?.toBuilder(); _timezoneMap = _$v.timezoneMap?.toBuilder(); _dateFormatMap = _$v.dateFormatMap?.toBuilder(); _datetimeFormatMap = _$v.datetimeFormatMap?.toBuilder(); _languageMap = _$v.languageMap?.toBuilder(); _paymentTypeMap = _$v.paymentTypeMap?.toBuilder(); _countryMap = _$v.countryMap?.toBuilder(); _invoiceStatusMap = _$v.invoiceStatusMap?.toBuilder(); _frequencyMap = _$v.frequencyMap?.toBuilder(); _$v = null; } return this; } @override void replace(StaticState other) { if (other == null) throw new ArgumentError.notNull('other'); _$v = other as _$StaticState; } @override void update(void updates(StaticStateBuilder b)) { if (updates != null) updates(this); } @override _$StaticState build() { _$StaticState _$result; try { _$result = _$v ?? new _$StaticState._( currencyMap: currencyMap.build(), sizeMap: sizeMap.build(), industryMap: industryMap.build(), timezoneMap: timezoneMap.build(), dateFormatMap: dateFormatMap.build(), datetimeFormatMap: datetimeFormatMap.build(), languageMap: languageMap.build(), paymentTypeMap: paymentTypeMap.build(), countryMap: countryMap.build(), invoiceStatusMap: invoiceStatusMap.build(), frequencyMap: frequencyMap.build()); } catch (_) { String _$failedField; try { _$failedField = 'currencyMap'; currencyMap.build(); _$failedField = 'sizeMap'; sizeMap.build(); _$failedField = 'industryMap'; industryMap.build(); _$failedField = 'timezoneMap'; timezoneMap.build(); _$failedField = 'dateFormatMap'; dateFormatMap.build(); _$failedField = 'datetimeFormatMap'; datetimeFormatMap.build(); _$failedField = 'languageMap'; languageMap.build(); _$failedField = 'paymentTypeMap'; paymentTypeMap.build(); _$failedField = 'countryMap'; countryMap.build(); _$failedField = 'invoiceStatusMap'; invoiceStatusMap.build(); _$failedField = 'frequencyMap'; frequencyMap.build(); } catch (e) { throw new BuiltValueNestedFieldError( 'StaticState', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } }