// GENERATED CODE - DO NOT MODIFY BY HAND part of 'content_string.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** Serializer> _$contentStringSerializer = _$ContentStringSerializer(); class _$ContentStringSerializer implements StructuredSerializer> { @override final Iterable types = const [ContentString, _$ContentString]; @override final String wireName = 'ContentString'; @override Iterable serialize(Serializers serializers, ContentString object, {FullType specifiedType = FullType.unspecified}) { final isUnderspecified = specifiedType.isUnspecified || specifiedType.parameters.isEmpty; if (!isUnderspecified) serializers.expectBuilder(specifiedType); final parameterT = isUnderspecified ? FullType.object : specifiedType.parameters[0]; final result = [ 'content', serializers.serialize(object.content, specifiedType: parameterT), ]; return result; } @override ContentString deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final isUnderspecified = specifiedType.isUnspecified || specifiedType.parameters.isEmpty; if (!isUnderspecified) serializers.expectBuilder(specifiedType); final parameterT = isUnderspecified ? FullType.object : specifiedType.parameters[0]; final result = isUnderspecified ? ContentStringBuilder() : serializers.newBuilder(specifiedType) as ContentStringBuilder; final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current! as String; iterator.moveNext(); final Object? value = iterator.current; switch (key) { case 'content': result.content = serializers.deserialize(value, specifiedType: parameterT); break; } } return result.build(); } } class _$ContentString extends ContentString { @override final T content; factory _$ContentString([void Function(ContentStringBuilder)? updates]) => (ContentStringBuilder()..update(updates))._build(); _$ContentString._({required this.content}) : super._() { BuiltValueNullFieldError.checkNotNull(content, r'ContentString', 'content'); if (T == dynamic) { throw BuiltValueMissingGenericsError(r'ContentString', 'T'); } } @override ContentString rebuild(void Function(ContentStringBuilder) updates) => (toBuilder()..update(updates)).build(); @override ContentStringBuilder toBuilder() => ContentStringBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is ContentString && content == other.content; } @override int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, content.hashCode); _$hash = $jf(_$hash); return _$hash; } @override String toString() { return (newBuiltValueToStringHelper(r'ContentString')..add('content', content)).toString(); } } class ContentStringBuilder implements Builder, ContentStringBuilder> { _$ContentString? _$v; T? _content; T? get content => _$this._content; set content(T? content) => _$this._content = content; ContentStringBuilder(); ContentStringBuilder get _$this { final $v = _$v; if ($v != null) { _content = $v.content; _$v = null; } return this; } @override void replace(ContentString other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$ContentString; } @override void update(void Function(ContentStringBuilder)? updates) { if (updates != null) updates(this); } @override ContentString build() => _build(); _$ContentString _build() { final _$result = _$v ?? _$ContentString._(content: BuiltValueNullFieldError.checkNotNull(content, r'ContentString', 'content')); replace(_$result); return _$result; } } // ignore_for_file: deprecated_member_use_from_same_package,type=lint