## 주요 변경사항 ### 🏗️ Architecture - Repository 패턴 전면 도입 (인터페이스/구현체 분리) - Domain Layer에 Repository 인터페이스 정의 - Data Layer에 Repository 구현체 배치 - UseCase 의존성을 Service에서 Repository로 전환 ### 📦 Dependency Injection - GetIt 기반 DI Container 재구성 (lib/injection_container.dart) - Repository 인터페이스와 구현체 등록 - Service와 Repository 공존 (마이그레이션 기간) ### 🔄 Migration Status 완료: - License 모듈 (6개 UseCase) - Warehouse Location 모듈 (5개 UseCase) 진행중: - Auth 모듈 (2/5 UseCase) - Company 모듈 (1/6 UseCase) 대기: - User 모듈 (7개 UseCase) - Equipment 모듈 (4개 UseCase) ### 🎯 Controller 통합 - 중복 Controller 제거 (with_usecase 버전) - 단일 Controller로 통합 - UseCase 패턴 직접 적용 ### 🧹 코드 정리 - 임시 파일 제거 (test_*.md, task.md) - Node.js 아티팩트 제거 (package.json) - 불필요한 테스트 파일 정리 ### ✅ 테스트 개선 - Real API 중심 테스트 구조 - Mock 제거, 실제 API 엔드포인트 사용 - 통합 테스트 프레임워크 강화 ## 기술적 영향 - 의존성 역전 원칙 적용 - 레이어 간 결합도 감소 - 테스트 용이성 향상 - 확장성 및 유지보수성 개선 ## 다음 단계 1. User/Equipment 모듈 Repository 마이그레이션 2. Service Layer 점진적 제거 3. 캐싱 전략 구현 4. 성능 최적화
2036 lines
64 KiB
Dart
2036 lines
64 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_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');
|
|
|
|
UserDto _$UserDtoFromJson(Map<String, dynamic> json) {
|
|
return _UserDto.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$UserDto {
|
|
int get id => throw _privateConstructorUsedError;
|
|
String get username => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String? get email => throw _privateConstructorUsedError;
|
|
String? get phone => throw _privateConstructorUsedError;
|
|
String get role => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'company_id')
|
|
int? get companyId => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'company_name')
|
|
String? get companyName => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'branch_id')
|
|
int? get branchId => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'branch_name')
|
|
String? get branchName => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'is_active')
|
|
bool get isActive => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'last_login_at')
|
|
DateTime? get lastLoginAt => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'created_at')
|
|
DateTime get createdAt => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'updated_at')
|
|
DateTime get updatedAt => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this UserDto to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of UserDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$UserDtoCopyWith<UserDto> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $UserDtoCopyWith<$Res> {
|
|
factory $UserDtoCopyWith(UserDto value, $Res Function(UserDto) then) =
|
|
_$UserDtoCopyWithImpl<$Res, UserDto>;
|
|
@useResult
|
|
$Res call(
|
|
{int id,
|
|
String username,
|
|
String name,
|
|
String? email,
|
|
String? phone,
|
|
String role,
|
|
@JsonKey(name: 'company_id') int? companyId,
|
|
@JsonKey(name: 'company_name') String? companyName,
|
|
@JsonKey(name: 'branch_id') int? branchId,
|
|
@JsonKey(name: 'branch_name') String? branchName,
|
|
@JsonKey(name: 'is_active') bool isActive,
|
|
@JsonKey(name: 'last_login_at') DateTime? lastLoginAt,
|
|
@JsonKey(name: 'created_at') DateTime createdAt,
|
|
@JsonKey(name: 'updated_at') DateTime updatedAt});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$UserDtoCopyWithImpl<$Res, $Val extends UserDto>
|
|
implements $UserDtoCopyWith<$Res> {
|
|
_$UserDtoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of UserDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? username = null,
|
|
Object? name = null,
|
|
Object? email = freezed,
|
|
Object? phone = freezed,
|
|
Object? role = null,
|
|
Object? companyId = freezed,
|
|
Object? companyName = freezed,
|
|
Object? branchId = freezed,
|
|
Object? branchName = freezed,
|
|
Object? isActive = null,
|
|
Object? lastLoginAt = freezed,
|
|
Object? createdAt = null,
|
|
Object? updatedAt = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
username: null == username
|
|
? _value.username
|
|
: username // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
email: freezed == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
phone: freezed == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
role: null == role
|
|
? _value.role
|
|
: role // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
companyId: freezed == companyId
|
|
? _value.companyId
|
|
: companyId // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
companyName: freezed == companyName
|
|
? _value.companyName
|
|
: companyName // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
branchId: freezed == branchId
|
|
? _value.branchId
|
|
: branchId // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
branchName: freezed == branchName
|
|
? _value.branchName
|
|
: branchName // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
isActive: null == isActive
|
|
? _value.isActive
|
|
: isActive // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
lastLoginAt: freezed == lastLoginAt
|
|
? _value.lastLoginAt
|
|
: lastLoginAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
createdAt: null == createdAt
|
|
? _value.createdAt
|
|
: createdAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
updatedAt: null == updatedAt
|
|
? _value.updatedAt
|
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$UserDtoImplCopyWith<$Res> implements $UserDtoCopyWith<$Res> {
|
|
factory _$$UserDtoImplCopyWith(
|
|
_$UserDtoImpl value, $Res Function(_$UserDtoImpl) then) =
|
|
__$$UserDtoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{int id,
|
|
String username,
|
|
String name,
|
|
String? email,
|
|
String? phone,
|
|
String role,
|
|
@JsonKey(name: 'company_id') int? companyId,
|
|
@JsonKey(name: 'company_name') String? companyName,
|
|
@JsonKey(name: 'branch_id') int? branchId,
|
|
@JsonKey(name: 'branch_name') String? branchName,
|
|
@JsonKey(name: 'is_active') bool isActive,
|
|
@JsonKey(name: 'last_login_at') DateTime? lastLoginAt,
|
|
@JsonKey(name: 'created_at') DateTime createdAt,
|
|
@JsonKey(name: 'updated_at') DateTime updatedAt});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$UserDtoImplCopyWithImpl<$Res>
|
|
extends _$UserDtoCopyWithImpl<$Res, _$UserDtoImpl>
|
|
implements _$$UserDtoImplCopyWith<$Res> {
|
|
__$$UserDtoImplCopyWithImpl(
|
|
_$UserDtoImpl _value, $Res Function(_$UserDtoImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of UserDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? username = null,
|
|
Object? name = null,
|
|
Object? email = freezed,
|
|
Object? phone = freezed,
|
|
Object? role = null,
|
|
Object? companyId = freezed,
|
|
Object? companyName = freezed,
|
|
Object? branchId = freezed,
|
|
Object? branchName = freezed,
|
|
Object? isActive = null,
|
|
Object? lastLoginAt = freezed,
|
|
Object? createdAt = null,
|
|
Object? updatedAt = null,
|
|
}) {
|
|
return _then(_$UserDtoImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
username: null == username
|
|
? _value.username
|
|
: username // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
email: freezed == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
phone: freezed == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
role: null == role
|
|
? _value.role
|
|
: role // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
companyId: freezed == companyId
|
|
? _value.companyId
|
|
: companyId // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
companyName: freezed == companyName
|
|
? _value.companyName
|
|
: companyName // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
branchId: freezed == branchId
|
|
? _value.branchId
|
|
: branchId // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
branchName: freezed == branchName
|
|
? _value.branchName
|
|
: branchName // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
isActive: null == isActive
|
|
? _value.isActive
|
|
: isActive // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
lastLoginAt: freezed == lastLoginAt
|
|
? _value.lastLoginAt
|
|
: lastLoginAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime?,
|
|
createdAt: null == createdAt
|
|
? _value.createdAt
|
|
: createdAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
updatedAt: null == updatedAt
|
|
? _value.updatedAt
|
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$UserDtoImpl implements _UserDto {
|
|
const _$UserDtoImpl(
|
|
{required this.id,
|
|
required this.username,
|
|
required this.name,
|
|
this.email,
|
|
this.phone,
|
|
required this.role,
|
|
@JsonKey(name: 'company_id') this.companyId,
|
|
@JsonKey(name: 'company_name') this.companyName,
|
|
@JsonKey(name: 'branch_id') this.branchId,
|
|
@JsonKey(name: 'branch_name') this.branchName,
|
|
@JsonKey(name: 'is_active') required this.isActive,
|
|
@JsonKey(name: 'last_login_at') this.lastLoginAt,
|
|
@JsonKey(name: 'created_at') required this.createdAt,
|
|
@JsonKey(name: 'updated_at') required this.updatedAt});
|
|
|
|
factory _$UserDtoImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$UserDtoImplFromJson(json);
|
|
|
|
@override
|
|
final int id;
|
|
@override
|
|
final String username;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String? email;
|
|
@override
|
|
final String? phone;
|
|
@override
|
|
final String role;
|
|
@override
|
|
@JsonKey(name: 'company_id')
|
|
final int? companyId;
|
|
@override
|
|
@JsonKey(name: 'company_name')
|
|
final String? companyName;
|
|
@override
|
|
@JsonKey(name: 'branch_id')
|
|
final int? branchId;
|
|
@override
|
|
@JsonKey(name: 'branch_name')
|
|
final String? branchName;
|
|
@override
|
|
@JsonKey(name: 'is_active')
|
|
final bool isActive;
|
|
@override
|
|
@JsonKey(name: 'last_login_at')
|
|
final DateTime? lastLoginAt;
|
|
@override
|
|
@JsonKey(name: 'created_at')
|
|
final DateTime createdAt;
|
|
@override
|
|
@JsonKey(name: 'updated_at')
|
|
final DateTime updatedAt;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'UserDto(id: $id, username: $username, name: $name, email: $email, phone: $phone, role: $role, companyId: $companyId, companyName: $companyName, branchId: $branchId, branchName: $branchName, isActive: $isActive, lastLoginAt: $lastLoginAt, createdAt: $createdAt, updatedAt: $updatedAt)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$UserDtoImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.username, username) ||
|
|
other.username == username) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.email, email) || other.email == email) &&
|
|
(identical(other.phone, phone) || other.phone == phone) &&
|
|
(identical(other.role, role) || other.role == role) &&
|
|
(identical(other.companyId, companyId) ||
|
|
other.companyId == companyId) &&
|
|
(identical(other.companyName, companyName) ||
|
|
other.companyName == companyName) &&
|
|
(identical(other.branchId, branchId) ||
|
|
other.branchId == branchId) &&
|
|
(identical(other.branchName, branchName) ||
|
|
other.branchName == branchName) &&
|
|
(identical(other.isActive, isActive) ||
|
|
other.isActive == isActive) &&
|
|
(identical(other.lastLoginAt, lastLoginAt) ||
|
|
other.lastLoginAt == lastLoginAt) &&
|
|
(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,
|
|
username,
|
|
name,
|
|
email,
|
|
phone,
|
|
role,
|
|
companyId,
|
|
companyName,
|
|
branchId,
|
|
branchName,
|
|
isActive,
|
|
lastLoginAt,
|
|
createdAt,
|
|
updatedAt);
|
|
|
|
/// Create a copy of UserDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$UserDtoImplCopyWith<_$UserDtoImpl> get copyWith =>
|
|
__$$UserDtoImplCopyWithImpl<_$UserDtoImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$UserDtoImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _UserDto implements UserDto {
|
|
const factory _UserDto(
|
|
{required final int id,
|
|
required final String username,
|
|
required final String name,
|
|
final String? email,
|
|
final String? phone,
|
|
required final String role,
|
|
@JsonKey(name: 'company_id') final int? companyId,
|
|
@JsonKey(name: 'company_name') final String? companyName,
|
|
@JsonKey(name: 'branch_id') final int? branchId,
|
|
@JsonKey(name: 'branch_name') final String? branchName,
|
|
@JsonKey(name: 'is_active') required final bool isActive,
|
|
@JsonKey(name: 'last_login_at') final DateTime? lastLoginAt,
|
|
@JsonKey(name: 'created_at') required final DateTime createdAt,
|
|
@JsonKey(name: 'updated_at') required final DateTime updatedAt}) =
|
|
_$UserDtoImpl;
|
|
|
|
factory _UserDto.fromJson(Map<String, dynamic> json) = _$UserDtoImpl.fromJson;
|
|
|
|
@override
|
|
int get id;
|
|
@override
|
|
String get username;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String? get email;
|
|
@override
|
|
String? get phone;
|
|
@override
|
|
String get role;
|
|
@override
|
|
@JsonKey(name: 'company_id')
|
|
int? get companyId;
|
|
@override
|
|
@JsonKey(name: 'company_name')
|
|
String? get companyName;
|
|
@override
|
|
@JsonKey(name: 'branch_id')
|
|
int? get branchId;
|
|
@override
|
|
@JsonKey(name: 'branch_name')
|
|
String? get branchName;
|
|
@override
|
|
@JsonKey(name: 'is_active')
|
|
bool get isActive;
|
|
@override
|
|
@JsonKey(name: 'last_login_at')
|
|
DateTime? get lastLoginAt;
|
|
@override
|
|
@JsonKey(name: 'created_at')
|
|
DateTime get createdAt;
|
|
@override
|
|
@JsonKey(name: 'updated_at')
|
|
DateTime get updatedAt;
|
|
|
|
/// Create a copy of UserDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$UserDtoImplCopyWith<_$UserDtoImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
CreateUserRequest _$CreateUserRequestFromJson(Map<String, dynamic> json) {
|
|
return _CreateUserRequest.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$CreateUserRequest {
|
|
String get username => throw _privateConstructorUsedError;
|
|
String? get email => throw _privateConstructorUsedError;
|
|
String get password => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String? get phone => throw _privateConstructorUsedError;
|
|
String get role => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'company_id')
|
|
int? get companyId => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'branch_id')
|
|
int? get branchId => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this CreateUserRequest to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of CreateUserRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$CreateUserRequestCopyWith<CreateUserRequest> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $CreateUserRequestCopyWith<$Res> {
|
|
factory $CreateUserRequestCopyWith(
|
|
CreateUserRequest value, $Res Function(CreateUserRequest) then) =
|
|
_$CreateUserRequestCopyWithImpl<$Res, CreateUserRequest>;
|
|
@useResult
|
|
$Res call(
|
|
{String username,
|
|
String? email,
|
|
String password,
|
|
String name,
|
|
String? phone,
|
|
String role,
|
|
@JsonKey(name: 'company_id') int? companyId,
|
|
@JsonKey(name: 'branch_id') int? branchId});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$CreateUserRequestCopyWithImpl<$Res, $Val extends CreateUserRequest>
|
|
implements $CreateUserRequestCopyWith<$Res> {
|
|
_$CreateUserRequestCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of CreateUserRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? username = null,
|
|
Object? email = freezed,
|
|
Object? password = null,
|
|
Object? name = null,
|
|
Object? phone = freezed,
|
|
Object? role = null,
|
|
Object? companyId = freezed,
|
|
Object? branchId = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
username: null == username
|
|
? _value.username
|
|
: username // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
email: freezed == 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,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
phone: freezed == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
role: null == role
|
|
? _value.role
|
|
: role // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
companyId: freezed == companyId
|
|
? _value.companyId
|
|
: companyId // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
branchId: freezed == branchId
|
|
? _value.branchId
|
|
: branchId // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$CreateUserRequestImplCopyWith<$Res>
|
|
implements $CreateUserRequestCopyWith<$Res> {
|
|
factory _$$CreateUserRequestImplCopyWith(_$CreateUserRequestImpl value,
|
|
$Res Function(_$CreateUserRequestImpl) then) =
|
|
__$$CreateUserRequestImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String username,
|
|
String? email,
|
|
String password,
|
|
String name,
|
|
String? phone,
|
|
String role,
|
|
@JsonKey(name: 'company_id') int? companyId,
|
|
@JsonKey(name: 'branch_id') int? branchId});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$CreateUserRequestImplCopyWithImpl<$Res>
|
|
extends _$CreateUserRequestCopyWithImpl<$Res, _$CreateUserRequestImpl>
|
|
implements _$$CreateUserRequestImplCopyWith<$Res> {
|
|
__$$CreateUserRequestImplCopyWithImpl(_$CreateUserRequestImpl _value,
|
|
$Res Function(_$CreateUserRequestImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of CreateUserRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? username = null,
|
|
Object? email = freezed,
|
|
Object? password = null,
|
|
Object? name = null,
|
|
Object? phone = freezed,
|
|
Object? role = null,
|
|
Object? companyId = freezed,
|
|
Object? branchId = freezed,
|
|
}) {
|
|
return _then(_$CreateUserRequestImpl(
|
|
username: null == username
|
|
? _value.username
|
|
: username // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
email: freezed == 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,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
phone: freezed == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
role: null == role
|
|
? _value.role
|
|
: role // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
companyId: freezed == companyId
|
|
? _value.companyId
|
|
: companyId // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
branchId: freezed == branchId
|
|
? _value.branchId
|
|
: branchId // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$CreateUserRequestImpl implements _CreateUserRequest {
|
|
const _$CreateUserRequestImpl(
|
|
{required this.username,
|
|
this.email,
|
|
required this.password,
|
|
required this.name,
|
|
this.phone,
|
|
required this.role,
|
|
@JsonKey(name: 'company_id') this.companyId,
|
|
@JsonKey(name: 'branch_id') this.branchId});
|
|
|
|
factory _$CreateUserRequestImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$CreateUserRequestImplFromJson(json);
|
|
|
|
@override
|
|
final String username;
|
|
@override
|
|
final String? email;
|
|
@override
|
|
final String password;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String? phone;
|
|
@override
|
|
final String role;
|
|
@override
|
|
@JsonKey(name: 'company_id')
|
|
final int? companyId;
|
|
@override
|
|
@JsonKey(name: 'branch_id')
|
|
final int? branchId;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'CreateUserRequest(username: $username, email: $email, password: $password, name: $name, phone: $phone, role: $role, companyId: $companyId, branchId: $branchId)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$CreateUserRequestImpl &&
|
|
(identical(other.username, username) ||
|
|
other.username == username) &&
|
|
(identical(other.email, email) || other.email == email) &&
|
|
(identical(other.password, password) ||
|
|
other.password == password) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.phone, phone) || other.phone == phone) &&
|
|
(identical(other.role, role) || other.role == role) &&
|
|
(identical(other.companyId, companyId) ||
|
|
other.companyId == companyId) &&
|
|
(identical(other.branchId, branchId) ||
|
|
other.branchId == branchId));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, username, email, password, name,
|
|
phone, role, companyId, branchId);
|
|
|
|
/// Create a copy of CreateUserRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$CreateUserRequestImplCopyWith<_$CreateUserRequestImpl> get copyWith =>
|
|
__$$CreateUserRequestImplCopyWithImpl<_$CreateUserRequestImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$CreateUserRequestImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _CreateUserRequest implements CreateUserRequest {
|
|
const factory _CreateUserRequest(
|
|
{required final String username,
|
|
final String? email,
|
|
required final String password,
|
|
required final String name,
|
|
final String? phone,
|
|
required final String role,
|
|
@JsonKey(name: 'company_id') final int? companyId,
|
|
@JsonKey(name: 'branch_id') final int? branchId}) =
|
|
_$CreateUserRequestImpl;
|
|
|
|
factory _CreateUserRequest.fromJson(Map<String, dynamic> json) =
|
|
_$CreateUserRequestImpl.fromJson;
|
|
|
|
@override
|
|
String get username;
|
|
@override
|
|
String? get email;
|
|
@override
|
|
String get password;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String? get phone;
|
|
@override
|
|
String get role;
|
|
@override
|
|
@JsonKey(name: 'company_id')
|
|
int? get companyId;
|
|
@override
|
|
@JsonKey(name: 'branch_id')
|
|
int? get branchId;
|
|
|
|
/// Create a copy of CreateUserRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$CreateUserRequestImplCopyWith<_$CreateUserRequestImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
UpdateUserRequest _$UpdateUserRequestFromJson(Map<String, dynamic> json) {
|
|
return _UpdateUserRequest.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$UpdateUserRequest {
|
|
String? get name => throw _privateConstructorUsedError;
|
|
String? get email => throw _privateConstructorUsedError;
|
|
String? get password => throw _privateConstructorUsedError;
|
|
String? get phone => throw _privateConstructorUsedError;
|
|
String? get role => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'company_id')
|
|
int? get companyId => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'branch_id')
|
|
int? get branchId => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'is_active')
|
|
bool? get isActive => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this UpdateUserRequest to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of UpdateUserRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$UpdateUserRequestCopyWith<UpdateUserRequest> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $UpdateUserRequestCopyWith<$Res> {
|
|
factory $UpdateUserRequestCopyWith(
|
|
UpdateUserRequest value, $Res Function(UpdateUserRequest) then) =
|
|
_$UpdateUserRequestCopyWithImpl<$Res, UpdateUserRequest>;
|
|
@useResult
|
|
$Res call(
|
|
{String? name,
|
|
String? email,
|
|
String? password,
|
|
String? phone,
|
|
String? role,
|
|
@JsonKey(name: 'company_id') int? companyId,
|
|
@JsonKey(name: 'branch_id') int? branchId,
|
|
@JsonKey(name: 'is_active') bool? isActive});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$UpdateUserRequestCopyWithImpl<$Res, $Val extends UpdateUserRequest>
|
|
implements $UpdateUserRequestCopyWith<$Res> {
|
|
_$UpdateUserRequestCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of UpdateUserRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = freezed,
|
|
Object? email = freezed,
|
|
Object? password = freezed,
|
|
Object? phone = freezed,
|
|
Object? role = freezed,
|
|
Object? companyId = freezed,
|
|
Object? branchId = freezed,
|
|
Object? isActive = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
name: freezed == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
email: freezed == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
password: freezed == password
|
|
? _value.password
|
|
: password // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
phone: freezed == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
role: freezed == role
|
|
? _value.role
|
|
: role // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
companyId: freezed == companyId
|
|
? _value.companyId
|
|
: companyId // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
branchId: freezed == branchId
|
|
? _value.branchId
|
|
: branchId // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
isActive: freezed == isActive
|
|
? _value.isActive
|
|
: isActive // ignore: cast_nullable_to_non_nullable
|
|
as bool?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$UpdateUserRequestImplCopyWith<$Res>
|
|
implements $UpdateUserRequestCopyWith<$Res> {
|
|
factory _$$UpdateUserRequestImplCopyWith(_$UpdateUserRequestImpl value,
|
|
$Res Function(_$UpdateUserRequestImpl) then) =
|
|
__$$UpdateUserRequestImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String? name,
|
|
String? email,
|
|
String? password,
|
|
String? phone,
|
|
String? role,
|
|
@JsonKey(name: 'company_id') int? companyId,
|
|
@JsonKey(name: 'branch_id') int? branchId,
|
|
@JsonKey(name: 'is_active') bool? isActive});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$UpdateUserRequestImplCopyWithImpl<$Res>
|
|
extends _$UpdateUserRequestCopyWithImpl<$Res, _$UpdateUserRequestImpl>
|
|
implements _$$UpdateUserRequestImplCopyWith<$Res> {
|
|
__$$UpdateUserRequestImplCopyWithImpl(_$UpdateUserRequestImpl _value,
|
|
$Res Function(_$UpdateUserRequestImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of UpdateUserRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = freezed,
|
|
Object? email = freezed,
|
|
Object? password = freezed,
|
|
Object? phone = freezed,
|
|
Object? role = freezed,
|
|
Object? companyId = freezed,
|
|
Object? branchId = freezed,
|
|
Object? isActive = freezed,
|
|
}) {
|
|
return _then(_$UpdateUserRequestImpl(
|
|
name: freezed == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
email: freezed == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
password: freezed == password
|
|
? _value.password
|
|
: password // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
phone: freezed == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
role: freezed == role
|
|
? _value.role
|
|
: role // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
companyId: freezed == companyId
|
|
? _value.companyId
|
|
: companyId // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
branchId: freezed == branchId
|
|
? _value.branchId
|
|
: branchId // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
isActive: freezed == isActive
|
|
? _value.isActive
|
|
: isActive // ignore: cast_nullable_to_non_nullable
|
|
as bool?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$UpdateUserRequestImpl implements _UpdateUserRequest {
|
|
const _$UpdateUserRequestImpl(
|
|
{this.name,
|
|
this.email,
|
|
this.password,
|
|
this.phone,
|
|
this.role,
|
|
@JsonKey(name: 'company_id') this.companyId,
|
|
@JsonKey(name: 'branch_id') this.branchId,
|
|
@JsonKey(name: 'is_active') this.isActive});
|
|
|
|
factory _$UpdateUserRequestImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$UpdateUserRequestImplFromJson(json);
|
|
|
|
@override
|
|
final String? name;
|
|
@override
|
|
final String? email;
|
|
@override
|
|
final String? password;
|
|
@override
|
|
final String? phone;
|
|
@override
|
|
final String? role;
|
|
@override
|
|
@JsonKey(name: 'company_id')
|
|
final int? companyId;
|
|
@override
|
|
@JsonKey(name: 'branch_id')
|
|
final int? branchId;
|
|
@override
|
|
@JsonKey(name: 'is_active')
|
|
final bool? isActive;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'UpdateUserRequest(name: $name, email: $email, password: $password, phone: $phone, role: $role, companyId: $companyId, branchId: $branchId, isActive: $isActive)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$UpdateUserRequestImpl &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.email, email) || other.email == email) &&
|
|
(identical(other.password, password) ||
|
|
other.password == password) &&
|
|
(identical(other.phone, phone) || other.phone == phone) &&
|
|
(identical(other.role, role) || other.role == role) &&
|
|
(identical(other.companyId, companyId) ||
|
|
other.companyId == companyId) &&
|
|
(identical(other.branchId, branchId) ||
|
|
other.branchId == branchId) &&
|
|
(identical(other.isActive, isActive) ||
|
|
other.isActive == isActive));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, name, email, password, phone,
|
|
role, companyId, branchId, isActive);
|
|
|
|
/// Create a copy of UpdateUserRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$UpdateUserRequestImplCopyWith<_$UpdateUserRequestImpl> get copyWith =>
|
|
__$$UpdateUserRequestImplCopyWithImpl<_$UpdateUserRequestImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$UpdateUserRequestImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _UpdateUserRequest implements UpdateUserRequest {
|
|
const factory _UpdateUserRequest(
|
|
{final String? name,
|
|
final String? email,
|
|
final String? password,
|
|
final String? phone,
|
|
final String? role,
|
|
@JsonKey(name: 'company_id') final int? companyId,
|
|
@JsonKey(name: 'branch_id') final int? branchId,
|
|
@JsonKey(name: 'is_active') final bool? isActive}) =
|
|
_$UpdateUserRequestImpl;
|
|
|
|
factory _UpdateUserRequest.fromJson(Map<String, dynamic> json) =
|
|
_$UpdateUserRequestImpl.fromJson;
|
|
|
|
@override
|
|
String? get name;
|
|
@override
|
|
String? get email;
|
|
@override
|
|
String? get password;
|
|
@override
|
|
String? get phone;
|
|
@override
|
|
String? get role;
|
|
@override
|
|
@JsonKey(name: 'company_id')
|
|
int? get companyId;
|
|
@override
|
|
@JsonKey(name: 'branch_id')
|
|
int? get branchId;
|
|
@override
|
|
@JsonKey(name: 'is_active')
|
|
bool? get isActive;
|
|
|
|
/// Create a copy of UpdateUserRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$UpdateUserRequestImplCopyWith<_$UpdateUserRequestImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
ChangeStatusRequest _$ChangeStatusRequestFromJson(Map<String, dynamic> json) {
|
|
return _ChangeStatusRequest.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ChangeStatusRequest {
|
|
@JsonKey(name: 'is_active')
|
|
bool get isActive => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this ChangeStatusRequest to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ChangeStatusRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ChangeStatusRequestCopyWith<ChangeStatusRequest> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ChangeStatusRequestCopyWith<$Res> {
|
|
factory $ChangeStatusRequestCopyWith(
|
|
ChangeStatusRequest value, $Res Function(ChangeStatusRequest) then) =
|
|
_$ChangeStatusRequestCopyWithImpl<$Res, ChangeStatusRequest>;
|
|
@useResult
|
|
$Res call({@JsonKey(name: 'is_active') bool isActive});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ChangeStatusRequestCopyWithImpl<$Res, $Val extends ChangeStatusRequest>
|
|
implements $ChangeStatusRequestCopyWith<$Res> {
|
|
_$ChangeStatusRequestCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ChangeStatusRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? isActive = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
isActive: null == isActive
|
|
? _value.isActive
|
|
: isActive // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ChangeStatusRequestImplCopyWith<$Res>
|
|
implements $ChangeStatusRequestCopyWith<$Res> {
|
|
factory _$$ChangeStatusRequestImplCopyWith(_$ChangeStatusRequestImpl value,
|
|
$Res Function(_$ChangeStatusRequestImpl) then) =
|
|
__$$ChangeStatusRequestImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({@JsonKey(name: 'is_active') bool isActive});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ChangeStatusRequestImplCopyWithImpl<$Res>
|
|
extends _$ChangeStatusRequestCopyWithImpl<$Res, _$ChangeStatusRequestImpl>
|
|
implements _$$ChangeStatusRequestImplCopyWith<$Res> {
|
|
__$$ChangeStatusRequestImplCopyWithImpl(_$ChangeStatusRequestImpl _value,
|
|
$Res Function(_$ChangeStatusRequestImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of ChangeStatusRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? isActive = null,
|
|
}) {
|
|
return _then(_$ChangeStatusRequestImpl(
|
|
isActive: null == isActive
|
|
? _value.isActive
|
|
: isActive // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ChangeStatusRequestImpl implements _ChangeStatusRequest {
|
|
const _$ChangeStatusRequestImpl(
|
|
{@JsonKey(name: 'is_active') required this.isActive});
|
|
|
|
factory _$ChangeStatusRequestImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ChangeStatusRequestImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: 'is_active')
|
|
final bool isActive;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ChangeStatusRequest(isActive: $isActive)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ChangeStatusRequestImpl &&
|
|
(identical(other.isActive, isActive) ||
|
|
other.isActive == isActive));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, isActive);
|
|
|
|
/// Create a copy of ChangeStatusRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ChangeStatusRequestImplCopyWith<_$ChangeStatusRequestImpl> get copyWith =>
|
|
__$$ChangeStatusRequestImplCopyWithImpl<_$ChangeStatusRequestImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ChangeStatusRequestImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ChangeStatusRequest implements ChangeStatusRequest {
|
|
const factory _ChangeStatusRequest(
|
|
{@JsonKey(name: 'is_active') required final bool isActive}) =
|
|
_$ChangeStatusRequestImpl;
|
|
|
|
factory _ChangeStatusRequest.fromJson(Map<String, dynamic> json) =
|
|
_$ChangeStatusRequestImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: 'is_active')
|
|
bool get isActive;
|
|
|
|
/// Create a copy of ChangeStatusRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ChangeStatusRequestImplCopyWith<_$ChangeStatusRequestImpl> 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;
|
|
|
|
/// 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});
|
|
}
|
|
|
|
/// @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,
|
|
}) {
|
|
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,
|
|
) 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});
|
|
}
|
|
|
|
/// @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,
|
|
}) {
|
|
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,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ChangePasswordRequestImpl implements _ChangePasswordRequest {
|
|
const _$ChangePasswordRequestImpl(
|
|
{@JsonKey(name: 'current_password') required this.currentPassword,
|
|
@JsonKey(name: 'new_password') required this.newPassword});
|
|
|
|
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
|
|
String toString() {
|
|
return 'ChangePasswordRequest(currentPassword: $currentPassword, newPassword: $newPassword)';
|
|
}
|
|
|
|
@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));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, currentPassword, newPassword);
|
|
|
|
/// 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}) = _$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;
|
|
|
|
/// 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;
|
|
}
|
|
|
|
UserListDto _$UserListDtoFromJson(Map<String, dynamic> json) {
|
|
return _UserListDto.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$UserListDto {
|
|
List<UserDto> get users => throw _privateConstructorUsedError;
|
|
int get total => throw _privateConstructorUsedError;
|
|
int get page => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'per_page')
|
|
int get perPage => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'total_pages')
|
|
int get totalPages => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this UserListDto to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of UserListDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$UserListDtoCopyWith<UserListDto> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $UserListDtoCopyWith<$Res> {
|
|
factory $UserListDtoCopyWith(
|
|
UserListDto value, $Res Function(UserListDto) then) =
|
|
_$UserListDtoCopyWithImpl<$Res, UserListDto>;
|
|
@useResult
|
|
$Res call(
|
|
{List<UserDto> users,
|
|
int total,
|
|
int page,
|
|
@JsonKey(name: 'per_page') int perPage,
|
|
@JsonKey(name: 'total_pages') int totalPages});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$UserListDtoCopyWithImpl<$Res, $Val extends UserListDto>
|
|
implements $UserListDtoCopyWith<$Res> {
|
|
_$UserListDtoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of UserListDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? users = null,
|
|
Object? total = null,
|
|
Object? page = null,
|
|
Object? perPage = null,
|
|
Object? totalPages = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
users: null == users
|
|
? _value.users
|
|
: users // ignore: cast_nullable_to_non_nullable
|
|
as List<UserDto>,
|
|
total: null == total
|
|
? _value.total
|
|
: total // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
page: null == page
|
|
? _value.page
|
|
: page // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
perPage: null == perPage
|
|
? _value.perPage
|
|
: perPage // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
totalPages: null == totalPages
|
|
? _value.totalPages
|
|
: totalPages // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$UserListDtoImplCopyWith<$Res>
|
|
implements $UserListDtoCopyWith<$Res> {
|
|
factory _$$UserListDtoImplCopyWith(
|
|
_$UserListDtoImpl value, $Res Function(_$UserListDtoImpl) then) =
|
|
__$$UserListDtoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{List<UserDto> users,
|
|
int total,
|
|
int page,
|
|
@JsonKey(name: 'per_page') int perPage,
|
|
@JsonKey(name: 'total_pages') int totalPages});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$UserListDtoImplCopyWithImpl<$Res>
|
|
extends _$UserListDtoCopyWithImpl<$Res, _$UserListDtoImpl>
|
|
implements _$$UserListDtoImplCopyWith<$Res> {
|
|
__$$UserListDtoImplCopyWithImpl(
|
|
_$UserListDtoImpl _value, $Res Function(_$UserListDtoImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of UserListDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? users = null,
|
|
Object? total = null,
|
|
Object? page = null,
|
|
Object? perPage = null,
|
|
Object? totalPages = null,
|
|
}) {
|
|
return _then(_$UserListDtoImpl(
|
|
users: null == users
|
|
? _value._users
|
|
: users // ignore: cast_nullable_to_non_nullable
|
|
as List<UserDto>,
|
|
total: null == total
|
|
? _value.total
|
|
: total // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
page: null == page
|
|
? _value.page
|
|
: page // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
perPage: null == perPage
|
|
? _value.perPage
|
|
: perPage // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
totalPages: null == totalPages
|
|
? _value.totalPages
|
|
: totalPages // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$UserListDtoImpl extends _UserListDto {
|
|
const _$UserListDtoImpl(
|
|
{required final List<UserDto> users,
|
|
required this.total,
|
|
required this.page,
|
|
@JsonKey(name: 'per_page') required this.perPage,
|
|
@JsonKey(name: 'total_pages') required this.totalPages})
|
|
: _users = users,
|
|
super._();
|
|
|
|
factory _$UserListDtoImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$UserListDtoImplFromJson(json);
|
|
|
|
final List<UserDto> _users;
|
|
@override
|
|
List<UserDto> get users {
|
|
if (_users is EqualUnmodifiableListView) return _users;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_users);
|
|
}
|
|
|
|
@override
|
|
final int total;
|
|
@override
|
|
final int page;
|
|
@override
|
|
@JsonKey(name: 'per_page')
|
|
final int perPage;
|
|
@override
|
|
@JsonKey(name: 'total_pages')
|
|
final int totalPages;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'UserListDto(users: $users, total: $total, page: $page, perPage: $perPage, totalPages: $totalPages)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$UserListDtoImpl &&
|
|
const DeepCollectionEquality().equals(other._users, _users) &&
|
|
(identical(other.total, total) || other.total == total) &&
|
|
(identical(other.page, page) || other.page == page) &&
|
|
(identical(other.perPage, perPage) || other.perPage == perPage) &&
|
|
(identical(other.totalPages, totalPages) ||
|
|
other.totalPages == totalPages));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(_users),
|
|
total,
|
|
page,
|
|
perPage,
|
|
totalPages);
|
|
|
|
/// Create a copy of UserListDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$UserListDtoImplCopyWith<_$UserListDtoImpl> get copyWith =>
|
|
__$$UserListDtoImplCopyWithImpl<_$UserListDtoImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$UserListDtoImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _UserListDto extends UserListDto {
|
|
const factory _UserListDto(
|
|
{required final List<UserDto> users,
|
|
required final int total,
|
|
required final int page,
|
|
@JsonKey(name: 'per_page') required final int perPage,
|
|
@JsonKey(name: 'total_pages') required final int totalPages}) =
|
|
_$UserListDtoImpl;
|
|
const _UserListDto._() : super._();
|
|
|
|
factory _UserListDto.fromJson(Map<String, dynamic> json) =
|
|
_$UserListDtoImpl.fromJson;
|
|
|
|
@override
|
|
List<UserDto> get users;
|
|
@override
|
|
int get total;
|
|
@override
|
|
int get page;
|
|
@override
|
|
@JsonKey(name: 'per_page')
|
|
int get perPage;
|
|
@override
|
|
@JsonKey(name: 'total_pages')
|
|
int get totalPages;
|
|
|
|
/// Create a copy of UserListDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$UserListDtoImplCopyWith<_$UserListDtoImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
UserDetailDto _$UserDetailDtoFromJson(Map<String, dynamic> json) {
|
|
return _UserDetailDto.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$UserDetailDto {
|
|
UserDto get user => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this UserDetailDto to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of UserDetailDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$UserDetailDtoCopyWith<UserDetailDto> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $UserDetailDtoCopyWith<$Res> {
|
|
factory $UserDetailDtoCopyWith(
|
|
UserDetailDto value, $Res Function(UserDetailDto) then) =
|
|
_$UserDetailDtoCopyWithImpl<$Res, UserDetailDto>;
|
|
@useResult
|
|
$Res call({UserDto user});
|
|
|
|
$UserDtoCopyWith<$Res> get user;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$UserDetailDtoCopyWithImpl<$Res, $Val extends UserDetailDto>
|
|
implements $UserDetailDtoCopyWith<$Res> {
|
|
_$UserDetailDtoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of UserDetailDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? user = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
user: null == user
|
|
? _value.user
|
|
: user // ignore: cast_nullable_to_non_nullable
|
|
as UserDto,
|
|
) as $Val);
|
|
}
|
|
|
|
/// Create a copy of UserDetailDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$UserDtoCopyWith<$Res> get user {
|
|
return $UserDtoCopyWith<$Res>(_value.user, (value) {
|
|
return _then(_value.copyWith(user: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$UserDetailDtoImplCopyWith<$Res>
|
|
implements $UserDetailDtoCopyWith<$Res> {
|
|
factory _$$UserDetailDtoImplCopyWith(
|
|
_$UserDetailDtoImpl value, $Res Function(_$UserDetailDtoImpl) then) =
|
|
__$$UserDetailDtoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({UserDto user});
|
|
|
|
@override
|
|
$UserDtoCopyWith<$Res> get user;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$UserDetailDtoImplCopyWithImpl<$Res>
|
|
extends _$UserDetailDtoCopyWithImpl<$Res, _$UserDetailDtoImpl>
|
|
implements _$$UserDetailDtoImplCopyWith<$Res> {
|
|
__$$UserDetailDtoImplCopyWithImpl(
|
|
_$UserDetailDtoImpl _value, $Res Function(_$UserDetailDtoImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of UserDetailDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? user = null,
|
|
}) {
|
|
return _then(_$UserDetailDtoImpl(
|
|
user: null == user
|
|
? _value.user
|
|
: user // ignore: cast_nullable_to_non_nullable
|
|
as UserDto,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$UserDetailDtoImpl implements _UserDetailDto {
|
|
const _$UserDetailDtoImpl({required this.user});
|
|
|
|
factory _$UserDetailDtoImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$UserDetailDtoImplFromJson(json);
|
|
|
|
@override
|
|
final UserDto user;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'UserDetailDto(user: $user)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$UserDetailDtoImpl &&
|
|
(identical(other.user, user) || other.user == user));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, user);
|
|
|
|
/// Create a copy of UserDetailDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$UserDetailDtoImplCopyWith<_$UserDetailDtoImpl> get copyWith =>
|
|
__$$UserDetailDtoImplCopyWithImpl<_$UserDetailDtoImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$UserDetailDtoImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _UserDetailDto implements UserDetailDto {
|
|
const factory _UserDetailDto({required final UserDto user}) =
|
|
_$UserDetailDtoImpl;
|
|
|
|
factory _UserDetailDto.fromJson(Map<String, dynamic> json) =
|
|
_$UserDetailDtoImpl.fromJson;
|
|
|
|
@override
|
|
UserDto get user;
|
|
|
|
/// Create a copy of UserDetailDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$UserDetailDtoImplCopyWith<_$UserDetailDtoImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
UserResponse _$UserResponseFromJson(Map<String, dynamic> json) {
|
|
return _UserResponse.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$UserResponse {
|
|
UserDto get user => throw _privateConstructorUsedError;
|
|
String? get message => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this UserResponse to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of UserResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$UserResponseCopyWith<UserResponse> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $UserResponseCopyWith<$Res> {
|
|
factory $UserResponseCopyWith(
|
|
UserResponse value, $Res Function(UserResponse) then) =
|
|
_$UserResponseCopyWithImpl<$Res, UserResponse>;
|
|
@useResult
|
|
$Res call({UserDto user, String? message});
|
|
|
|
$UserDtoCopyWith<$Res> get user;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$UserResponseCopyWithImpl<$Res, $Val extends UserResponse>
|
|
implements $UserResponseCopyWith<$Res> {
|
|
_$UserResponseCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of UserResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? user = null,
|
|
Object? message = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
user: null == user
|
|
? _value.user
|
|
: user // ignore: cast_nullable_to_non_nullable
|
|
as UserDto,
|
|
message: freezed == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
) as $Val);
|
|
}
|
|
|
|
/// Create a copy of UserResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$UserDtoCopyWith<$Res> get user {
|
|
return $UserDtoCopyWith<$Res>(_value.user, (value) {
|
|
return _then(_value.copyWith(user: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$UserResponseImplCopyWith<$Res>
|
|
implements $UserResponseCopyWith<$Res> {
|
|
factory _$$UserResponseImplCopyWith(
|
|
_$UserResponseImpl value, $Res Function(_$UserResponseImpl) then) =
|
|
__$$UserResponseImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({UserDto user, String? message});
|
|
|
|
@override
|
|
$UserDtoCopyWith<$Res> get user;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$UserResponseImplCopyWithImpl<$Res>
|
|
extends _$UserResponseCopyWithImpl<$Res, _$UserResponseImpl>
|
|
implements _$$UserResponseImplCopyWith<$Res> {
|
|
__$$UserResponseImplCopyWithImpl(
|
|
_$UserResponseImpl _value, $Res Function(_$UserResponseImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of UserResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? user = null,
|
|
Object? message = freezed,
|
|
}) {
|
|
return _then(_$UserResponseImpl(
|
|
user: null == user
|
|
? _value.user
|
|
: user // ignore: cast_nullable_to_non_nullable
|
|
as UserDto,
|
|
message: freezed == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$UserResponseImpl implements _UserResponse {
|
|
const _$UserResponseImpl({required this.user, this.message});
|
|
|
|
factory _$UserResponseImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$UserResponseImplFromJson(json);
|
|
|
|
@override
|
|
final UserDto user;
|
|
@override
|
|
final String? message;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'UserResponse(user: $user, message: $message)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$UserResponseImpl &&
|
|
(identical(other.user, user) || other.user == user) &&
|
|
(identical(other.message, message) || other.message == message));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, user, message);
|
|
|
|
/// Create a copy of UserResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$UserResponseImplCopyWith<_$UserResponseImpl> get copyWith =>
|
|
__$$UserResponseImplCopyWithImpl<_$UserResponseImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$UserResponseImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _UserResponse implements UserResponse {
|
|
const factory _UserResponse(
|
|
{required final UserDto user,
|
|
final String? message}) = _$UserResponseImpl;
|
|
|
|
factory _UserResponse.fromJson(Map<String, dynamic> json) =
|
|
_$UserResponseImpl.fromJson;
|
|
|
|
@override
|
|
UserDto get user;
|
|
@override
|
|
String? get message;
|
|
|
|
/// Create a copy of UserResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$UserResponseImplCopyWith<_$UserResponseImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|