295 lines
9.4 KiB
Dart
295 lines
9.4 KiB
Dart
// coverage:ignore-file
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// ignore_for_file: type=lint
|
|
// 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
|
|
|
|
part of 'create_ticket_dto.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
T _$identity<T>(T value) => value;
|
|
|
|
final _privateConstructorUsedError = UnsupportedError(
|
|
'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',
|
|
);
|
|
|
|
/// @nodoc
|
|
mixin _$CreateTicketDto {
|
|
Collection? get collection => throw _privateConstructorUsedError;
|
|
String? get question => throw _privateConstructorUsedError;
|
|
Uint8List? get questionImage => throw _privateConstructorUsedError;
|
|
String? get answer => throw _privateConstructorUsedError;
|
|
Uint8List? get answerImage => throw _privateConstructorUsedError;
|
|
bool? get needRevert => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of CreateTicketDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$CreateTicketDtoCopyWith<CreateTicketDto> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $CreateTicketDtoCopyWith<$Res> {
|
|
factory $CreateTicketDtoCopyWith(
|
|
CreateTicketDto value,
|
|
$Res Function(CreateTicketDto) then,
|
|
) = _$CreateTicketDtoCopyWithImpl<$Res, CreateTicketDto>;
|
|
@useResult
|
|
$Res call({
|
|
Collection? collection,
|
|
String? question,
|
|
Uint8List? questionImage,
|
|
String? answer,
|
|
Uint8List? answerImage,
|
|
bool? needRevert,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$CreateTicketDtoCopyWithImpl<$Res, $Val extends CreateTicketDto>
|
|
implements $CreateTicketDtoCopyWith<$Res> {
|
|
_$CreateTicketDtoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of CreateTicketDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? collection = freezed,
|
|
Object? question = freezed,
|
|
Object? questionImage = freezed,
|
|
Object? answer = freezed,
|
|
Object? answerImage = freezed,
|
|
Object? needRevert = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
collection:
|
|
freezed == collection
|
|
? _value.collection
|
|
: collection // ignore: cast_nullable_to_non_nullable
|
|
as Collection?,
|
|
question:
|
|
freezed == question
|
|
? _value.question
|
|
: question // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
questionImage:
|
|
freezed == questionImage
|
|
? _value.questionImage
|
|
: questionImage // ignore: cast_nullable_to_non_nullable
|
|
as Uint8List?,
|
|
answer:
|
|
freezed == answer
|
|
? _value.answer
|
|
: answer // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
answerImage:
|
|
freezed == answerImage
|
|
? _value.answerImage
|
|
: answerImage // ignore: cast_nullable_to_non_nullable
|
|
as Uint8List?,
|
|
needRevert:
|
|
freezed == needRevert
|
|
? _value.needRevert
|
|
: needRevert // ignore: cast_nullable_to_non_nullable
|
|
as bool?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$CreateTicketDtoImplCopyWith<$Res>
|
|
implements $CreateTicketDtoCopyWith<$Res> {
|
|
factory _$$CreateTicketDtoImplCopyWith(
|
|
_$CreateTicketDtoImpl value,
|
|
$Res Function(_$CreateTicketDtoImpl) then,
|
|
) = __$$CreateTicketDtoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
Collection? collection,
|
|
String? question,
|
|
Uint8List? questionImage,
|
|
String? answer,
|
|
Uint8List? answerImage,
|
|
bool? needRevert,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$CreateTicketDtoImplCopyWithImpl<$Res>
|
|
extends _$CreateTicketDtoCopyWithImpl<$Res, _$CreateTicketDtoImpl>
|
|
implements _$$CreateTicketDtoImplCopyWith<$Res> {
|
|
__$$CreateTicketDtoImplCopyWithImpl(
|
|
_$CreateTicketDtoImpl _value,
|
|
$Res Function(_$CreateTicketDtoImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of CreateTicketDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? collection = freezed,
|
|
Object? question = freezed,
|
|
Object? questionImage = freezed,
|
|
Object? answer = freezed,
|
|
Object? answerImage = freezed,
|
|
Object? needRevert = freezed,
|
|
}) {
|
|
return _then(
|
|
_$CreateTicketDtoImpl(
|
|
collection:
|
|
freezed == collection
|
|
? _value.collection
|
|
: collection // ignore: cast_nullable_to_non_nullable
|
|
as Collection?,
|
|
question:
|
|
freezed == question
|
|
? _value.question
|
|
: question // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
questionImage:
|
|
freezed == questionImage
|
|
? _value.questionImage
|
|
: questionImage // ignore: cast_nullable_to_non_nullable
|
|
as Uint8List?,
|
|
answer:
|
|
freezed == answer
|
|
? _value.answer
|
|
: answer // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
answerImage:
|
|
freezed == answerImage
|
|
? _value.answerImage
|
|
: answerImage // ignore: cast_nullable_to_non_nullable
|
|
as Uint8List?,
|
|
needRevert:
|
|
freezed == needRevert
|
|
? _value.needRevert
|
|
: needRevert // ignore: cast_nullable_to_non_nullable
|
|
as bool?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$CreateTicketDtoImpl implements _CreateTicketDto {
|
|
const _$CreateTicketDtoImpl({
|
|
this.collection,
|
|
this.question,
|
|
this.questionImage,
|
|
this.answer,
|
|
this.answerImage,
|
|
this.needRevert,
|
|
});
|
|
|
|
@override
|
|
final Collection? collection;
|
|
@override
|
|
final String? question;
|
|
@override
|
|
final Uint8List? questionImage;
|
|
@override
|
|
final String? answer;
|
|
@override
|
|
final Uint8List? answerImage;
|
|
@override
|
|
final bool? needRevert;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'CreateTicketDto(collection: $collection, question: $question, questionImage: $questionImage, answer: $answer, answerImage: $answerImage, needRevert: $needRevert)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$CreateTicketDtoImpl &&
|
|
const DeepCollectionEquality().equals(
|
|
other.collection,
|
|
collection,
|
|
) &&
|
|
(identical(other.question, question) ||
|
|
other.question == question) &&
|
|
const DeepCollectionEquality().equals(
|
|
other.questionImage,
|
|
questionImage,
|
|
) &&
|
|
(identical(other.answer, answer) || other.answer == answer) &&
|
|
const DeepCollectionEquality().equals(
|
|
other.answerImage,
|
|
answerImage,
|
|
) &&
|
|
(identical(other.needRevert, needRevert) ||
|
|
other.needRevert == needRevert));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(collection),
|
|
question,
|
|
const DeepCollectionEquality().hash(questionImage),
|
|
answer,
|
|
const DeepCollectionEquality().hash(answerImage),
|
|
needRevert,
|
|
);
|
|
|
|
/// Create a copy of CreateTicketDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$CreateTicketDtoImplCopyWith<_$CreateTicketDtoImpl> get copyWith =>
|
|
__$$CreateTicketDtoImplCopyWithImpl<_$CreateTicketDtoImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
}
|
|
|
|
abstract class _CreateTicketDto implements CreateTicketDto {
|
|
const factory _CreateTicketDto({
|
|
final Collection? collection,
|
|
final String? question,
|
|
final Uint8List? questionImage,
|
|
final String? answer,
|
|
final Uint8List? answerImage,
|
|
final bool? needRevert,
|
|
}) = _$CreateTicketDtoImpl;
|
|
|
|
@override
|
|
Collection? get collection;
|
|
@override
|
|
String? get question;
|
|
@override
|
|
Uint8List? get questionImage;
|
|
@override
|
|
String? get answer;
|
|
@override
|
|
Uint8List? get answerImage;
|
|
@override
|
|
bool? get needRevert;
|
|
|
|
/// Create a copy of CreateTicketDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$CreateTicketDtoImplCopyWith<_$CreateTicketDtoImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|