// GENERATED CODE - DO NOT MODIFY BY HAND part of 'static_state.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** 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(String), const FullType(CurrencyEntity)])), 'sizeMap', serializers.serialize(object.sizeMap, specifiedType: const FullType(BuiltMap, const [const FullType(String), const FullType(SizeEntity)])), 'gatewayMap', serializers.serialize(object.gatewayMap, specifiedType: const FullType(BuiltMap, const [const FullType(String), const FullType(GatewayEntity)])), 'industryMap', serializers.serialize(object.industryMap, specifiedType: const FullType(BuiltMap, const [const FullType(String), const FullType(IndustryEntity)])), 'timezoneMap', serializers.serialize(object.timezoneMap, specifiedType: const FullType(BuiltMap, const [const FullType(String), const FullType(TimezoneEntity)])), 'dateFormatMap', serializers.serialize(object.dateFormatMap, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(DateFormatEntity) ])), 'languageMap', serializers.serialize(object.languageMap, specifiedType: const FullType(BuiltMap, const [const FullType(String), const FullType(LanguageEntity)])), 'paymentTypeMap', serializers.serialize(object.paymentTypeMap, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(PaymentTypeEntity) ])), 'countryMap', serializers.serialize(object.countryMap, specifiedType: const FullType(BuiltMap, const [const FullType(String), const FullType(CountryEntity)])), 'templateMap', serializers.serialize(object.templateMap, specifiedType: const FullType(BuiltMap, const [const FullType(String), const FullType(TemplateEntity)])), ]; Object? value; value = object.updatedAt; if (value != null) { result ..add('updatedAt') ..add(serializers.serialize(value, specifiedType: const FullType(int))); } 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 Object? value = iterator.current; switch (key) { case 'updatedAt': result.updatedAt = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; break; case 'currencyMap': result.currencyMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(CurrencyEntity) ]))!); break; case 'sizeMap': result.sizeMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(SizeEntity) ]))!); break; case 'gatewayMap': result.gatewayMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(GatewayEntity) ]))!); break; case 'industryMap': result.industryMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(IndustryEntity) ]))!); break; case 'timezoneMap': result.timezoneMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(TimezoneEntity) ]))!); break; case 'dateFormatMap': result.dateFormatMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(DateFormatEntity) ]))!); break; case 'languageMap': result.languageMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(LanguageEntity) ]))!); break; case 'paymentTypeMap': result.paymentTypeMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(PaymentTypeEntity) ]))!); break; case 'countryMap': result.countryMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(CountryEntity) ]))!); break; case 'templateMap': result.templateMap.replace(serializers.deserialize(value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), const FullType(TemplateEntity) ]))!); break; } } return result.build(); } } class _$StaticState extends StaticState { @override final int? updatedAt; @override final BuiltMap currencyMap; @override final BuiltMap sizeMap; @override final BuiltMap gatewayMap; @override final BuiltMap industryMap; @override final BuiltMap timezoneMap; @override final BuiltMap dateFormatMap; @override final BuiltMap languageMap; @override final BuiltMap paymentTypeMap; @override final BuiltMap countryMap; @override final BuiltMap templateMap; factory _$StaticState([void Function(StaticStateBuilder)? updates]) => (new StaticStateBuilder()..update(updates))._build(); _$StaticState._( {this.updatedAt, required this.currencyMap, required this.sizeMap, required this.gatewayMap, required this.industryMap, required this.timezoneMap, required this.dateFormatMap, required this.languageMap, required this.paymentTypeMap, required this.countryMap, required this.templateMap}) : super._() { BuiltValueNullFieldError.checkNotNull( currencyMap, r'StaticState', 'currencyMap'); BuiltValueNullFieldError.checkNotNull(sizeMap, r'StaticState', 'sizeMap'); BuiltValueNullFieldError.checkNotNull( gatewayMap, r'StaticState', 'gatewayMap'); BuiltValueNullFieldError.checkNotNull( industryMap, r'StaticState', 'industryMap'); BuiltValueNullFieldError.checkNotNull( timezoneMap, r'StaticState', 'timezoneMap'); BuiltValueNullFieldError.checkNotNull( dateFormatMap, r'StaticState', 'dateFormatMap'); BuiltValueNullFieldError.checkNotNull( languageMap, r'StaticState', 'languageMap'); BuiltValueNullFieldError.checkNotNull( paymentTypeMap, r'StaticState', 'paymentTypeMap'); BuiltValueNullFieldError.checkNotNull( countryMap, r'StaticState', 'countryMap'); BuiltValueNullFieldError.checkNotNull( templateMap, r'StaticState', 'templateMap'); } @override StaticState rebuild(void Function(StaticStateBuilder) updates) => (toBuilder()..update(updates)).build(); @override StaticStateBuilder toBuilder() => new StaticStateBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is StaticState && updatedAt == other.updatedAt && currencyMap == other.currencyMap && sizeMap == other.sizeMap && gatewayMap == other.gatewayMap && industryMap == other.industryMap && timezoneMap == other.timezoneMap && dateFormatMap == other.dateFormatMap && languageMap == other.languageMap && paymentTypeMap == other.paymentTypeMap && countryMap == other.countryMap && templateMap == other.templateMap; } int? __hashCode; @override int get hashCode { if (__hashCode != null) return __hashCode!; var _$hash = 0; _$hash = $jc(_$hash, updatedAt.hashCode); _$hash = $jc(_$hash, currencyMap.hashCode); _$hash = $jc(_$hash, sizeMap.hashCode); _$hash = $jc(_$hash, gatewayMap.hashCode); _$hash = $jc(_$hash, industryMap.hashCode); _$hash = $jc(_$hash, timezoneMap.hashCode); _$hash = $jc(_$hash, dateFormatMap.hashCode); _$hash = $jc(_$hash, languageMap.hashCode); _$hash = $jc(_$hash, paymentTypeMap.hashCode); _$hash = $jc(_$hash, countryMap.hashCode); _$hash = $jc(_$hash, templateMap.hashCode); _$hash = $jf(_$hash); return __hashCode ??= _$hash; } @override String toString() { return (newBuiltValueToStringHelper(r'StaticState') ..add('updatedAt', updatedAt) ..add('currencyMap', currencyMap) ..add('sizeMap', sizeMap) ..add('gatewayMap', gatewayMap) ..add('industryMap', industryMap) ..add('timezoneMap', timezoneMap) ..add('dateFormatMap', dateFormatMap) ..add('languageMap', languageMap) ..add('paymentTypeMap', paymentTypeMap) ..add('countryMap', countryMap) ..add('templateMap', templateMap)) .toString(); } } class StaticStateBuilder implements Builder { _$StaticState? _$v; int? _updatedAt; int? get updatedAt => _$this._updatedAt; set updatedAt(int? updatedAt) => _$this._updatedAt = updatedAt; 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? _gatewayMap; MapBuilder get gatewayMap => _$this._gatewayMap ??= new MapBuilder(); set gatewayMap(MapBuilder? gatewayMap) => _$this._gatewayMap = gatewayMap; 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? _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? _templateMap; MapBuilder get templateMap => _$this._templateMap ??= new MapBuilder(); set templateMap(MapBuilder? templateMap) => _$this._templateMap = templateMap; StaticStateBuilder(); StaticStateBuilder get _$this { final $v = _$v; if ($v != null) { _updatedAt = $v.updatedAt; _currencyMap = $v.currencyMap.toBuilder(); _sizeMap = $v.sizeMap.toBuilder(); _gatewayMap = $v.gatewayMap.toBuilder(); _industryMap = $v.industryMap.toBuilder(); _timezoneMap = $v.timezoneMap.toBuilder(); _dateFormatMap = $v.dateFormatMap.toBuilder(); _languageMap = $v.languageMap.toBuilder(); _paymentTypeMap = $v.paymentTypeMap.toBuilder(); _countryMap = $v.countryMap.toBuilder(); _templateMap = $v.templateMap.toBuilder(); _$v = null; } return this; } @override void replace(StaticState other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$StaticState; } @override void update(void Function(StaticStateBuilder)? updates) { if (updates != null) updates(this); } @override StaticState build() => _build(); _$StaticState _build() { _$StaticState _$result; try { _$result = _$v ?? new _$StaticState._( updatedAt: updatedAt, currencyMap: currencyMap.build(), sizeMap: sizeMap.build(), gatewayMap: gatewayMap.build(), industryMap: industryMap.build(), timezoneMap: timezoneMap.build(), dateFormatMap: dateFormatMap.build(), languageMap: languageMap.build(), paymentTypeMap: paymentTypeMap.build(), countryMap: countryMap.build(), templateMap: templateMap.build()); } catch (_) { late String _$failedField; try { _$failedField = 'currencyMap'; currencyMap.build(); _$failedField = 'sizeMap'; sizeMap.build(); _$failedField = 'gatewayMap'; gatewayMap.build(); _$failedField = 'industryMap'; industryMap.build(); _$failedField = 'timezoneMap'; timezoneMap.build(); _$failedField = 'dateFormatMap'; dateFormatMap.build(); _$failedField = 'languageMap'; languageMap.build(); _$failedField = 'paymentTypeMap'; paymentTypeMap.build(); _$failedField = 'countryMap'; countryMap.build(); _$failedField = 'templateMap'; templateMap.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'StaticState', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } // ignore_for_file: deprecated_member_use_from_same_package,type=lint