// GENERATED CODE - DO NOT MODIFY BY HAND part of 'gist.var.gql.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** Serializer _$gGistVarsSerializer = new _$GGistVarsSerializer(); class _$GGistVarsSerializer implements StructuredSerializer { @override final Iterable types = const [GGistVars, _$GGistVars]; @override final String wireName = 'GGistVars'; @override Iterable serialize(Serializers serializers, GGistVars object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'login', serializers.serialize(object.login, specifiedType: const FullType(String)), 'name', serializers.serialize(object.name, specifiedType: const FullType(String)), ]; return result; } @override GGistVars deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { final result = new GGistVarsBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current! as String; iterator.moveNext(); final Object? value = iterator.current; switch (key) { case 'login': result.login = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; case 'name': result.name = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; } } return result.build(); } } class _$GGistVars extends GGistVars { @override final String login; @override final String name; factory _$GGistVars([void Function(GGistVarsBuilder)? updates]) => (new GGistVarsBuilder()..update(updates))._build(); _$GGistVars._({required this.login, required this.name}) : super._() { BuiltValueNullFieldError.checkNotNull(login, r'GGistVars', 'login'); BuiltValueNullFieldError.checkNotNull(name, r'GGistVars', 'name'); } @override GGistVars rebuild(void Function(GGistVarsBuilder) updates) => (toBuilder()..update(updates)).build(); @override GGistVarsBuilder toBuilder() => new GGistVarsBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is GGistVars && login == other.login && name == other.name; } @override int get hashCode { return $jf($jc($jc(0, login.hashCode), name.hashCode)); } @override String toString() { return (newBuiltValueToStringHelper(r'GGistVars') ..add('login', login) ..add('name', name)) .toString(); } } class GGistVarsBuilder implements Builder { _$GGistVars? _$v; String? _login; String? get login => _$this._login; set login(String? login) => _$this._login = login; String? _name; String? get name => _$this._name; set name(String? name) => _$this._name = name; GGistVarsBuilder(); GGistVarsBuilder get _$this { final $v = _$v; if ($v != null) { _login = $v.login; _name = $v.name; _$v = null; } return this; } @override void replace(GGistVars other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$GGistVars; } @override void update(void Function(GGistVarsBuilder)? updates) { if (updates != null) updates(this); } @override GGistVars build() => _build(); _$GGistVars _build() { final _$result = _$v ?? new _$GGistVars._( login: BuiltValueNullFieldError.checkNotNull( login, r'GGistVars', 'login'), name: BuiltValueNullFieldError.checkNotNull( name, r'GGistVars', 'name')); replace(_$result); return _$result; } } // ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas