forked from eatvio/eatvio_app
185 lines
6.1 KiB
Dart
185 lines
6.1 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 'credentials_model.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');
|
|
|
|
CredentialsModel _$CredentialsModelFromJson(Map<String, dynamic> json) {
|
|
return _CredentialsModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$CredentialsModel {
|
|
String get email => throw _privateConstructorUsedError;
|
|
String get password => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this CredentialsModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of CredentialsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$CredentialsModelCopyWith<CredentialsModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $CredentialsModelCopyWith<$Res> {
|
|
factory $CredentialsModelCopyWith(
|
|
CredentialsModel value, $Res Function(CredentialsModel) then) =
|
|
_$CredentialsModelCopyWithImpl<$Res, CredentialsModel>;
|
|
@useResult
|
|
$Res call({String email, String password});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$CredentialsModelCopyWithImpl<$Res, $Val extends CredentialsModel>
|
|
implements $CredentialsModelCopyWith<$Res> {
|
|
_$CredentialsModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of CredentialsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? email = null,
|
|
Object? password = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
email: null == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
password: null == password
|
|
? _value.password
|
|
: password // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$CredentialsModelImplCopyWith<$Res>
|
|
implements $CredentialsModelCopyWith<$Res> {
|
|
factory _$$CredentialsModelImplCopyWith(_$CredentialsModelImpl value,
|
|
$Res Function(_$CredentialsModelImpl) then) =
|
|
__$$CredentialsModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({String email, String password});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$CredentialsModelImplCopyWithImpl<$Res>
|
|
extends _$CredentialsModelCopyWithImpl<$Res, _$CredentialsModelImpl>
|
|
implements _$$CredentialsModelImplCopyWith<$Res> {
|
|
__$$CredentialsModelImplCopyWithImpl(_$CredentialsModelImpl _value,
|
|
$Res Function(_$CredentialsModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of CredentialsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? email = null,
|
|
Object? password = null,
|
|
}) {
|
|
return _then(_$CredentialsModelImpl(
|
|
email: null == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
password: null == password
|
|
? _value.password
|
|
: password // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$CredentialsModelImpl implements _CredentialsModel {
|
|
const _$CredentialsModelImpl({required this.email, required this.password});
|
|
|
|
factory _$CredentialsModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$CredentialsModelImplFromJson(json);
|
|
|
|
@override
|
|
final String email;
|
|
@override
|
|
final String password;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'CredentialsModel(email: $email, password: $password)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$CredentialsModelImpl &&
|
|
(identical(other.email, email) || other.email == email) &&
|
|
(identical(other.password, password) ||
|
|
other.password == password));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, email, password);
|
|
|
|
/// Create a copy of CredentialsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$CredentialsModelImplCopyWith<_$CredentialsModelImpl> get copyWith =>
|
|
__$$CredentialsModelImplCopyWithImpl<_$CredentialsModelImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$CredentialsModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _CredentialsModel implements CredentialsModel {
|
|
const factory _CredentialsModel(
|
|
{required final String email,
|
|
required final String password}) = _$CredentialsModelImpl;
|
|
|
|
factory _CredentialsModel.fromJson(Map<String, dynamic> json) =
|
|
_$CredentialsModelImpl.fromJson;
|
|
|
|
@override
|
|
String get email;
|
|
@override
|
|
String get password;
|
|
|
|
/// Create a copy of CredentialsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$CredentialsModelImplCopyWith<_$CredentialsModelImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|