this repo has no description
at main 175 lines 5.8 kB view raw
1// coverage:ignore-file 2// GENERATED CODE - DO NOT MODIFY BY HAND 3// ignore_for_file: type=lint 4// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark 5 6part of 'delete_comment_request.dart'; 7 8// ************************************************************************** 9// FreezedGenerator 10// ************************************************************************** 11 12T _$identity<T>(T value) => value; 13 14final _privateConstructorUsedError = UnsupportedError( 15 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models', 16); 17 18DeleteCommentRequest _$DeleteCommentRequestFromJson(Map<String, dynamic> json) { 19 return _DeleteCommentRequest.fromJson(json); 20} 21 22/// @nodoc 23mixin _$DeleteCommentRequest { 24 String get uri => throw _privateConstructorUsedError; 25 26 /// Serializes this DeleteCommentRequest to a JSON map. 27 Map<String, dynamic> toJson() => throw _privateConstructorUsedError; 28 29 /// Create a copy of DeleteCommentRequest 30 /// with the given fields replaced by the non-null parameter values. 31 @JsonKey(includeFromJson: false, includeToJson: false) 32 $DeleteCommentRequestCopyWith<DeleteCommentRequest> get copyWith => 33 throw _privateConstructorUsedError; 34} 35 36/// @nodoc 37abstract class $DeleteCommentRequestCopyWith<$Res> { 38 factory $DeleteCommentRequestCopyWith( 39 DeleteCommentRequest value, 40 $Res Function(DeleteCommentRequest) then, 41 ) = _$DeleteCommentRequestCopyWithImpl<$Res, DeleteCommentRequest>; 42 @useResult 43 $Res call({String uri}); 44} 45 46/// @nodoc 47class _$DeleteCommentRequestCopyWithImpl< 48 $Res, 49 $Val extends DeleteCommentRequest 50> 51 implements $DeleteCommentRequestCopyWith<$Res> { 52 _$DeleteCommentRequestCopyWithImpl(this._value, this._then); 53 54 // ignore: unused_field 55 final $Val _value; 56 // ignore: unused_field 57 final $Res Function($Val) _then; 58 59 /// Create a copy of DeleteCommentRequest 60 /// with the given fields replaced by the non-null parameter values. 61 @pragma('vm:prefer-inline') 62 @override 63 $Res call({Object? uri = null}) { 64 return _then( 65 _value.copyWith( 66 uri: null == uri 67 ? _value.uri 68 : uri // ignore: cast_nullable_to_non_nullable 69 as String, 70 ) 71 as $Val, 72 ); 73 } 74} 75 76/// @nodoc 77abstract class _$$DeleteCommentRequestImplCopyWith<$Res> 78 implements $DeleteCommentRequestCopyWith<$Res> { 79 factory _$$DeleteCommentRequestImplCopyWith( 80 _$DeleteCommentRequestImpl value, 81 $Res Function(_$DeleteCommentRequestImpl) then, 82 ) = __$$DeleteCommentRequestImplCopyWithImpl<$Res>; 83 @override 84 @useResult 85 $Res call({String uri}); 86} 87 88/// @nodoc 89class __$$DeleteCommentRequestImplCopyWithImpl<$Res> 90 extends _$DeleteCommentRequestCopyWithImpl<$Res, _$DeleteCommentRequestImpl> 91 implements _$$DeleteCommentRequestImplCopyWith<$Res> { 92 __$$DeleteCommentRequestImplCopyWithImpl( 93 _$DeleteCommentRequestImpl _value, 94 $Res Function(_$DeleteCommentRequestImpl) _then, 95 ) : super(_value, _then); 96 97 /// Create a copy of DeleteCommentRequest 98 /// with the given fields replaced by the non-null parameter values. 99 @pragma('vm:prefer-inline') 100 @override 101 $Res call({Object? uri = null}) { 102 return _then( 103 _$DeleteCommentRequestImpl( 104 uri: null == uri 105 ? _value.uri 106 : uri // ignore: cast_nullable_to_non_nullable 107 as String, 108 ), 109 ); 110 } 111} 112 113/// @nodoc 114@JsonSerializable() 115class _$DeleteCommentRequestImpl implements _DeleteCommentRequest { 116 const _$DeleteCommentRequestImpl({required this.uri}); 117 118 factory _$DeleteCommentRequestImpl.fromJson(Map<String, dynamic> json) => 119 _$$DeleteCommentRequestImplFromJson(json); 120 121 @override 122 final String uri; 123 124 @override 125 String toString() { 126 return 'DeleteCommentRequest(uri: $uri)'; 127 } 128 129 @override 130 bool operator ==(Object other) { 131 return identical(this, other) || 132 (other.runtimeType == runtimeType && 133 other is _$DeleteCommentRequestImpl && 134 (identical(other.uri, uri) || other.uri == uri)); 135 } 136 137 @JsonKey(includeFromJson: false, includeToJson: false) 138 @override 139 int get hashCode => Object.hash(runtimeType, uri); 140 141 /// Create a copy of DeleteCommentRequest 142 /// with the given fields replaced by the non-null parameter values. 143 @JsonKey(includeFromJson: false, includeToJson: false) 144 @override 145 @pragma('vm:prefer-inline') 146 _$$DeleteCommentRequestImplCopyWith<_$DeleteCommentRequestImpl> 147 get copyWith => 148 __$$DeleteCommentRequestImplCopyWithImpl<_$DeleteCommentRequestImpl>( 149 this, 150 _$identity, 151 ); 152 153 @override 154 Map<String, dynamic> toJson() { 155 return _$$DeleteCommentRequestImplToJson(this); 156 } 157} 158 159abstract class _DeleteCommentRequest implements DeleteCommentRequest { 160 const factory _DeleteCommentRequest({required final String uri}) = 161 _$DeleteCommentRequestImpl; 162 163 factory _DeleteCommentRequest.fromJson(Map<String, dynamic> json) = 164 _$DeleteCommentRequestImpl.fromJson; 165 166 @override 167 String get uri; 168 169 /// Create a copy of DeleteCommentRequest 170 /// with the given fields replaced by the non-null parameter values. 171 @override 172 @JsonKey(includeFromJson: false, includeToJson: false) 173 _$$DeleteCommentRequestImplCopyWith<_$DeleteCommentRequestImpl> 174 get copyWith => throw _privateConstructorUsedError; 175}