bharat_erp/lib/shared/models/user_model.freezed.dart
SurendarSuri30 8f852ac4f6 Initial commit: Bharat ERP Flutter application.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-19 15:04:06 +05:30

1699 lines
52 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 'user_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',
);
UserModel _$UserModelFromJson(Map<String, dynamic> json) {
return _UserModel.fromJson(json);
}
/// @nodoc
mixin _$UserModel {
String get id => throw _privateConstructorUsedError;
@JsonKey(name: 'employee_id')
String get employeeId => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
String get email => throw _privateConstructorUsedError;
String get mobile => throw _privateConstructorUsedError;
String get role => throw _privateConstructorUsedError;
String? get department => throw _privateConstructorUsedError;
String get status => throw _privateConstructorUsedError;
@JsonKey(name: 'company_id')
String? get companyId => throw _privateConstructorUsedError;
@JsonKey(name: 'branch_id')
String? get branchId => throw _privateConstructorUsedError;
String? get avatarUrl => throw _privateConstructorUsedError;
List<String> get permissions => throw _privateConstructorUsedError;
DateTime? get createdAt => throw _privateConstructorUsedError;
DateTime? get updatedAt => throw _privateConstructorUsedError;
/// Serializes this UserModel to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of UserModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$UserModelCopyWith<UserModel> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $UserModelCopyWith<$Res> {
factory $UserModelCopyWith(UserModel value, $Res Function(UserModel) then) =
_$UserModelCopyWithImpl<$Res, UserModel>;
@useResult
$Res call({
String id,
@JsonKey(name: 'employee_id') String employeeId,
String name,
String email,
String mobile,
String role,
String? department,
String status,
@JsonKey(name: 'company_id') String? companyId,
@JsonKey(name: 'branch_id') String? branchId,
String? avatarUrl,
List<String> permissions,
DateTime? createdAt,
DateTime? updatedAt,
});
}
/// @nodoc
class _$UserModelCopyWithImpl<$Res, $Val extends UserModel>
implements $UserModelCopyWith<$Res> {
_$UserModelCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of UserModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? employeeId = null,
Object? name = null,
Object? email = null,
Object? mobile = null,
Object? role = null,
Object? department = freezed,
Object? status = null,
Object? companyId = freezed,
Object? branchId = freezed,
Object? avatarUrl = freezed,
Object? permissions = null,
Object? createdAt = freezed,
Object? updatedAt = freezed,
}) {
return _then(
_value.copyWith(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
employeeId: null == employeeId
? _value.employeeId
: employeeId // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
email: null == email
? _value.email
: email // ignore: cast_nullable_to_non_nullable
as String,
mobile: null == mobile
? _value.mobile
: mobile // ignore: cast_nullable_to_non_nullable
as String,
role: null == role
? _value.role
: role // ignore: cast_nullable_to_non_nullable
as String,
department: freezed == department
? _value.department
: department // ignore: cast_nullable_to_non_nullable
as String?,
status: null == status
? _value.status
: status // ignore: cast_nullable_to_non_nullable
as String,
companyId: freezed == companyId
? _value.companyId
: companyId // ignore: cast_nullable_to_non_nullable
as String?,
branchId: freezed == branchId
? _value.branchId
: branchId // ignore: cast_nullable_to_non_nullable
as String?,
avatarUrl: freezed == avatarUrl
? _value.avatarUrl
: avatarUrl // ignore: cast_nullable_to_non_nullable
as String?,
permissions: null == permissions
? _value.permissions
: permissions // ignore: cast_nullable_to_non_nullable
as List<String>,
createdAt: freezed == createdAt
? _value.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
updatedAt: freezed == updatedAt
? _value.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
)
as $Val,
);
}
}
/// @nodoc
abstract class _$$UserModelImplCopyWith<$Res>
implements $UserModelCopyWith<$Res> {
factory _$$UserModelImplCopyWith(
_$UserModelImpl value,
$Res Function(_$UserModelImpl) then,
) = __$$UserModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
String id,
@JsonKey(name: 'employee_id') String employeeId,
String name,
String email,
String mobile,
String role,
String? department,
String status,
@JsonKey(name: 'company_id') String? companyId,
@JsonKey(name: 'branch_id') String? branchId,
String? avatarUrl,
List<String> permissions,
DateTime? createdAt,
DateTime? updatedAt,
});
}
/// @nodoc
class __$$UserModelImplCopyWithImpl<$Res>
extends _$UserModelCopyWithImpl<$Res, _$UserModelImpl>
implements _$$UserModelImplCopyWith<$Res> {
__$$UserModelImplCopyWithImpl(
_$UserModelImpl _value,
$Res Function(_$UserModelImpl) _then,
) : super(_value, _then);
/// Create a copy of UserModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? employeeId = null,
Object? name = null,
Object? email = null,
Object? mobile = null,
Object? role = null,
Object? department = freezed,
Object? status = null,
Object? companyId = freezed,
Object? branchId = freezed,
Object? avatarUrl = freezed,
Object? permissions = null,
Object? createdAt = freezed,
Object? updatedAt = freezed,
}) {
return _then(
_$UserModelImpl(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
employeeId: null == employeeId
? _value.employeeId
: employeeId // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
email: null == email
? _value.email
: email // ignore: cast_nullable_to_non_nullable
as String,
mobile: null == mobile
? _value.mobile
: mobile // ignore: cast_nullable_to_non_nullable
as String,
role: null == role
? _value.role
: role // ignore: cast_nullable_to_non_nullable
as String,
department: freezed == department
? _value.department
: department // ignore: cast_nullable_to_non_nullable
as String?,
status: null == status
? _value.status
: status // ignore: cast_nullable_to_non_nullable
as String,
companyId: freezed == companyId
? _value.companyId
: companyId // ignore: cast_nullable_to_non_nullable
as String?,
branchId: freezed == branchId
? _value.branchId
: branchId // ignore: cast_nullable_to_non_nullable
as String?,
avatarUrl: freezed == avatarUrl
? _value.avatarUrl
: avatarUrl // ignore: cast_nullable_to_non_nullable
as String?,
permissions: null == permissions
? _value._permissions
: permissions // ignore: cast_nullable_to_non_nullable
as List<String>,
createdAt: freezed == createdAt
? _value.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
updatedAt: freezed == updatedAt
? _value.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
),
);
}
}
/// @nodoc
@JsonSerializable()
class _$UserModelImpl implements _UserModel {
const _$UserModelImpl({
required this.id,
@JsonKey(name: 'employee_id') required this.employeeId,
required this.name,
required this.email,
required this.mobile,
required this.role,
this.department,
this.status = 'active',
@JsonKey(name: 'company_id') this.companyId,
@JsonKey(name: 'branch_id') this.branchId,
this.avatarUrl,
final List<String> permissions = const [],
this.createdAt,
this.updatedAt,
}) : _permissions = permissions;
factory _$UserModelImpl.fromJson(Map<String, dynamic> json) =>
_$$UserModelImplFromJson(json);
@override
final String id;
@override
@JsonKey(name: 'employee_id')
final String employeeId;
@override
final String name;
@override
final String email;
@override
final String mobile;
@override
final String role;
@override
final String? department;
@override
@JsonKey()
final String status;
@override
@JsonKey(name: 'company_id')
final String? companyId;
@override
@JsonKey(name: 'branch_id')
final String? branchId;
@override
final String? avatarUrl;
final List<String> _permissions;
@override
@JsonKey()
List<String> get permissions {
if (_permissions is EqualUnmodifiableListView) return _permissions;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_permissions);
}
@override
final DateTime? createdAt;
@override
final DateTime? updatedAt;
@override
String toString() {
return 'UserModel(id: $id, employeeId: $employeeId, name: $name, email: $email, mobile: $mobile, role: $role, department: $department, status: $status, companyId: $companyId, branchId: $branchId, avatarUrl: $avatarUrl, permissions: $permissions, createdAt: $createdAt, updatedAt: $updatedAt)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$UserModelImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.employeeId, employeeId) ||
other.employeeId == employeeId) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.email, email) || other.email == email) &&
(identical(other.mobile, mobile) || other.mobile == mobile) &&
(identical(other.role, role) || other.role == role) &&
(identical(other.department, department) ||
other.department == department) &&
(identical(other.status, status) || other.status == status) &&
(identical(other.companyId, companyId) ||
other.companyId == companyId) &&
(identical(other.branchId, branchId) ||
other.branchId == branchId) &&
(identical(other.avatarUrl, avatarUrl) ||
other.avatarUrl == avatarUrl) &&
const DeepCollectionEquality().equals(
other._permissions,
_permissions,
) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
id,
employeeId,
name,
email,
mobile,
role,
department,
status,
companyId,
branchId,
avatarUrl,
const DeepCollectionEquality().hash(_permissions),
createdAt,
updatedAt,
);
/// Create a copy of UserModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$UserModelImplCopyWith<_$UserModelImpl> get copyWith =>
__$$UserModelImplCopyWithImpl<_$UserModelImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$UserModelImplToJson(this);
}
}
abstract class _UserModel implements UserModel {
const factory _UserModel({
required final String id,
@JsonKey(name: 'employee_id') required final String employeeId,
required final String name,
required final String email,
required final String mobile,
required final String role,
final String? department,
final String status,
@JsonKey(name: 'company_id') final String? companyId,
@JsonKey(name: 'branch_id') final String? branchId,
final String? avatarUrl,
final List<String> permissions,
final DateTime? createdAt,
final DateTime? updatedAt,
}) = _$UserModelImpl;
factory _UserModel.fromJson(Map<String, dynamic> json) =
_$UserModelImpl.fromJson;
@override
String get id;
@override
@JsonKey(name: 'employee_id')
String get employeeId;
@override
String get name;
@override
String get email;
@override
String get mobile;
@override
String get role;
@override
String? get department;
@override
String get status;
@override
@JsonKey(name: 'company_id')
String? get companyId;
@override
@JsonKey(name: 'branch_id')
String? get branchId;
@override
String? get avatarUrl;
@override
List<String> get permissions;
@override
DateTime? get createdAt;
@override
DateTime? get updatedAt;
/// Create a copy of UserModel
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$UserModelImplCopyWith<_$UserModelImpl> get copyWith =>
throw _privateConstructorUsedError;
}
AuthTokens _$AuthTokensFromJson(Map<String, dynamic> json) {
return _AuthTokens.fromJson(json);
}
/// @nodoc
mixin _$AuthTokens {
@JsonKey(name: 'access_token')
String get accessToken => throw _privateConstructorUsedError;
@JsonKey(name: 'refresh_token')
String get refreshToken => throw _privateConstructorUsedError;
@JsonKey(name: 'expires_in')
int? get expiresIn => throw _privateConstructorUsedError;
/// Serializes this AuthTokens to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of AuthTokens
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$AuthTokensCopyWith<AuthTokens> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $AuthTokensCopyWith<$Res> {
factory $AuthTokensCopyWith(
AuthTokens value,
$Res Function(AuthTokens) then,
) = _$AuthTokensCopyWithImpl<$Res, AuthTokens>;
@useResult
$Res call({
@JsonKey(name: 'access_token') String accessToken,
@JsonKey(name: 'refresh_token') String refreshToken,
@JsonKey(name: 'expires_in') int? expiresIn,
});
}
/// @nodoc
class _$AuthTokensCopyWithImpl<$Res, $Val extends AuthTokens>
implements $AuthTokensCopyWith<$Res> {
_$AuthTokensCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of AuthTokens
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? accessToken = null,
Object? refreshToken = null,
Object? expiresIn = freezed,
}) {
return _then(
_value.copyWith(
accessToken: null == accessToken
? _value.accessToken
: accessToken // ignore: cast_nullable_to_non_nullable
as String,
refreshToken: null == refreshToken
? _value.refreshToken
: refreshToken // ignore: cast_nullable_to_non_nullable
as String,
expiresIn: freezed == expiresIn
? _value.expiresIn
: expiresIn // ignore: cast_nullable_to_non_nullable
as int?,
)
as $Val,
);
}
}
/// @nodoc
abstract class _$$AuthTokensImplCopyWith<$Res>
implements $AuthTokensCopyWith<$Res> {
factory _$$AuthTokensImplCopyWith(
_$AuthTokensImpl value,
$Res Function(_$AuthTokensImpl) then,
) = __$$AuthTokensImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
@JsonKey(name: 'access_token') String accessToken,
@JsonKey(name: 'refresh_token') String refreshToken,
@JsonKey(name: 'expires_in') int? expiresIn,
});
}
/// @nodoc
class __$$AuthTokensImplCopyWithImpl<$Res>
extends _$AuthTokensCopyWithImpl<$Res, _$AuthTokensImpl>
implements _$$AuthTokensImplCopyWith<$Res> {
__$$AuthTokensImplCopyWithImpl(
_$AuthTokensImpl _value,
$Res Function(_$AuthTokensImpl) _then,
) : super(_value, _then);
/// Create a copy of AuthTokens
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? accessToken = null,
Object? refreshToken = null,
Object? expiresIn = freezed,
}) {
return _then(
_$AuthTokensImpl(
accessToken: null == accessToken
? _value.accessToken
: accessToken // ignore: cast_nullable_to_non_nullable
as String,
refreshToken: null == refreshToken
? _value.refreshToken
: refreshToken // ignore: cast_nullable_to_non_nullable
as String,
expiresIn: freezed == expiresIn
? _value.expiresIn
: expiresIn // ignore: cast_nullable_to_non_nullable
as int?,
),
);
}
}
/// @nodoc
@JsonSerializable()
class _$AuthTokensImpl implements _AuthTokens {
const _$AuthTokensImpl({
@JsonKey(name: 'access_token') required this.accessToken,
@JsonKey(name: 'refresh_token') required this.refreshToken,
@JsonKey(name: 'expires_in') this.expiresIn,
});
factory _$AuthTokensImpl.fromJson(Map<String, dynamic> json) =>
_$$AuthTokensImplFromJson(json);
@override
@JsonKey(name: 'access_token')
final String accessToken;
@override
@JsonKey(name: 'refresh_token')
final String refreshToken;
@override
@JsonKey(name: 'expires_in')
final int? expiresIn;
@override
String toString() {
return 'AuthTokens(accessToken: $accessToken, refreshToken: $refreshToken, expiresIn: $expiresIn)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$AuthTokensImpl &&
(identical(other.accessToken, accessToken) ||
other.accessToken == accessToken) &&
(identical(other.refreshToken, refreshToken) ||
other.refreshToken == refreshToken) &&
(identical(other.expiresIn, expiresIn) ||
other.expiresIn == expiresIn));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode =>
Object.hash(runtimeType, accessToken, refreshToken, expiresIn);
/// Create a copy of AuthTokens
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$AuthTokensImplCopyWith<_$AuthTokensImpl> get copyWith =>
__$$AuthTokensImplCopyWithImpl<_$AuthTokensImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$AuthTokensImplToJson(this);
}
}
abstract class _AuthTokens implements AuthTokens {
const factory _AuthTokens({
@JsonKey(name: 'access_token') required final String accessToken,
@JsonKey(name: 'refresh_token') required final String refreshToken,
@JsonKey(name: 'expires_in') final int? expiresIn,
}) = _$AuthTokensImpl;
factory _AuthTokens.fromJson(Map<String, dynamic> json) =
_$AuthTokensImpl.fromJson;
@override
@JsonKey(name: 'access_token')
String get accessToken;
@override
@JsonKey(name: 'refresh_token')
String get refreshToken;
@override
@JsonKey(name: 'expires_in')
int? get expiresIn;
/// Create a copy of AuthTokens
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$AuthTokensImplCopyWith<_$AuthTokensImpl> get copyWith =>
throw _privateConstructorUsedError;
}
LoginRequest _$LoginRequestFromJson(Map<String, dynamic> json) {
return _LoginRequest.fromJson(json);
}
/// @nodoc
mixin _$LoginRequest {
String get email => throw _privateConstructorUsedError;
String get password => throw _privateConstructorUsedError;
@JsonKey(name: 'company_code')
String? get companyCode => throw _privateConstructorUsedError;
/// Serializes this LoginRequest to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of LoginRequest
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$LoginRequestCopyWith<LoginRequest> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $LoginRequestCopyWith<$Res> {
factory $LoginRequestCopyWith(
LoginRequest value,
$Res Function(LoginRequest) then,
) = _$LoginRequestCopyWithImpl<$Res, LoginRequest>;
@useResult
$Res call({
String email,
String password,
@JsonKey(name: 'company_code') String? companyCode,
});
}
/// @nodoc
class _$LoginRequestCopyWithImpl<$Res, $Val extends LoginRequest>
implements $LoginRequestCopyWith<$Res> {
_$LoginRequestCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of LoginRequest
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? email = null,
Object? password = null,
Object? companyCode = freezed,
}) {
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,
companyCode: freezed == companyCode
? _value.companyCode
: companyCode // ignore: cast_nullable_to_non_nullable
as String?,
)
as $Val,
);
}
}
/// @nodoc
abstract class _$$LoginRequestImplCopyWith<$Res>
implements $LoginRequestCopyWith<$Res> {
factory _$$LoginRequestImplCopyWith(
_$LoginRequestImpl value,
$Res Function(_$LoginRequestImpl) then,
) = __$$LoginRequestImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
String email,
String password,
@JsonKey(name: 'company_code') String? companyCode,
});
}
/// @nodoc
class __$$LoginRequestImplCopyWithImpl<$Res>
extends _$LoginRequestCopyWithImpl<$Res, _$LoginRequestImpl>
implements _$$LoginRequestImplCopyWith<$Res> {
__$$LoginRequestImplCopyWithImpl(
_$LoginRequestImpl _value,
$Res Function(_$LoginRequestImpl) _then,
) : super(_value, _then);
/// Create a copy of LoginRequest
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? email = null,
Object? password = null,
Object? companyCode = freezed,
}) {
return _then(
_$LoginRequestImpl(
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,
companyCode: freezed == companyCode
? _value.companyCode
: companyCode // ignore: cast_nullable_to_non_nullable
as String?,
),
);
}
}
/// @nodoc
@JsonSerializable()
class _$LoginRequestImpl implements _LoginRequest {
const _$LoginRequestImpl({
required this.email,
required this.password,
@JsonKey(name: 'company_code') this.companyCode,
});
factory _$LoginRequestImpl.fromJson(Map<String, dynamic> json) =>
_$$LoginRequestImplFromJson(json);
@override
final String email;
@override
final String password;
@override
@JsonKey(name: 'company_code')
final String? companyCode;
@override
String toString() {
return 'LoginRequest(email: $email, password: $password, companyCode: $companyCode)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$LoginRequestImpl &&
(identical(other.email, email) || other.email == email) &&
(identical(other.password, password) ||
other.password == password) &&
(identical(other.companyCode, companyCode) ||
other.companyCode == companyCode));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, email, password, companyCode);
/// Create a copy of LoginRequest
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$LoginRequestImplCopyWith<_$LoginRequestImpl> get copyWith =>
__$$LoginRequestImplCopyWithImpl<_$LoginRequestImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$LoginRequestImplToJson(this);
}
}
abstract class _LoginRequest implements LoginRequest {
const factory _LoginRequest({
required final String email,
required final String password,
@JsonKey(name: 'company_code') final String? companyCode,
}) = _$LoginRequestImpl;
factory _LoginRequest.fromJson(Map<String, dynamic> json) =
_$LoginRequestImpl.fromJson;
@override
String get email;
@override
String get password;
@override
@JsonKey(name: 'company_code')
String? get companyCode;
/// Create a copy of LoginRequest
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$LoginRequestImplCopyWith<_$LoginRequestImpl> get copyWith =>
throw _privateConstructorUsedError;
}
LoginResponse _$LoginResponseFromJson(Map<String, dynamic> json) {
return _LoginResponse.fromJson(json);
}
/// @nodoc
mixin _$LoginResponse {
AuthTokens get tokens => throw _privateConstructorUsedError;
UserModel get user => throw _privateConstructorUsedError;
@JsonKey(name: 'requires_otp')
bool get requiresOtp => throw _privateConstructorUsedError;
/// Serializes this LoginResponse to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of LoginResponse
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$LoginResponseCopyWith<LoginResponse> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $LoginResponseCopyWith<$Res> {
factory $LoginResponseCopyWith(
LoginResponse value,
$Res Function(LoginResponse) then,
) = _$LoginResponseCopyWithImpl<$Res, LoginResponse>;
@useResult
$Res call({
AuthTokens tokens,
UserModel user,
@JsonKey(name: 'requires_otp') bool requiresOtp,
});
$AuthTokensCopyWith<$Res> get tokens;
$UserModelCopyWith<$Res> get user;
}
/// @nodoc
class _$LoginResponseCopyWithImpl<$Res, $Val extends LoginResponse>
implements $LoginResponseCopyWith<$Res> {
_$LoginResponseCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of LoginResponse
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? tokens = null,
Object? user = null,
Object? requiresOtp = null,
}) {
return _then(
_value.copyWith(
tokens: null == tokens
? _value.tokens
: tokens // ignore: cast_nullable_to_non_nullable
as AuthTokens,
user: null == user
? _value.user
: user // ignore: cast_nullable_to_non_nullable
as UserModel,
requiresOtp: null == requiresOtp
? _value.requiresOtp
: requiresOtp // ignore: cast_nullable_to_non_nullable
as bool,
)
as $Val,
);
}
/// Create a copy of LoginResponse
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$AuthTokensCopyWith<$Res> get tokens {
return $AuthTokensCopyWith<$Res>(_value.tokens, (value) {
return _then(_value.copyWith(tokens: value) as $Val);
});
}
/// Create a copy of LoginResponse
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$UserModelCopyWith<$Res> get user {
return $UserModelCopyWith<$Res>(_value.user, (value) {
return _then(_value.copyWith(user: value) as $Val);
});
}
}
/// @nodoc
abstract class _$$LoginResponseImplCopyWith<$Res>
implements $LoginResponseCopyWith<$Res> {
factory _$$LoginResponseImplCopyWith(
_$LoginResponseImpl value,
$Res Function(_$LoginResponseImpl) then,
) = __$$LoginResponseImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
AuthTokens tokens,
UserModel user,
@JsonKey(name: 'requires_otp') bool requiresOtp,
});
@override
$AuthTokensCopyWith<$Res> get tokens;
@override
$UserModelCopyWith<$Res> get user;
}
/// @nodoc
class __$$LoginResponseImplCopyWithImpl<$Res>
extends _$LoginResponseCopyWithImpl<$Res, _$LoginResponseImpl>
implements _$$LoginResponseImplCopyWith<$Res> {
__$$LoginResponseImplCopyWithImpl(
_$LoginResponseImpl _value,
$Res Function(_$LoginResponseImpl) _then,
) : super(_value, _then);
/// Create a copy of LoginResponse
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? tokens = null,
Object? user = null,
Object? requiresOtp = null,
}) {
return _then(
_$LoginResponseImpl(
tokens: null == tokens
? _value.tokens
: tokens // ignore: cast_nullable_to_non_nullable
as AuthTokens,
user: null == user
? _value.user
: user // ignore: cast_nullable_to_non_nullable
as UserModel,
requiresOtp: null == requiresOtp
? _value.requiresOtp
: requiresOtp // ignore: cast_nullable_to_non_nullable
as bool,
),
);
}
}
/// @nodoc
@JsonSerializable()
class _$LoginResponseImpl implements _LoginResponse {
const _$LoginResponseImpl({
required this.tokens,
required this.user,
@JsonKey(name: 'requires_otp') this.requiresOtp = false,
});
factory _$LoginResponseImpl.fromJson(Map<String, dynamic> json) =>
_$$LoginResponseImplFromJson(json);
@override
final AuthTokens tokens;
@override
final UserModel user;
@override
@JsonKey(name: 'requires_otp')
final bool requiresOtp;
@override
String toString() {
return 'LoginResponse(tokens: $tokens, user: $user, requiresOtp: $requiresOtp)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$LoginResponseImpl &&
(identical(other.tokens, tokens) || other.tokens == tokens) &&
(identical(other.user, user) || other.user == user) &&
(identical(other.requiresOtp, requiresOtp) ||
other.requiresOtp == requiresOtp));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, tokens, user, requiresOtp);
/// Create a copy of LoginResponse
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$LoginResponseImplCopyWith<_$LoginResponseImpl> get copyWith =>
__$$LoginResponseImplCopyWithImpl<_$LoginResponseImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$LoginResponseImplToJson(this);
}
}
abstract class _LoginResponse implements LoginResponse {
const factory _LoginResponse({
required final AuthTokens tokens,
required final UserModel user,
@JsonKey(name: 'requires_otp') final bool requiresOtp,
}) = _$LoginResponseImpl;
factory _LoginResponse.fromJson(Map<String, dynamic> json) =
_$LoginResponseImpl.fromJson;
@override
AuthTokens get tokens;
@override
UserModel get user;
@override
@JsonKey(name: 'requires_otp')
bool get requiresOtp;
/// Create a copy of LoginResponse
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$LoginResponseImplCopyWith<_$LoginResponseImpl> get copyWith =>
throw _privateConstructorUsedError;
}
OtpVerifyRequest _$OtpVerifyRequestFromJson(Map<String, dynamic> json) {
return _OtpVerifyRequest.fromJson(json);
}
/// @nodoc
mixin _$OtpVerifyRequest {
String get email => throw _privateConstructorUsedError;
String get otp => throw _privateConstructorUsedError;
/// Serializes this OtpVerifyRequest to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of OtpVerifyRequest
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$OtpVerifyRequestCopyWith<OtpVerifyRequest> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $OtpVerifyRequestCopyWith<$Res> {
factory $OtpVerifyRequestCopyWith(
OtpVerifyRequest value,
$Res Function(OtpVerifyRequest) then,
) = _$OtpVerifyRequestCopyWithImpl<$Res, OtpVerifyRequest>;
@useResult
$Res call({String email, String otp});
}
/// @nodoc
class _$OtpVerifyRequestCopyWithImpl<$Res, $Val extends OtpVerifyRequest>
implements $OtpVerifyRequestCopyWith<$Res> {
_$OtpVerifyRequestCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of OtpVerifyRequest
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? email = null, Object? otp = null}) {
return _then(
_value.copyWith(
email: null == email
? _value.email
: email // ignore: cast_nullable_to_non_nullable
as String,
otp: null == otp
? _value.otp
: otp // ignore: cast_nullable_to_non_nullable
as String,
)
as $Val,
);
}
}
/// @nodoc
abstract class _$$OtpVerifyRequestImplCopyWith<$Res>
implements $OtpVerifyRequestCopyWith<$Res> {
factory _$$OtpVerifyRequestImplCopyWith(
_$OtpVerifyRequestImpl value,
$Res Function(_$OtpVerifyRequestImpl) then,
) = __$$OtpVerifyRequestImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String email, String otp});
}
/// @nodoc
class __$$OtpVerifyRequestImplCopyWithImpl<$Res>
extends _$OtpVerifyRequestCopyWithImpl<$Res, _$OtpVerifyRequestImpl>
implements _$$OtpVerifyRequestImplCopyWith<$Res> {
__$$OtpVerifyRequestImplCopyWithImpl(
_$OtpVerifyRequestImpl _value,
$Res Function(_$OtpVerifyRequestImpl) _then,
) : super(_value, _then);
/// Create a copy of OtpVerifyRequest
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? email = null, Object? otp = null}) {
return _then(
_$OtpVerifyRequestImpl(
email: null == email
? _value.email
: email // ignore: cast_nullable_to_non_nullable
as String,
otp: null == otp
? _value.otp
: otp // ignore: cast_nullable_to_non_nullable
as String,
),
);
}
}
/// @nodoc
@JsonSerializable()
class _$OtpVerifyRequestImpl implements _OtpVerifyRequest {
const _$OtpVerifyRequestImpl({required this.email, required this.otp});
factory _$OtpVerifyRequestImpl.fromJson(Map<String, dynamic> json) =>
_$$OtpVerifyRequestImplFromJson(json);
@override
final String email;
@override
final String otp;
@override
String toString() {
return 'OtpVerifyRequest(email: $email, otp: $otp)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$OtpVerifyRequestImpl &&
(identical(other.email, email) || other.email == email) &&
(identical(other.otp, otp) || other.otp == otp));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, email, otp);
/// Create a copy of OtpVerifyRequest
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$OtpVerifyRequestImplCopyWith<_$OtpVerifyRequestImpl> get copyWith =>
__$$OtpVerifyRequestImplCopyWithImpl<_$OtpVerifyRequestImpl>(
this,
_$identity,
);
@override
Map<String, dynamic> toJson() {
return _$$OtpVerifyRequestImplToJson(this);
}
}
abstract class _OtpVerifyRequest implements OtpVerifyRequest {
const factory _OtpVerifyRequest({
required final String email,
required final String otp,
}) = _$OtpVerifyRequestImpl;
factory _OtpVerifyRequest.fromJson(Map<String, dynamic> json) =
_$OtpVerifyRequestImpl.fromJson;
@override
String get email;
@override
String get otp;
/// Create a copy of OtpVerifyRequest
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$OtpVerifyRequestImplCopyWith<_$OtpVerifyRequestImpl> get copyWith =>
throw _privateConstructorUsedError;
}
ChangePasswordRequest _$ChangePasswordRequestFromJson(
Map<String, dynamic> json,
) {
return _ChangePasswordRequest.fromJson(json);
}
/// @nodoc
mixin _$ChangePasswordRequest {
@JsonKey(name: 'current_password')
String get currentPassword => throw _privateConstructorUsedError;
@JsonKey(name: 'new_password')
String get newPassword => throw _privateConstructorUsedError;
@JsonKey(name: 'confirm_password')
String get confirmPassword => throw _privateConstructorUsedError;
/// Serializes this ChangePasswordRequest to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of ChangePasswordRequest
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$ChangePasswordRequestCopyWith<ChangePasswordRequest> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ChangePasswordRequestCopyWith<$Res> {
factory $ChangePasswordRequestCopyWith(
ChangePasswordRequest value,
$Res Function(ChangePasswordRequest) then,
) = _$ChangePasswordRequestCopyWithImpl<$Res, ChangePasswordRequest>;
@useResult
$Res call({
@JsonKey(name: 'current_password') String currentPassword,
@JsonKey(name: 'new_password') String newPassword,
@JsonKey(name: 'confirm_password') String confirmPassword,
});
}
/// @nodoc
class _$ChangePasswordRequestCopyWithImpl<
$Res,
$Val extends ChangePasswordRequest
>
implements $ChangePasswordRequestCopyWith<$Res> {
_$ChangePasswordRequestCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of ChangePasswordRequest
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? currentPassword = null,
Object? newPassword = null,
Object? confirmPassword = null,
}) {
return _then(
_value.copyWith(
currentPassword: null == currentPassword
? _value.currentPassword
: currentPassword // ignore: cast_nullable_to_non_nullable
as String,
newPassword: null == newPassword
? _value.newPassword
: newPassword // ignore: cast_nullable_to_non_nullable
as String,
confirmPassword: null == confirmPassword
? _value.confirmPassword
: confirmPassword // ignore: cast_nullable_to_non_nullable
as String,
)
as $Val,
);
}
}
/// @nodoc
abstract class _$$ChangePasswordRequestImplCopyWith<$Res>
implements $ChangePasswordRequestCopyWith<$Res> {
factory _$$ChangePasswordRequestImplCopyWith(
_$ChangePasswordRequestImpl value,
$Res Function(_$ChangePasswordRequestImpl) then,
) = __$$ChangePasswordRequestImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
@JsonKey(name: 'current_password') String currentPassword,
@JsonKey(name: 'new_password') String newPassword,
@JsonKey(name: 'confirm_password') String confirmPassword,
});
}
/// @nodoc
class __$$ChangePasswordRequestImplCopyWithImpl<$Res>
extends
_$ChangePasswordRequestCopyWithImpl<$Res, _$ChangePasswordRequestImpl>
implements _$$ChangePasswordRequestImplCopyWith<$Res> {
__$$ChangePasswordRequestImplCopyWithImpl(
_$ChangePasswordRequestImpl _value,
$Res Function(_$ChangePasswordRequestImpl) _then,
) : super(_value, _then);
/// Create a copy of ChangePasswordRequest
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? currentPassword = null,
Object? newPassword = null,
Object? confirmPassword = null,
}) {
return _then(
_$ChangePasswordRequestImpl(
currentPassword: null == currentPassword
? _value.currentPassword
: currentPassword // ignore: cast_nullable_to_non_nullable
as String,
newPassword: null == newPassword
? _value.newPassword
: newPassword // ignore: cast_nullable_to_non_nullable
as String,
confirmPassword: null == confirmPassword
? _value.confirmPassword
: confirmPassword // ignore: cast_nullable_to_non_nullable
as String,
),
);
}
}
/// @nodoc
@JsonSerializable()
class _$ChangePasswordRequestImpl implements _ChangePasswordRequest {
const _$ChangePasswordRequestImpl({
@JsonKey(name: 'current_password') required this.currentPassword,
@JsonKey(name: 'new_password') required this.newPassword,
@JsonKey(name: 'confirm_password') required this.confirmPassword,
});
factory _$ChangePasswordRequestImpl.fromJson(Map<String, dynamic> json) =>
_$$ChangePasswordRequestImplFromJson(json);
@override
@JsonKey(name: 'current_password')
final String currentPassword;
@override
@JsonKey(name: 'new_password')
final String newPassword;
@override
@JsonKey(name: 'confirm_password')
final String confirmPassword;
@override
String toString() {
return 'ChangePasswordRequest(currentPassword: $currentPassword, newPassword: $newPassword, confirmPassword: $confirmPassword)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ChangePasswordRequestImpl &&
(identical(other.currentPassword, currentPassword) ||
other.currentPassword == currentPassword) &&
(identical(other.newPassword, newPassword) ||
other.newPassword == newPassword) &&
(identical(other.confirmPassword, confirmPassword) ||
other.confirmPassword == confirmPassword));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode =>
Object.hash(runtimeType, currentPassword, newPassword, confirmPassword);
/// Create a copy of ChangePasswordRequest
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$ChangePasswordRequestImplCopyWith<_$ChangePasswordRequestImpl>
get copyWith =>
__$$ChangePasswordRequestImplCopyWithImpl<_$ChangePasswordRequestImpl>(
this,
_$identity,
);
@override
Map<String, dynamic> toJson() {
return _$$ChangePasswordRequestImplToJson(this);
}
}
abstract class _ChangePasswordRequest implements ChangePasswordRequest {
const factory _ChangePasswordRequest({
@JsonKey(name: 'current_password') required final String currentPassword,
@JsonKey(name: 'new_password') required final String newPassword,
@JsonKey(name: 'confirm_password') required final String confirmPassword,
}) = _$ChangePasswordRequestImpl;
factory _ChangePasswordRequest.fromJson(Map<String, dynamic> json) =
_$ChangePasswordRequestImpl.fromJson;
@override
@JsonKey(name: 'current_password')
String get currentPassword;
@override
@JsonKey(name: 'new_password')
String get newPassword;
@override
@JsonKey(name: 'confirm_password')
String get confirmPassword;
/// Create a copy of ChangePasswordRequest
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$ChangePasswordRequestImplCopyWith<_$ChangePasswordRequestImpl>
get copyWith => throw _privateConstructorUsedError;
}
ForgotPasswordRequest _$ForgotPasswordRequestFromJson(
Map<String, dynamic> json,
) {
return _ForgotPasswordRequest.fromJson(json);
}
/// @nodoc
mixin _$ForgotPasswordRequest {
String get email => throw _privateConstructorUsedError;
/// Serializes this ForgotPasswordRequest to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of ForgotPasswordRequest
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$ForgotPasswordRequestCopyWith<ForgotPasswordRequest> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ForgotPasswordRequestCopyWith<$Res> {
factory $ForgotPasswordRequestCopyWith(
ForgotPasswordRequest value,
$Res Function(ForgotPasswordRequest) then,
) = _$ForgotPasswordRequestCopyWithImpl<$Res, ForgotPasswordRequest>;
@useResult
$Res call({String email});
}
/// @nodoc
class _$ForgotPasswordRequestCopyWithImpl<
$Res,
$Val extends ForgotPasswordRequest
>
implements $ForgotPasswordRequestCopyWith<$Res> {
_$ForgotPasswordRequestCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of ForgotPasswordRequest
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? email = null}) {
return _then(
_value.copyWith(
email: null == email
? _value.email
: email // ignore: cast_nullable_to_non_nullable
as String,
)
as $Val,
);
}
}
/// @nodoc
abstract class _$$ForgotPasswordRequestImplCopyWith<$Res>
implements $ForgotPasswordRequestCopyWith<$Res> {
factory _$$ForgotPasswordRequestImplCopyWith(
_$ForgotPasswordRequestImpl value,
$Res Function(_$ForgotPasswordRequestImpl) then,
) = __$$ForgotPasswordRequestImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String email});
}
/// @nodoc
class __$$ForgotPasswordRequestImplCopyWithImpl<$Res>
extends
_$ForgotPasswordRequestCopyWithImpl<$Res, _$ForgotPasswordRequestImpl>
implements _$$ForgotPasswordRequestImplCopyWith<$Res> {
__$$ForgotPasswordRequestImplCopyWithImpl(
_$ForgotPasswordRequestImpl _value,
$Res Function(_$ForgotPasswordRequestImpl) _then,
) : super(_value, _then);
/// Create a copy of ForgotPasswordRequest
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? email = null}) {
return _then(
_$ForgotPasswordRequestImpl(
email: null == email
? _value.email
: email // ignore: cast_nullable_to_non_nullable
as String,
),
);
}
}
/// @nodoc
@JsonSerializable()
class _$ForgotPasswordRequestImpl implements _ForgotPasswordRequest {
const _$ForgotPasswordRequestImpl({required this.email});
factory _$ForgotPasswordRequestImpl.fromJson(Map<String, dynamic> json) =>
_$$ForgotPasswordRequestImplFromJson(json);
@override
final String email;
@override
String toString() {
return 'ForgotPasswordRequest(email: $email)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ForgotPasswordRequestImpl &&
(identical(other.email, email) || other.email == email));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, email);
/// Create a copy of ForgotPasswordRequest
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$ForgotPasswordRequestImplCopyWith<_$ForgotPasswordRequestImpl>
get copyWith =>
__$$ForgotPasswordRequestImplCopyWithImpl<_$ForgotPasswordRequestImpl>(
this,
_$identity,
);
@override
Map<String, dynamic> toJson() {
return _$$ForgotPasswordRequestImplToJson(this);
}
}
abstract class _ForgotPasswordRequest implements ForgotPasswordRequest {
const factory _ForgotPasswordRequest({required final String email}) =
_$ForgotPasswordRequestImpl;
factory _ForgotPasswordRequest.fromJson(Map<String, dynamic> json) =
_$ForgotPasswordRequestImpl.fromJson;
@override
String get email;
/// Create a copy of ForgotPasswordRequest
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$ForgotPasswordRequestImplCopyWith<_$ForgotPasswordRequestImpl>
get copyWith => throw _privateConstructorUsedError;
}