|
1 | 1 | import 'package:gql/ast.dart'; |
2 | 2 |
|
| 3 | +class Input$I { |
| 4 | + factory Input$I({String? a, @Deprecated('Please don\'t') String? d}) => |
| 5 | + Input$I._({if (a != null) r'a': a, if (d != null) r'd': d}); |
| 6 | + |
| 7 | + Input$I._(this._$data); |
| 8 | + |
| 9 | + factory Input$I.fromJson(Map<String, dynamic> data) { |
| 10 | + final result$data = <String, dynamic>{}; |
| 11 | + if (data.containsKey('a')) { |
| 12 | + final l$a = data['a']; |
| 13 | + result$data['a'] = (l$a as String?); |
| 14 | + } |
| 15 | + if (data.containsKey('d')) { |
| 16 | + final l$d = data['d']; |
| 17 | + result$data['d'] = (l$d as String?); |
| 18 | + } |
| 19 | + return Input$I._(result$data); |
| 20 | + } |
| 21 | + |
| 22 | + Map<String, dynamic> _$data; |
| 23 | + |
| 24 | + String? get a => (_$data['a'] as String?); |
| 25 | + |
| 26 | + String? get d => (_$data['d'] as String?); |
| 27 | + |
| 28 | + Map<String, dynamic> toJson() { |
| 29 | + final result$data = <String, dynamic>{}; |
| 30 | + if (_$data.containsKey('a')) { |
| 31 | + final l$a = a; |
| 32 | + result$data['a'] = l$a; |
| 33 | + } |
| 34 | + if (_$data.containsKey('d')) { |
| 35 | + final l$d = d; |
| 36 | + result$data['d'] = l$d; |
| 37 | + } |
| 38 | + return result$data; |
| 39 | + } |
| 40 | + |
| 41 | + CopyWith$Input$I<Input$I> get copyWith => CopyWith$Input$I(this, (i) => i); |
| 42 | + |
| 43 | + @override |
| 44 | + bool operator ==(Object other) { |
| 45 | + if (identical(this, other)) { |
| 46 | + return true; |
| 47 | + } |
| 48 | + if (other is! Input$I || runtimeType != other.runtimeType) { |
| 49 | + return false; |
| 50 | + } |
| 51 | + final l$a = a; |
| 52 | + final lOther$a = other.a; |
| 53 | + if (_$data.containsKey('a') != other._$data.containsKey('a')) { |
| 54 | + return false; |
| 55 | + } |
| 56 | + if (l$a != lOther$a) { |
| 57 | + return false; |
| 58 | + } |
| 59 | + final l$d = d; |
| 60 | + final lOther$d = other.d; |
| 61 | + if (_$data.containsKey('d') != other._$data.containsKey('d')) { |
| 62 | + return false; |
| 63 | + } |
| 64 | + if (l$d != lOther$d) { |
| 65 | + return false; |
| 66 | + } |
| 67 | + return true; |
| 68 | + } |
| 69 | + |
| 70 | + @override |
| 71 | + int get hashCode { |
| 72 | + final l$a = a; |
| 73 | + final l$d = d; |
| 74 | + return Object.hashAll([ |
| 75 | + _$data.containsKey('a') ? l$a : const {}, |
| 76 | + _$data.containsKey('d') ? l$d : const {}, |
| 77 | + ]); |
| 78 | + } |
| 79 | +} |
| 80 | + |
| 81 | +abstract class CopyWith$Input$I<TRes> { |
| 82 | + factory CopyWith$Input$I(Input$I instance, TRes Function(Input$I) then) = |
| 83 | + _CopyWithImpl$Input$I; |
| 84 | + |
| 85 | + factory CopyWith$Input$I.stub(TRes res) = _CopyWithStubImpl$Input$I; |
| 86 | + |
| 87 | + TRes call({String? a, String? d}); |
| 88 | +} |
| 89 | + |
| 90 | +class _CopyWithImpl$Input$I<TRes> implements CopyWith$Input$I<TRes> { |
| 91 | + _CopyWithImpl$Input$I(this._instance, this._then); |
| 92 | + |
| 93 | + final Input$I _instance; |
| 94 | + |
| 95 | + final TRes Function(Input$I) _then; |
| 96 | + |
| 97 | + static const _undefined = <dynamic, dynamic>{}; |
| 98 | + |
| 99 | + TRes call({Object? a = _undefined, Object? d = _undefined}) => _then( |
| 100 | + Input$I._({ |
| 101 | + ..._instance._$data, |
| 102 | + if (a != _undefined) 'a': (a as String?), |
| 103 | + if (d != _undefined) 'd': (d as String?), |
| 104 | + }), |
| 105 | + ); |
| 106 | +} |
| 107 | + |
| 108 | +class _CopyWithStubImpl$Input$I<TRes> implements CopyWith$Input$I<TRes> { |
| 109 | + _CopyWithStubImpl$Input$I(this._res); |
| 110 | + |
| 111 | + TRes _res; |
| 112 | + |
| 113 | + call({String? a, String? d}) => _res; |
| 114 | +} |
| 115 | + |
3 | 116 | enum Enum$E { |
4 | 117 | A, |
5 | 118 | B, |
|
0 commit comments