backup: 사용하지 않는 파일 삭제 전 복구 지점
- 전체 371개 파일 중 82개 미사용 파일 식별 - Phase 1: 33개 파일 삭제 예정 (100% 안전) - Phase 2: 30개 파일 삭제 검토 예정 - Phase 3: 19개 파일 수동 검토 예정 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -23,7 +23,8 @@ mixin _$MaintenanceDto {
|
||||
@JsonKey(name: 'id')
|
||||
int? get id => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
int get equipmentHistoryId => throw _privateConstructorUsedError;
|
||||
int? get equipmentHistoryId =>
|
||||
throw _privateConstructorUsedError; // Optional in backend
|
||||
@JsonKey(name: 'started_at')
|
||||
DateTime get startedAt => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'ended_at')
|
||||
@@ -31,7 +32,8 @@ mixin _$MaintenanceDto {
|
||||
@JsonKey(name: 'period_month')
|
||||
int get periodMonth => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'maintenance_type')
|
||||
String get maintenanceType => throw _privateConstructorUsedError;
|
||||
String get maintenanceType =>
|
||||
throw _privateConstructorUsedError; // WARRANTY|CONTRACT|INSPECTION
|
||||
@JsonKey(name: 'is_deleted')
|
||||
bool get isDeleted => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'registered_at')
|
||||
@@ -69,7 +71,7 @@ abstract class $MaintenanceDtoCopyWith<$Res> {
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: 'id') int? id,
|
||||
@JsonKey(name: 'equipment_history_id') int equipmentHistoryId,
|
||||
@JsonKey(name: 'equipment_history_id') int? equipmentHistoryId,
|
||||
@JsonKey(name: 'started_at') DateTime startedAt,
|
||||
@JsonKey(name: 'ended_at') DateTime endedAt,
|
||||
@JsonKey(name: 'period_month') int periodMonth,
|
||||
@@ -102,7 +104,7 @@ class _$MaintenanceDtoCopyWithImpl<$Res, $Val extends MaintenanceDto>
|
||||
@override
|
||||
$Res call({
|
||||
Object? id = freezed,
|
||||
Object? equipmentHistoryId = null,
|
||||
Object? equipmentHistoryId = freezed,
|
||||
Object? startedAt = null,
|
||||
Object? endedAt = null,
|
||||
Object? periodMonth = null,
|
||||
@@ -121,10 +123,10 @@ class _$MaintenanceDtoCopyWithImpl<$Res, $Val extends MaintenanceDto>
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
equipmentHistoryId: null == equipmentHistoryId
|
||||
equipmentHistoryId: freezed == equipmentHistoryId
|
||||
? _value.equipmentHistoryId
|
||||
: equipmentHistoryId // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
as int?,
|
||||
startedAt: null == startedAt
|
||||
? _value.startedAt
|
||||
: startedAt // ignore: cast_nullable_to_non_nullable
|
||||
@@ -202,7 +204,7 @@ abstract class _$$MaintenanceDtoImplCopyWith<$Res>
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: 'id') int? id,
|
||||
@JsonKey(name: 'equipment_history_id') int equipmentHistoryId,
|
||||
@JsonKey(name: 'equipment_history_id') int? equipmentHistoryId,
|
||||
@JsonKey(name: 'started_at') DateTime startedAt,
|
||||
@JsonKey(name: 'ended_at') DateTime endedAt,
|
||||
@JsonKey(name: 'period_month') int periodMonth,
|
||||
@@ -234,7 +236,7 @@ class __$$MaintenanceDtoImplCopyWithImpl<$Res>
|
||||
@override
|
||||
$Res call({
|
||||
Object? id = freezed,
|
||||
Object? equipmentHistoryId = null,
|
||||
Object? equipmentHistoryId = freezed,
|
||||
Object? startedAt = null,
|
||||
Object? endedAt = null,
|
||||
Object? periodMonth = null,
|
||||
@@ -253,10 +255,10 @@ class __$$MaintenanceDtoImplCopyWithImpl<$Res>
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
equipmentHistoryId: null == equipmentHistoryId
|
||||
equipmentHistoryId: freezed == equipmentHistoryId
|
||||
? _value.equipmentHistoryId
|
||||
: equipmentHistoryId // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
as int?,
|
||||
startedAt: null == startedAt
|
||||
? _value.startedAt
|
||||
: startedAt // ignore: cast_nullable_to_non_nullable
|
||||
@@ -314,11 +316,11 @@ class __$$MaintenanceDtoImplCopyWithImpl<$Res>
|
||||
class _$MaintenanceDtoImpl extends _MaintenanceDto {
|
||||
const _$MaintenanceDtoImpl(
|
||||
{@JsonKey(name: 'id') this.id,
|
||||
@JsonKey(name: 'equipment_history_id') required this.equipmentHistoryId,
|
||||
@JsonKey(name: 'equipment_history_id') this.equipmentHistoryId,
|
||||
@JsonKey(name: 'started_at') required this.startedAt,
|
||||
@JsonKey(name: 'ended_at') required this.endedAt,
|
||||
@JsonKey(name: 'period_month') this.periodMonth = 1,
|
||||
@JsonKey(name: 'maintenance_type') this.maintenanceType = 'O',
|
||||
@JsonKey(name: 'maintenance_type') this.maintenanceType = 'WARRANTY',
|
||||
@JsonKey(name: 'is_deleted') this.isDeleted = false,
|
||||
@JsonKey(name: 'registered_at') required this.registeredAt,
|
||||
@JsonKey(name: 'updated_at') this.updatedAt,
|
||||
@@ -337,7 +339,8 @@ class _$MaintenanceDtoImpl extends _MaintenanceDto {
|
||||
final int? id;
|
||||
@override
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
final int equipmentHistoryId;
|
||||
final int? equipmentHistoryId;
|
||||
// Optional in backend
|
||||
@override
|
||||
@JsonKey(name: 'started_at')
|
||||
final DateTime startedAt;
|
||||
@@ -350,6 +353,7 @@ class _$MaintenanceDtoImpl extends _MaintenanceDto {
|
||||
@override
|
||||
@JsonKey(name: 'maintenance_type')
|
||||
final String maintenanceType;
|
||||
// WARRANTY|CONTRACT|INSPECTION
|
||||
@override
|
||||
@JsonKey(name: 'is_deleted')
|
||||
final bool isDeleted;
|
||||
@@ -453,8 +457,7 @@ class _$MaintenanceDtoImpl extends _MaintenanceDto {
|
||||
abstract class _MaintenanceDto extends MaintenanceDto {
|
||||
const factory _MaintenanceDto(
|
||||
{@JsonKey(name: 'id') final int? id,
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
required final int equipmentHistoryId,
|
||||
@JsonKey(name: 'equipment_history_id') final int? equipmentHistoryId,
|
||||
@JsonKey(name: 'started_at') required final DateTime startedAt,
|
||||
@JsonKey(name: 'ended_at') required final DateTime endedAt,
|
||||
@JsonKey(name: 'period_month') final int periodMonth,
|
||||
@@ -477,7 +480,7 @@ abstract class _MaintenanceDto extends MaintenanceDto {
|
||||
int? get id;
|
||||
@override
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
int get equipmentHistoryId;
|
||||
int? get equipmentHistoryId; // Optional in backend
|
||||
@override
|
||||
@JsonKey(name: 'started_at')
|
||||
DateTime get startedAt;
|
||||
@@ -489,7 +492,7 @@ abstract class _MaintenanceDto extends MaintenanceDto {
|
||||
int get periodMonth;
|
||||
@override
|
||||
@JsonKey(name: 'maintenance_type')
|
||||
String get maintenanceType;
|
||||
String get maintenanceType; // WARRANTY|CONTRACT|INSPECTION
|
||||
@override
|
||||
@JsonKey(name: 'is_deleted')
|
||||
bool get isDeleted;
|
||||
@@ -530,7 +533,8 @@ MaintenanceRequestDto _$MaintenanceRequestDtoFromJson(
|
||||
/// @nodoc
|
||||
mixin _$MaintenanceRequestDto {
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
int get equipmentHistoryId => throw _privateConstructorUsedError;
|
||||
int? get equipmentHistoryId =>
|
||||
throw _privateConstructorUsedError; // Optional in backend
|
||||
@JsonKey(name: 'started_at')
|
||||
DateTime get startedAt => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'ended_at')
|
||||
@@ -557,7 +561,7 @@ abstract class $MaintenanceRequestDtoCopyWith<$Res> {
|
||||
_$MaintenanceRequestDtoCopyWithImpl<$Res, MaintenanceRequestDto>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: 'equipment_history_id') int equipmentHistoryId,
|
||||
{@JsonKey(name: 'equipment_history_id') int? equipmentHistoryId,
|
||||
@JsonKey(name: 'started_at') DateTime startedAt,
|
||||
@JsonKey(name: 'ended_at') DateTime endedAt,
|
||||
@JsonKey(name: 'period_month') int periodMonth,
|
||||
@@ -580,17 +584,17 @@ class _$MaintenanceRequestDtoCopyWithImpl<$Res,
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? equipmentHistoryId = null,
|
||||
Object? equipmentHistoryId = freezed,
|
||||
Object? startedAt = null,
|
||||
Object? endedAt = null,
|
||||
Object? periodMonth = null,
|
||||
Object? maintenanceType = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
equipmentHistoryId: null == equipmentHistoryId
|
||||
equipmentHistoryId: freezed == equipmentHistoryId
|
||||
? _value.equipmentHistoryId
|
||||
: equipmentHistoryId // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
as int?,
|
||||
startedAt: null == startedAt
|
||||
? _value.startedAt
|
||||
: startedAt // ignore: cast_nullable_to_non_nullable
|
||||
@@ -621,7 +625,7 @@ abstract class _$$MaintenanceRequestDtoImplCopyWith<$Res>
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: 'equipment_history_id') int equipmentHistoryId,
|
||||
{@JsonKey(name: 'equipment_history_id') int? equipmentHistoryId,
|
||||
@JsonKey(name: 'started_at') DateTime startedAt,
|
||||
@JsonKey(name: 'ended_at') DateTime endedAt,
|
||||
@JsonKey(name: 'period_month') int periodMonth,
|
||||
@@ -642,17 +646,17 @@ class __$$MaintenanceRequestDtoImplCopyWithImpl<$Res>
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? equipmentHistoryId = null,
|
||||
Object? equipmentHistoryId = freezed,
|
||||
Object? startedAt = null,
|
||||
Object? endedAt = null,
|
||||
Object? periodMonth = null,
|
||||
Object? maintenanceType = null,
|
||||
}) {
|
||||
return _then(_$MaintenanceRequestDtoImpl(
|
||||
equipmentHistoryId: null == equipmentHistoryId
|
||||
equipmentHistoryId: freezed == equipmentHistoryId
|
||||
? _value.equipmentHistoryId
|
||||
: equipmentHistoryId // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
as int?,
|
||||
startedAt: null == startedAt
|
||||
? _value.startedAt
|
||||
: startedAt // ignore: cast_nullable_to_non_nullable
|
||||
@@ -677,18 +681,19 @@ class __$$MaintenanceRequestDtoImplCopyWithImpl<$Res>
|
||||
@JsonSerializable()
|
||||
class _$MaintenanceRequestDtoImpl implements _MaintenanceRequestDto {
|
||||
const _$MaintenanceRequestDtoImpl(
|
||||
{@JsonKey(name: 'equipment_history_id') required this.equipmentHistoryId,
|
||||
{@JsonKey(name: 'equipment_history_id') this.equipmentHistoryId,
|
||||
@JsonKey(name: 'started_at') required this.startedAt,
|
||||
@JsonKey(name: 'ended_at') required this.endedAt,
|
||||
@JsonKey(name: 'period_month') this.periodMonth = 1,
|
||||
@JsonKey(name: 'maintenance_type') this.maintenanceType = 'O'});
|
||||
@JsonKey(name: 'maintenance_type') this.maintenanceType = 'WARRANTY'});
|
||||
|
||||
factory _$MaintenanceRequestDtoImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$MaintenanceRequestDtoImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
final int equipmentHistoryId;
|
||||
final int? equipmentHistoryId;
|
||||
// Optional in backend
|
||||
@override
|
||||
@JsonKey(name: 'started_at')
|
||||
final DateTime startedAt;
|
||||
@@ -747,8 +752,7 @@ class _$MaintenanceRequestDtoImpl implements _MaintenanceRequestDto {
|
||||
|
||||
abstract class _MaintenanceRequestDto implements MaintenanceRequestDto {
|
||||
const factory _MaintenanceRequestDto(
|
||||
{@JsonKey(name: 'equipment_history_id')
|
||||
required final int equipmentHistoryId,
|
||||
{@JsonKey(name: 'equipment_history_id') final int? equipmentHistoryId,
|
||||
@JsonKey(name: 'started_at') required final DateTime startedAt,
|
||||
@JsonKey(name: 'ended_at') required final DateTime endedAt,
|
||||
@JsonKey(name: 'period_month') final int periodMonth,
|
||||
@@ -760,7 +764,7 @@ abstract class _MaintenanceRequestDto implements MaintenanceRequestDto {
|
||||
|
||||
@override
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
int get equipmentHistoryId;
|
||||
int? get equipmentHistoryId; // Optional in backend
|
||||
@override
|
||||
@JsonKey(name: 'started_at')
|
||||
DateTime get startedAt;
|
||||
@@ -1294,3 +1298,305 @@ abstract class _MaintenanceListResponse implements MaintenanceListResponse {
|
||||
_$$MaintenanceListResponseImplCopyWith<_$MaintenanceListResponseImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
MaintenanceQueryDto _$MaintenanceQueryDtoFromJson(Map<String, dynamic> json) {
|
||||
return _MaintenanceQueryDto.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$MaintenanceQueryDto {
|
||||
@JsonKey(name: 'equipment_id')
|
||||
int? get equipmentId => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'maintenance_type')
|
||||
String? get maintenanceType => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'is_expired')
|
||||
bool? get isExpired => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'expiring_days')
|
||||
int? get expiringDays => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'page')
|
||||
int get page => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'per_page')
|
||||
int get perPage => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'include_deleted')
|
||||
bool get includeDeleted => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this MaintenanceQueryDto to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of MaintenanceQueryDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$MaintenanceQueryDtoCopyWith<MaintenanceQueryDto> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $MaintenanceQueryDtoCopyWith<$Res> {
|
||||
factory $MaintenanceQueryDtoCopyWith(
|
||||
MaintenanceQueryDto value, $Res Function(MaintenanceQueryDto) then) =
|
||||
_$MaintenanceQueryDtoCopyWithImpl<$Res, MaintenanceQueryDto>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: 'equipment_id') int? equipmentId,
|
||||
@JsonKey(name: 'maintenance_type') String? maintenanceType,
|
||||
@JsonKey(name: 'is_expired') bool? isExpired,
|
||||
@JsonKey(name: 'expiring_days') int? expiringDays,
|
||||
@JsonKey(name: 'page') int page,
|
||||
@JsonKey(name: 'per_page') int perPage,
|
||||
@JsonKey(name: 'include_deleted') bool includeDeleted});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$MaintenanceQueryDtoCopyWithImpl<$Res, $Val extends MaintenanceQueryDto>
|
||||
implements $MaintenanceQueryDtoCopyWith<$Res> {
|
||||
_$MaintenanceQueryDtoCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of MaintenanceQueryDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? equipmentId = freezed,
|
||||
Object? maintenanceType = freezed,
|
||||
Object? isExpired = freezed,
|
||||
Object? expiringDays = freezed,
|
||||
Object? page = null,
|
||||
Object? perPage = null,
|
||||
Object? includeDeleted = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
equipmentId: freezed == equipmentId
|
||||
? _value.equipmentId
|
||||
: equipmentId // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
maintenanceType: freezed == maintenanceType
|
||||
? _value.maintenanceType
|
||||
: maintenanceType // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
isExpired: freezed == isExpired
|
||||
? _value.isExpired
|
||||
: isExpired // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
expiringDays: freezed == expiringDays
|
||||
? _value.expiringDays
|
||||
: expiringDays // 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,
|
||||
includeDeleted: null == includeDeleted
|
||||
? _value.includeDeleted
|
||||
: includeDeleted // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$MaintenanceQueryDtoImplCopyWith<$Res>
|
||||
implements $MaintenanceQueryDtoCopyWith<$Res> {
|
||||
factory _$$MaintenanceQueryDtoImplCopyWith(_$MaintenanceQueryDtoImpl value,
|
||||
$Res Function(_$MaintenanceQueryDtoImpl) then) =
|
||||
__$$MaintenanceQueryDtoImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: 'equipment_id') int? equipmentId,
|
||||
@JsonKey(name: 'maintenance_type') String? maintenanceType,
|
||||
@JsonKey(name: 'is_expired') bool? isExpired,
|
||||
@JsonKey(name: 'expiring_days') int? expiringDays,
|
||||
@JsonKey(name: 'page') int page,
|
||||
@JsonKey(name: 'per_page') int perPage,
|
||||
@JsonKey(name: 'include_deleted') bool includeDeleted});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$MaintenanceQueryDtoImplCopyWithImpl<$Res>
|
||||
extends _$MaintenanceQueryDtoCopyWithImpl<$Res, _$MaintenanceQueryDtoImpl>
|
||||
implements _$$MaintenanceQueryDtoImplCopyWith<$Res> {
|
||||
__$$MaintenanceQueryDtoImplCopyWithImpl(_$MaintenanceQueryDtoImpl _value,
|
||||
$Res Function(_$MaintenanceQueryDtoImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of MaintenanceQueryDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? equipmentId = freezed,
|
||||
Object? maintenanceType = freezed,
|
||||
Object? isExpired = freezed,
|
||||
Object? expiringDays = freezed,
|
||||
Object? page = null,
|
||||
Object? perPage = null,
|
||||
Object? includeDeleted = null,
|
||||
}) {
|
||||
return _then(_$MaintenanceQueryDtoImpl(
|
||||
equipmentId: freezed == equipmentId
|
||||
? _value.equipmentId
|
||||
: equipmentId // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
maintenanceType: freezed == maintenanceType
|
||||
? _value.maintenanceType
|
||||
: maintenanceType // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
isExpired: freezed == isExpired
|
||||
? _value.isExpired
|
||||
: isExpired // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
expiringDays: freezed == expiringDays
|
||||
? _value.expiringDays
|
||||
: expiringDays // 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,
|
||||
includeDeleted: null == includeDeleted
|
||||
? _value.includeDeleted
|
||||
: includeDeleted // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$MaintenanceQueryDtoImpl implements _MaintenanceQueryDto {
|
||||
const _$MaintenanceQueryDtoImpl(
|
||||
{@JsonKey(name: 'equipment_id') this.equipmentId,
|
||||
@JsonKey(name: 'maintenance_type') this.maintenanceType,
|
||||
@JsonKey(name: 'is_expired') this.isExpired,
|
||||
@JsonKey(name: 'expiring_days') this.expiringDays,
|
||||
@JsonKey(name: 'page') this.page = 1,
|
||||
@JsonKey(name: 'per_page') this.perPage = 10,
|
||||
@JsonKey(name: 'include_deleted') this.includeDeleted = false});
|
||||
|
||||
factory _$MaintenanceQueryDtoImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$MaintenanceQueryDtoImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey(name: 'equipment_id')
|
||||
final int? equipmentId;
|
||||
@override
|
||||
@JsonKey(name: 'maintenance_type')
|
||||
final String? maintenanceType;
|
||||
@override
|
||||
@JsonKey(name: 'is_expired')
|
||||
final bool? isExpired;
|
||||
@override
|
||||
@JsonKey(name: 'expiring_days')
|
||||
final int? expiringDays;
|
||||
@override
|
||||
@JsonKey(name: 'page')
|
||||
final int page;
|
||||
@override
|
||||
@JsonKey(name: 'per_page')
|
||||
final int perPage;
|
||||
@override
|
||||
@JsonKey(name: 'include_deleted')
|
||||
final bool includeDeleted;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'MaintenanceQueryDto(equipmentId: $equipmentId, maintenanceType: $maintenanceType, isExpired: $isExpired, expiringDays: $expiringDays, page: $page, perPage: $perPage, includeDeleted: $includeDeleted)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$MaintenanceQueryDtoImpl &&
|
||||
(identical(other.equipmentId, equipmentId) ||
|
||||
other.equipmentId == equipmentId) &&
|
||||
(identical(other.maintenanceType, maintenanceType) ||
|
||||
other.maintenanceType == maintenanceType) &&
|
||||
(identical(other.isExpired, isExpired) ||
|
||||
other.isExpired == isExpired) &&
|
||||
(identical(other.expiringDays, expiringDays) ||
|
||||
other.expiringDays == expiringDays) &&
|
||||
(identical(other.page, page) || other.page == page) &&
|
||||
(identical(other.perPage, perPage) || other.perPage == perPage) &&
|
||||
(identical(other.includeDeleted, includeDeleted) ||
|
||||
other.includeDeleted == includeDeleted));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, equipmentId, maintenanceType,
|
||||
isExpired, expiringDays, page, perPage, includeDeleted);
|
||||
|
||||
/// Create a copy of MaintenanceQueryDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$MaintenanceQueryDtoImplCopyWith<_$MaintenanceQueryDtoImpl> get copyWith =>
|
||||
__$$MaintenanceQueryDtoImplCopyWithImpl<_$MaintenanceQueryDtoImpl>(
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$MaintenanceQueryDtoImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _MaintenanceQueryDto implements MaintenanceQueryDto {
|
||||
const factory _MaintenanceQueryDto(
|
||||
{@JsonKey(name: 'equipment_id') final int? equipmentId,
|
||||
@JsonKey(name: 'maintenance_type') final String? maintenanceType,
|
||||
@JsonKey(name: 'is_expired') final bool? isExpired,
|
||||
@JsonKey(name: 'expiring_days') final int? expiringDays,
|
||||
@JsonKey(name: 'page') final int page,
|
||||
@JsonKey(name: 'per_page') final int perPage,
|
||||
@JsonKey(name: 'include_deleted') final bool includeDeleted}) =
|
||||
_$MaintenanceQueryDtoImpl;
|
||||
|
||||
factory _MaintenanceQueryDto.fromJson(Map<String, dynamic> json) =
|
||||
_$MaintenanceQueryDtoImpl.fromJson;
|
||||
|
||||
@override
|
||||
@JsonKey(name: 'equipment_id')
|
||||
int? get equipmentId;
|
||||
@override
|
||||
@JsonKey(name: 'maintenance_type')
|
||||
String? get maintenanceType;
|
||||
@override
|
||||
@JsonKey(name: 'is_expired')
|
||||
bool? get isExpired;
|
||||
@override
|
||||
@JsonKey(name: 'expiring_days')
|
||||
int? get expiringDays;
|
||||
@override
|
||||
@JsonKey(name: 'page')
|
||||
int get page;
|
||||
@override
|
||||
@JsonKey(name: 'per_page')
|
||||
int get perPage;
|
||||
@override
|
||||
@JsonKey(name: 'include_deleted')
|
||||
bool get includeDeleted;
|
||||
|
||||
/// Create a copy of MaintenanceQueryDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$MaintenanceQueryDtoImplCopyWith<_$MaintenanceQueryDtoImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user