// 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 'equipment_history_companies_link_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');

EquipmentHistoryCompaniesLinkDto _$EquipmentHistoryCompaniesLinkDtoFromJson(
    Map<String, dynamic> json) {
  return _EquipmentHistoryCompaniesLinkDto.fromJson(json);
}

/// @nodoc
mixin _$EquipmentHistoryCompaniesLinkDto {
  @JsonKey(name: 'Id')
  int? get id => throw _privateConstructorUsedError;
  @JsonKey(name: 'companies_id')
  int get companiesId => throw _privateConstructorUsedError;
  @JsonKey(name: 'equipment_history_Id')
  int get equipmentHistoryId => throw _privateConstructorUsedError;
  @JsonKey(name: 'Order')
  int get order => throw _privateConstructorUsedError;
  @JsonKey(name: 'is_deleted')
  bool get isDeleted => throw _privateConstructorUsedError;
  @JsonKey(name: 'registered_at')
  DateTime get registeredAt => throw _privateConstructorUsedError;
  @JsonKey(name: 'updated_at')
  DateTime? get updatedAt =>
      throw _privateConstructorUsedError; // Related entities (optional, populated in GET requests)
  CompanyDto? get company => throw _privateConstructorUsedError;
  EquipmentHistoryDto? get equipmentHistory =>
      throw _privateConstructorUsedError;

  /// Serializes this EquipmentHistoryCompaniesLinkDto to a JSON map.
  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;

  /// Create a copy of EquipmentHistoryCompaniesLinkDto
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $EquipmentHistoryCompaniesLinkDtoCopyWith<EquipmentHistoryCompaniesLinkDto>
      get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $EquipmentHistoryCompaniesLinkDtoCopyWith<$Res> {
  factory $EquipmentHistoryCompaniesLinkDtoCopyWith(
          EquipmentHistoryCompaniesLinkDto value,
          $Res Function(EquipmentHistoryCompaniesLinkDto) then) =
      _$EquipmentHistoryCompaniesLinkDtoCopyWithImpl<$Res,
          EquipmentHistoryCompaniesLinkDto>;
  @useResult
  $Res call(
      {@JsonKey(name: 'Id') int? id,
      @JsonKey(name: 'companies_id') int companiesId,
      @JsonKey(name: 'equipment_history_Id') int equipmentHistoryId,
      @JsonKey(name: 'Order') int order,
      @JsonKey(name: 'is_deleted') bool isDeleted,
      @JsonKey(name: 'registered_at') DateTime registeredAt,
      @JsonKey(name: 'updated_at') DateTime? updatedAt,
      CompanyDto? company,
      EquipmentHistoryDto? equipmentHistory});

  $CompanyDtoCopyWith<$Res>? get company;
  $EquipmentHistoryDtoCopyWith<$Res>? get equipmentHistory;
}

/// @nodoc
class _$EquipmentHistoryCompaniesLinkDtoCopyWithImpl<$Res,
        $Val extends EquipmentHistoryCompaniesLinkDto>
    implements $EquipmentHistoryCompaniesLinkDtoCopyWith<$Res> {
  _$EquipmentHistoryCompaniesLinkDtoCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  /// Create a copy of EquipmentHistoryCompaniesLinkDto
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? id = freezed,
    Object? companiesId = null,
    Object? equipmentHistoryId = null,
    Object? order = null,
    Object? isDeleted = null,
    Object? registeredAt = null,
    Object? updatedAt = freezed,
    Object? company = freezed,
    Object? equipmentHistory = freezed,
  }) {
    return _then(_value.copyWith(
      id: freezed == id
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as int?,
      companiesId: null == companiesId
          ? _value.companiesId
          : companiesId // ignore: cast_nullable_to_non_nullable
              as int,
      equipmentHistoryId: null == equipmentHistoryId
          ? _value.equipmentHistoryId
          : equipmentHistoryId // ignore: cast_nullable_to_non_nullable
              as int,
      order: null == order
          ? _value.order
          : order // ignore: cast_nullable_to_non_nullable
              as int,
      isDeleted: null == isDeleted
          ? _value.isDeleted
          : isDeleted // ignore: cast_nullable_to_non_nullable
              as bool,
      registeredAt: null == registeredAt
          ? _value.registeredAt
          : registeredAt // ignore: cast_nullable_to_non_nullable
              as DateTime,
      updatedAt: freezed == updatedAt
          ? _value.updatedAt
          : updatedAt // ignore: cast_nullable_to_non_nullable
              as DateTime?,
      company: freezed == company
          ? _value.company
          : company // ignore: cast_nullable_to_non_nullable
              as CompanyDto?,
      equipmentHistory: freezed == equipmentHistory
          ? _value.equipmentHistory
          : equipmentHistory // ignore: cast_nullable_to_non_nullable
              as EquipmentHistoryDto?,
    ) as $Val);
  }

  /// Create a copy of EquipmentHistoryCompaniesLinkDto
  /// with the given fields replaced by the non-null parameter values.
  @override
  @pragma('vm:prefer-inline')
  $CompanyDtoCopyWith<$Res>? get company {
    if (_value.company == null) {
      return null;
    }

    return $CompanyDtoCopyWith<$Res>(_value.company!, (value) {
      return _then(_value.copyWith(company: value) as $Val);
    });
  }

  /// Create a copy of EquipmentHistoryCompaniesLinkDto
  /// with the given fields replaced by the non-null parameter values.
  @override
  @pragma('vm:prefer-inline')
  $EquipmentHistoryDtoCopyWith<$Res>? get equipmentHistory {
    if (_value.equipmentHistory == null) {
      return null;
    }

    return $EquipmentHistoryDtoCopyWith<$Res>(_value.equipmentHistory!,
        (value) {
      return _then(_value.copyWith(equipmentHistory: value) as $Val);
    });
  }
}

/// @nodoc
abstract class _$$EquipmentHistoryCompaniesLinkDtoImplCopyWith<$Res>
    implements $EquipmentHistoryCompaniesLinkDtoCopyWith<$Res> {
  factory _$$EquipmentHistoryCompaniesLinkDtoImplCopyWith(
          _$EquipmentHistoryCompaniesLinkDtoImpl value,
          $Res Function(_$EquipmentHistoryCompaniesLinkDtoImpl) then) =
      __$$EquipmentHistoryCompaniesLinkDtoImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {@JsonKey(name: 'Id') int? id,
      @JsonKey(name: 'companies_id') int companiesId,
      @JsonKey(name: 'equipment_history_Id') int equipmentHistoryId,
      @JsonKey(name: 'Order') int order,
      @JsonKey(name: 'is_deleted') bool isDeleted,
      @JsonKey(name: 'registered_at') DateTime registeredAt,
      @JsonKey(name: 'updated_at') DateTime? updatedAt,
      CompanyDto? company,
      EquipmentHistoryDto? equipmentHistory});

  @override
  $CompanyDtoCopyWith<$Res>? get company;
  @override
  $EquipmentHistoryDtoCopyWith<$Res>? get equipmentHistory;
}

/// @nodoc
class __$$EquipmentHistoryCompaniesLinkDtoImplCopyWithImpl<$Res>
    extends _$EquipmentHistoryCompaniesLinkDtoCopyWithImpl<$Res,
        _$EquipmentHistoryCompaniesLinkDtoImpl>
    implements _$$EquipmentHistoryCompaniesLinkDtoImplCopyWith<$Res> {
  __$$EquipmentHistoryCompaniesLinkDtoImplCopyWithImpl(
      _$EquipmentHistoryCompaniesLinkDtoImpl _value,
      $Res Function(_$EquipmentHistoryCompaniesLinkDtoImpl) _then)
      : super(_value, _then);

  /// Create a copy of EquipmentHistoryCompaniesLinkDto
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? id = freezed,
    Object? companiesId = null,
    Object? equipmentHistoryId = null,
    Object? order = null,
    Object? isDeleted = null,
    Object? registeredAt = null,
    Object? updatedAt = freezed,
    Object? company = freezed,
    Object? equipmentHistory = freezed,
  }) {
    return _then(_$EquipmentHistoryCompaniesLinkDtoImpl(
      id: freezed == id
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as int?,
      companiesId: null == companiesId
          ? _value.companiesId
          : companiesId // ignore: cast_nullable_to_non_nullable
              as int,
      equipmentHistoryId: null == equipmentHistoryId
          ? _value.equipmentHistoryId
          : equipmentHistoryId // ignore: cast_nullable_to_non_nullable
              as int,
      order: null == order
          ? _value.order
          : order // ignore: cast_nullable_to_non_nullable
              as int,
      isDeleted: null == isDeleted
          ? _value.isDeleted
          : isDeleted // ignore: cast_nullable_to_non_nullable
              as bool,
      registeredAt: null == registeredAt
          ? _value.registeredAt
          : registeredAt // ignore: cast_nullable_to_non_nullable
              as DateTime,
      updatedAt: freezed == updatedAt
          ? _value.updatedAt
          : updatedAt // ignore: cast_nullable_to_non_nullable
              as DateTime?,
      company: freezed == company
          ? _value.company
          : company // ignore: cast_nullable_to_non_nullable
              as CompanyDto?,
      equipmentHistory: freezed == equipmentHistory
          ? _value.equipmentHistory
          : equipmentHistory // ignore: cast_nullable_to_non_nullable
              as EquipmentHistoryDto?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$EquipmentHistoryCompaniesLinkDtoImpl
    extends _EquipmentHistoryCompaniesLinkDto {
  const _$EquipmentHistoryCompaniesLinkDtoImpl(
      {@JsonKey(name: 'Id') this.id,
      @JsonKey(name: 'companies_id') required this.companiesId,
      @JsonKey(name: 'equipment_history_Id') required this.equipmentHistoryId,
      @JsonKey(name: 'Order') this.order = 1,
      @JsonKey(name: 'is_deleted') this.isDeleted = false,
      @JsonKey(name: 'registered_at') required this.registeredAt,
      @JsonKey(name: 'updated_at') this.updatedAt,
      this.company,
      this.equipmentHistory})
      : super._();

  factory _$EquipmentHistoryCompaniesLinkDtoImpl.fromJson(
          Map<String, dynamic> json) =>
      _$$EquipmentHistoryCompaniesLinkDtoImplFromJson(json);

  @override
  @JsonKey(name: 'Id')
  final int? id;
  @override
  @JsonKey(name: 'companies_id')
  final int companiesId;
  @override
  @JsonKey(name: 'equipment_history_Id')
  final int equipmentHistoryId;
  @override
  @JsonKey(name: 'Order')
  final int order;
  @override
  @JsonKey(name: 'is_deleted')
  final bool isDeleted;
  @override
  @JsonKey(name: 'registered_at')
  final DateTime registeredAt;
  @override
  @JsonKey(name: 'updated_at')
  final DateTime? updatedAt;
// Related entities (optional, populated in GET requests)
  @override
  final CompanyDto? company;
  @override
  final EquipmentHistoryDto? equipmentHistory;

  @override
  String toString() {
    return 'EquipmentHistoryCompaniesLinkDto(id: $id, companiesId: $companiesId, equipmentHistoryId: $equipmentHistoryId, order: $order, isDeleted: $isDeleted, registeredAt: $registeredAt, updatedAt: $updatedAt, company: $company, equipmentHistory: $equipmentHistory)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$EquipmentHistoryCompaniesLinkDtoImpl &&
            (identical(other.id, id) || other.id == id) &&
            (identical(other.companiesId, companiesId) ||
                other.companiesId == companiesId) &&
            (identical(other.equipmentHistoryId, equipmentHistoryId) ||
                other.equipmentHistoryId == equipmentHistoryId) &&
            (identical(other.order, order) || other.order == order) &&
            (identical(other.isDeleted, isDeleted) ||
                other.isDeleted == isDeleted) &&
            (identical(other.registeredAt, registeredAt) ||
                other.registeredAt == registeredAt) &&
            (identical(other.updatedAt, updatedAt) ||
                other.updatedAt == updatedAt) &&
            (identical(other.company, company) || other.company == company) &&
            (identical(other.equipmentHistory, equipmentHistory) ||
                other.equipmentHistory == equipmentHistory));
  }

  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  int get hashCode => Object.hash(
      runtimeType,
      id,
      companiesId,
      equipmentHistoryId,
      order,
      isDeleted,
      registeredAt,
      updatedAt,
      company,
      equipmentHistory);

  /// Create a copy of EquipmentHistoryCompaniesLinkDto
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$EquipmentHistoryCompaniesLinkDtoImplCopyWith<
          _$EquipmentHistoryCompaniesLinkDtoImpl>
      get copyWith => __$$EquipmentHistoryCompaniesLinkDtoImplCopyWithImpl<
          _$EquipmentHistoryCompaniesLinkDtoImpl>(this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$EquipmentHistoryCompaniesLinkDtoImplToJson(
      this,
    );
  }
}

abstract class _EquipmentHistoryCompaniesLinkDto
    extends EquipmentHistoryCompaniesLinkDto {
  const factory _EquipmentHistoryCompaniesLinkDto(
          {@JsonKey(name: 'Id') final int? id,
          @JsonKey(name: 'companies_id') required final int companiesId,
          @JsonKey(name: 'equipment_history_Id')
          required final int equipmentHistoryId,
          @JsonKey(name: 'Order') final int order,
          @JsonKey(name: 'is_deleted') final bool isDeleted,
          @JsonKey(name: 'registered_at') required final DateTime registeredAt,
          @JsonKey(name: 'updated_at') final DateTime? updatedAt,
          final CompanyDto? company,
          final EquipmentHistoryDto? equipmentHistory}) =
      _$EquipmentHistoryCompaniesLinkDtoImpl;
  const _EquipmentHistoryCompaniesLinkDto._() : super._();

  factory _EquipmentHistoryCompaniesLinkDto.fromJson(
          Map<String, dynamic> json) =
      _$EquipmentHistoryCompaniesLinkDtoImpl.fromJson;

  @override
  @JsonKey(name: 'Id')
  int? get id;
  @override
  @JsonKey(name: 'companies_id')
  int get companiesId;
  @override
  @JsonKey(name: 'equipment_history_Id')
  int get equipmentHistoryId;
  @override
  @JsonKey(name: 'Order')
  int get order;
  @override
  @JsonKey(name: 'is_deleted')
  bool get isDeleted;
  @override
  @JsonKey(name: 'registered_at')
  DateTime get registeredAt;
  @override
  @JsonKey(name: 'updated_at')
  DateTime?
      get updatedAt; // Related entities (optional, populated in GET requests)
  @override
  CompanyDto? get company;
  @override
  EquipmentHistoryDto? get equipmentHistory;

  /// Create a copy of EquipmentHistoryCompaniesLinkDto
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$EquipmentHistoryCompaniesLinkDtoImplCopyWith<
          _$EquipmentHistoryCompaniesLinkDtoImpl>
      get copyWith => throw _privateConstructorUsedError;
}

EquipmentHistoryCompaniesLinkRequestDto
    _$EquipmentHistoryCompaniesLinkRequestDtoFromJson(
        Map<String, dynamic> json) {
  return _EquipmentHistoryCompaniesLinkRequestDto.fromJson(json);
}

/// @nodoc
mixin _$EquipmentHistoryCompaniesLinkRequestDto {
  @JsonKey(name: 'companies_id')
  int get companiesId => throw _privateConstructorUsedError;
  @JsonKey(name: 'equipment_history_Id')
  int get equipmentHistoryId => throw _privateConstructorUsedError;
  @JsonKey(name: 'Order')
  int get order => throw _privateConstructorUsedError;

  /// Serializes this EquipmentHistoryCompaniesLinkRequestDto to a JSON map.
  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;

  /// Create a copy of EquipmentHistoryCompaniesLinkRequestDto
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $EquipmentHistoryCompaniesLinkRequestDtoCopyWith<
          EquipmentHistoryCompaniesLinkRequestDto>
      get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $EquipmentHistoryCompaniesLinkRequestDtoCopyWith<$Res> {
  factory $EquipmentHistoryCompaniesLinkRequestDtoCopyWith(
          EquipmentHistoryCompaniesLinkRequestDto value,
          $Res Function(EquipmentHistoryCompaniesLinkRequestDto) then) =
      _$EquipmentHistoryCompaniesLinkRequestDtoCopyWithImpl<$Res,
          EquipmentHistoryCompaniesLinkRequestDto>;
  @useResult
  $Res call(
      {@JsonKey(name: 'companies_id') int companiesId,
      @JsonKey(name: 'equipment_history_Id') int equipmentHistoryId,
      @JsonKey(name: 'Order') int order});
}

/// @nodoc
class _$EquipmentHistoryCompaniesLinkRequestDtoCopyWithImpl<$Res,
        $Val extends EquipmentHistoryCompaniesLinkRequestDto>
    implements $EquipmentHistoryCompaniesLinkRequestDtoCopyWith<$Res> {
  _$EquipmentHistoryCompaniesLinkRequestDtoCopyWithImpl(
      this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  /// Create a copy of EquipmentHistoryCompaniesLinkRequestDto
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? companiesId = null,
    Object? equipmentHistoryId = null,
    Object? order = null,
  }) {
    return _then(_value.copyWith(
      companiesId: null == companiesId
          ? _value.companiesId
          : companiesId // ignore: cast_nullable_to_non_nullable
              as int,
      equipmentHistoryId: null == equipmentHistoryId
          ? _value.equipmentHistoryId
          : equipmentHistoryId // ignore: cast_nullable_to_non_nullable
              as int,
      order: null == order
          ? _value.order
          : order // ignore: cast_nullable_to_non_nullable
              as int,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$EquipmentHistoryCompaniesLinkRequestDtoImplCopyWith<$Res>
    implements $EquipmentHistoryCompaniesLinkRequestDtoCopyWith<$Res> {
  factory _$$EquipmentHistoryCompaniesLinkRequestDtoImplCopyWith(
          _$EquipmentHistoryCompaniesLinkRequestDtoImpl value,
          $Res Function(_$EquipmentHistoryCompaniesLinkRequestDtoImpl) then) =
      __$$EquipmentHistoryCompaniesLinkRequestDtoImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {@JsonKey(name: 'companies_id') int companiesId,
      @JsonKey(name: 'equipment_history_Id') int equipmentHistoryId,
      @JsonKey(name: 'Order') int order});
}

/// @nodoc
class __$$EquipmentHistoryCompaniesLinkRequestDtoImplCopyWithImpl<$Res>
    extends _$EquipmentHistoryCompaniesLinkRequestDtoCopyWithImpl<$Res,
        _$EquipmentHistoryCompaniesLinkRequestDtoImpl>
    implements _$$EquipmentHistoryCompaniesLinkRequestDtoImplCopyWith<$Res> {
  __$$EquipmentHistoryCompaniesLinkRequestDtoImplCopyWithImpl(
      _$EquipmentHistoryCompaniesLinkRequestDtoImpl _value,
      $Res Function(_$EquipmentHistoryCompaniesLinkRequestDtoImpl) _then)
      : super(_value, _then);

  /// Create a copy of EquipmentHistoryCompaniesLinkRequestDto
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? companiesId = null,
    Object? equipmentHistoryId = null,
    Object? order = null,
  }) {
    return _then(_$EquipmentHistoryCompaniesLinkRequestDtoImpl(
      companiesId: null == companiesId
          ? _value.companiesId
          : companiesId // ignore: cast_nullable_to_non_nullable
              as int,
      equipmentHistoryId: null == equipmentHistoryId
          ? _value.equipmentHistoryId
          : equipmentHistoryId // ignore: cast_nullable_to_non_nullable
              as int,
      order: null == order
          ? _value.order
          : order // ignore: cast_nullable_to_non_nullable
              as int,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$EquipmentHistoryCompaniesLinkRequestDtoImpl
    implements _EquipmentHistoryCompaniesLinkRequestDto {
  const _$EquipmentHistoryCompaniesLinkRequestDtoImpl(
      {@JsonKey(name: 'companies_id') required this.companiesId,
      @JsonKey(name: 'equipment_history_Id') required this.equipmentHistoryId,
      @JsonKey(name: 'Order') this.order = 1});

  factory _$EquipmentHistoryCompaniesLinkRequestDtoImpl.fromJson(
          Map<String, dynamic> json) =>
      _$$EquipmentHistoryCompaniesLinkRequestDtoImplFromJson(json);

  @override
  @JsonKey(name: 'companies_id')
  final int companiesId;
  @override
  @JsonKey(name: 'equipment_history_Id')
  final int equipmentHistoryId;
  @override
  @JsonKey(name: 'Order')
  final int order;

  @override
  String toString() {
    return 'EquipmentHistoryCompaniesLinkRequestDto(companiesId: $companiesId, equipmentHistoryId: $equipmentHistoryId, order: $order)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$EquipmentHistoryCompaniesLinkRequestDtoImpl &&
            (identical(other.companiesId, companiesId) ||
                other.companiesId == companiesId) &&
            (identical(other.equipmentHistoryId, equipmentHistoryId) ||
                other.equipmentHistoryId == equipmentHistoryId) &&
            (identical(other.order, order) || other.order == order));
  }

  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  int get hashCode =>
      Object.hash(runtimeType, companiesId, equipmentHistoryId, order);

  /// Create a copy of EquipmentHistoryCompaniesLinkRequestDto
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$EquipmentHistoryCompaniesLinkRequestDtoImplCopyWith<
          _$EquipmentHistoryCompaniesLinkRequestDtoImpl>
      get copyWith =>
          __$$EquipmentHistoryCompaniesLinkRequestDtoImplCopyWithImpl<
              _$EquipmentHistoryCompaniesLinkRequestDtoImpl>(this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$EquipmentHistoryCompaniesLinkRequestDtoImplToJson(
      this,
    );
  }
}

abstract class _EquipmentHistoryCompaniesLinkRequestDto
    implements EquipmentHistoryCompaniesLinkRequestDto {
  const factory _EquipmentHistoryCompaniesLinkRequestDto(
          {@JsonKey(name: 'companies_id') required final int companiesId,
          @JsonKey(name: 'equipment_history_Id')
          required final int equipmentHistoryId,
          @JsonKey(name: 'Order') final int order}) =
      _$EquipmentHistoryCompaniesLinkRequestDtoImpl;

  factory _EquipmentHistoryCompaniesLinkRequestDto.fromJson(
          Map<String, dynamic> json) =
      _$EquipmentHistoryCompaniesLinkRequestDtoImpl.fromJson;

  @override
  @JsonKey(name: 'companies_id')
  int get companiesId;
  @override
  @JsonKey(name: 'equipment_history_Id')
  int get equipmentHistoryId;
  @override
  @JsonKey(name: 'Order')
  int get order;

  /// Create a copy of EquipmentHistoryCompaniesLinkRequestDto
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$EquipmentHistoryCompaniesLinkRequestDtoImplCopyWith<
          _$EquipmentHistoryCompaniesLinkRequestDtoImpl>
      get copyWith => throw _privateConstructorUsedError;
}

EquipmentHistoryCompaniesLinkUpdateRequestDto
    _$EquipmentHistoryCompaniesLinkUpdateRequestDtoFromJson(
        Map<String, dynamic> json) {
  return _EquipmentHistoryCompaniesLinkUpdateRequestDto.fromJson(json);
}

/// @nodoc
mixin _$EquipmentHistoryCompaniesLinkUpdateRequestDto {
  @JsonKey(name: 'companies_id')
  int? get companiesId => throw _privateConstructorUsedError;
  @JsonKey(name: 'equipment_history_Id')
  int? get equipmentHistoryId => throw _privateConstructorUsedError;
  @JsonKey(name: 'Order')
  int? get order => throw _privateConstructorUsedError;

  /// Serializes this EquipmentHistoryCompaniesLinkUpdateRequestDto to a JSON map.
  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;

  /// Create a copy of EquipmentHistoryCompaniesLinkUpdateRequestDto
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $EquipmentHistoryCompaniesLinkUpdateRequestDtoCopyWith<
          EquipmentHistoryCompaniesLinkUpdateRequestDto>
      get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $EquipmentHistoryCompaniesLinkUpdateRequestDtoCopyWith<$Res> {
  factory $EquipmentHistoryCompaniesLinkUpdateRequestDtoCopyWith(
          EquipmentHistoryCompaniesLinkUpdateRequestDto value,
          $Res Function(EquipmentHistoryCompaniesLinkUpdateRequestDto) then) =
      _$EquipmentHistoryCompaniesLinkUpdateRequestDtoCopyWithImpl<$Res,
          EquipmentHistoryCompaniesLinkUpdateRequestDto>;
  @useResult
  $Res call(
      {@JsonKey(name: 'companies_id') int? companiesId,
      @JsonKey(name: 'equipment_history_Id') int? equipmentHistoryId,
      @JsonKey(name: 'Order') int? order});
}

/// @nodoc
class _$EquipmentHistoryCompaniesLinkUpdateRequestDtoCopyWithImpl<$Res,
        $Val extends EquipmentHistoryCompaniesLinkUpdateRequestDto>
    implements $EquipmentHistoryCompaniesLinkUpdateRequestDtoCopyWith<$Res> {
  _$EquipmentHistoryCompaniesLinkUpdateRequestDtoCopyWithImpl(
      this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  /// Create a copy of EquipmentHistoryCompaniesLinkUpdateRequestDto
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? companiesId = freezed,
    Object? equipmentHistoryId = freezed,
    Object? order = freezed,
  }) {
    return _then(_value.copyWith(
      companiesId: freezed == companiesId
          ? _value.companiesId
          : companiesId // ignore: cast_nullable_to_non_nullable
              as int?,
      equipmentHistoryId: freezed == equipmentHistoryId
          ? _value.equipmentHistoryId
          : equipmentHistoryId // ignore: cast_nullable_to_non_nullable
              as int?,
      order: freezed == order
          ? _value.order
          : order // ignore: cast_nullable_to_non_nullable
              as int?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$EquipmentHistoryCompaniesLinkUpdateRequestDtoImplCopyWith<
        $Res>
    implements $EquipmentHistoryCompaniesLinkUpdateRequestDtoCopyWith<$Res> {
  factory _$$EquipmentHistoryCompaniesLinkUpdateRequestDtoImplCopyWith(
          _$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl value,
          $Res Function(_$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl)
              then) =
      __$$EquipmentHistoryCompaniesLinkUpdateRequestDtoImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {@JsonKey(name: 'companies_id') int? companiesId,
      @JsonKey(name: 'equipment_history_Id') int? equipmentHistoryId,
      @JsonKey(name: 'Order') int? order});
}

/// @nodoc
class __$$EquipmentHistoryCompaniesLinkUpdateRequestDtoImplCopyWithImpl<$Res>
    extends _$EquipmentHistoryCompaniesLinkUpdateRequestDtoCopyWithImpl<$Res,
        _$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl>
    implements
        _$$EquipmentHistoryCompaniesLinkUpdateRequestDtoImplCopyWith<$Res> {
  __$$EquipmentHistoryCompaniesLinkUpdateRequestDtoImplCopyWithImpl(
      _$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl _value,
      $Res Function(_$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl) _then)
      : super(_value, _then);

  /// Create a copy of EquipmentHistoryCompaniesLinkUpdateRequestDto
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? companiesId = freezed,
    Object? equipmentHistoryId = freezed,
    Object? order = freezed,
  }) {
    return _then(_$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl(
      companiesId: freezed == companiesId
          ? _value.companiesId
          : companiesId // ignore: cast_nullable_to_non_nullable
              as int?,
      equipmentHistoryId: freezed == equipmentHistoryId
          ? _value.equipmentHistoryId
          : equipmentHistoryId // ignore: cast_nullable_to_non_nullable
              as int?,
      order: freezed == order
          ? _value.order
          : order // ignore: cast_nullable_to_non_nullable
              as int?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl
    implements _EquipmentHistoryCompaniesLinkUpdateRequestDto {
  const _$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl(
      {@JsonKey(name: 'companies_id') this.companiesId,
      @JsonKey(name: 'equipment_history_Id') this.equipmentHistoryId,
      @JsonKey(name: 'Order') this.order});

  factory _$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl.fromJson(
          Map<String, dynamic> json) =>
      _$$EquipmentHistoryCompaniesLinkUpdateRequestDtoImplFromJson(json);

  @override
  @JsonKey(name: 'companies_id')
  final int? companiesId;
  @override
  @JsonKey(name: 'equipment_history_Id')
  final int? equipmentHistoryId;
  @override
  @JsonKey(name: 'Order')
  final int? order;

  @override
  String toString() {
    return 'EquipmentHistoryCompaniesLinkUpdateRequestDto(companiesId: $companiesId, equipmentHistoryId: $equipmentHistoryId, order: $order)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl &&
            (identical(other.companiesId, companiesId) ||
                other.companiesId == companiesId) &&
            (identical(other.equipmentHistoryId, equipmentHistoryId) ||
                other.equipmentHistoryId == equipmentHistoryId) &&
            (identical(other.order, order) || other.order == order));
  }

  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  int get hashCode =>
      Object.hash(runtimeType, companiesId, equipmentHistoryId, order);

  /// Create a copy of EquipmentHistoryCompaniesLinkUpdateRequestDto
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$EquipmentHistoryCompaniesLinkUpdateRequestDtoImplCopyWith<
          _$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl>
      get copyWith =>
          __$$EquipmentHistoryCompaniesLinkUpdateRequestDtoImplCopyWithImpl<
                  _$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl>(
              this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$EquipmentHistoryCompaniesLinkUpdateRequestDtoImplToJson(
      this,
    );
  }
}

abstract class _EquipmentHistoryCompaniesLinkUpdateRequestDto
    implements EquipmentHistoryCompaniesLinkUpdateRequestDto {
  const factory _EquipmentHistoryCompaniesLinkUpdateRequestDto(
          {@JsonKey(name: 'companies_id') final int? companiesId,
          @JsonKey(name: 'equipment_history_Id') final int? equipmentHistoryId,
          @JsonKey(name: 'Order') final int? order}) =
      _$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl;

  factory _EquipmentHistoryCompaniesLinkUpdateRequestDto.fromJson(
          Map<String, dynamic> json) =
      _$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl.fromJson;

  @override
  @JsonKey(name: 'companies_id')
  int? get companiesId;
  @override
  @JsonKey(name: 'equipment_history_Id')
  int? get equipmentHistoryId;
  @override
  @JsonKey(name: 'Order')
  int? get order;

  /// Create a copy of EquipmentHistoryCompaniesLinkUpdateRequestDto
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$EquipmentHistoryCompaniesLinkUpdateRequestDtoImplCopyWith<
          _$EquipmentHistoryCompaniesLinkUpdateRequestDtoImpl>
      get copyWith => throw _privateConstructorUsedError;
}

EquipmentHistoryCompaniesLinkListResponse
    _$EquipmentHistoryCompaniesLinkListResponseFromJson(
        Map<String, dynamic> json) {
  return _EquipmentHistoryCompaniesLinkListResponse.fromJson(json);
}

/// @nodoc
mixin _$EquipmentHistoryCompaniesLinkListResponse {
  @JsonKey(name: 'data')
  List<EquipmentHistoryCompaniesLinkDto> get items =>
      throw _privateConstructorUsedError;
  @JsonKey(name: 'total')
  int get totalCount => throw _privateConstructorUsedError;
  @JsonKey(name: 'page')
  int get currentPage => throw _privateConstructorUsedError;
  @JsonKey(name: 'total_pages')
  int get totalPages => throw _privateConstructorUsedError;
  @JsonKey(name: 'page_size')
  int? get pageSize => throw _privateConstructorUsedError;

  /// Serializes this EquipmentHistoryCompaniesLinkListResponse to a JSON map.
  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;

  /// Create a copy of EquipmentHistoryCompaniesLinkListResponse
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $EquipmentHistoryCompaniesLinkListResponseCopyWith<
          EquipmentHistoryCompaniesLinkListResponse>
      get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $EquipmentHistoryCompaniesLinkListResponseCopyWith<$Res> {
  factory $EquipmentHistoryCompaniesLinkListResponseCopyWith(
          EquipmentHistoryCompaniesLinkListResponse value,
          $Res Function(EquipmentHistoryCompaniesLinkListResponse) then) =
      _$EquipmentHistoryCompaniesLinkListResponseCopyWithImpl<$Res,
          EquipmentHistoryCompaniesLinkListResponse>;
  @useResult
  $Res call(
      {@JsonKey(name: 'data') List<EquipmentHistoryCompaniesLinkDto> items,
      @JsonKey(name: 'total') int totalCount,
      @JsonKey(name: 'page') int currentPage,
      @JsonKey(name: 'total_pages') int totalPages,
      @JsonKey(name: 'page_size') int? pageSize});
}

/// @nodoc
class _$EquipmentHistoryCompaniesLinkListResponseCopyWithImpl<$Res,
        $Val extends EquipmentHistoryCompaniesLinkListResponse>
    implements $EquipmentHistoryCompaniesLinkListResponseCopyWith<$Res> {
  _$EquipmentHistoryCompaniesLinkListResponseCopyWithImpl(
      this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  /// Create a copy of EquipmentHistoryCompaniesLinkListResponse
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? items = null,
    Object? totalCount = null,
    Object? currentPage = null,
    Object? totalPages = null,
    Object? pageSize = freezed,
  }) {
    return _then(_value.copyWith(
      items: null == items
          ? _value.items
          : items // ignore: cast_nullable_to_non_nullable
              as List<EquipmentHistoryCompaniesLinkDto>,
      totalCount: null == totalCount
          ? _value.totalCount
          : totalCount // ignore: cast_nullable_to_non_nullable
              as int,
      currentPage: null == currentPage
          ? _value.currentPage
          : currentPage // ignore: cast_nullable_to_non_nullable
              as int,
      totalPages: null == totalPages
          ? _value.totalPages
          : totalPages // ignore: cast_nullable_to_non_nullable
              as int,
      pageSize: freezed == pageSize
          ? _value.pageSize
          : pageSize // ignore: cast_nullable_to_non_nullable
              as int?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$EquipmentHistoryCompaniesLinkListResponseImplCopyWith<$Res>
    implements $EquipmentHistoryCompaniesLinkListResponseCopyWith<$Res> {
  factory _$$EquipmentHistoryCompaniesLinkListResponseImplCopyWith(
          _$EquipmentHistoryCompaniesLinkListResponseImpl value,
          $Res Function(_$EquipmentHistoryCompaniesLinkListResponseImpl) then) =
      __$$EquipmentHistoryCompaniesLinkListResponseImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {@JsonKey(name: 'data') List<EquipmentHistoryCompaniesLinkDto> items,
      @JsonKey(name: 'total') int totalCount,
      @JsonKey(name: 'page') int currentPage,
      @JsonKey(name: 'total_pages') int totalPages,
      @JsonKey(name: 'page_size') int? pageSize});
}

/// @nodoc
class __$$EquipmentHistoryCompaniesLinkListResponseImplCopyWithImpl<$Res>
    extends _$EquipmentHistoryCompaniesLinkListResponseCopyWithImpl<$Res,
        _$EquipmentHistoryCompaniesLinkListResponseImpl>
    implements _$$EquipmentHistoryCompaniesLinkListResponseImplCopyWith<$Res> {
  __$$EquipmentHistoryCompaniesLinkListResponseImplCopyWithImpl(
      _$EquipmentHistoryCompaniesLinkListResponseImpl _value,
      $Res Function(_$EquipmentHistoryCompaniesLinkListResponseImpl) _then)
      : super(_value, _then);

  /// Create a copy of EquipmentHistoryCompaniesLinkListResponse
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? items = null,
    Object? totalCount = null,
    Object? currentPage = null,
    Object? totalPages = null,
    Object? pageSize = freezed,
  }) {
    return _then(_$EquipmentHistoryCompaniesLinkListResponseImpl(
      items: null == items
          ? _value._items
          : items // ignore: cast_nullable_to_non_nullable
              as List<EquipmentHistoryCompaniesLinkDto>,
      totalCount: null == totalCount
          ? _value.totalCount
          : totalCount // ignore: cast_nullable_to_non_nullable
              as int,
      currentPage: null == currentPage
          ? _value.currentPage
          : currentPage // ignore: cast_nullable_to_non_nullable
              as int,
      totalPages: null == totalPages
          ? _value.totalPages
          : totalPages // ignore: cast_nullable_to_non_nullable
              as int,
      pageSize: freezed == pageSize
          ? _value.pageSize
          : pageSize // ignore: cast_nullable_to_non_nullable
              as int?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$EquipmentHistoryCompaniesLinkListResponseImpl
    implements _EquipmentHistoryCompaniesLinkListResponse {
  const _$EquipmentHistoryCompaniesLinkListResponseImpl(
      {@JsonKey(name: 'data')
      required final List<EquipmentHistoryCompaniesLinkDto> items,
      @JsonKey(name: 'total') required this.totalCount,
      @JsonKey(name: 'page') required this.currentPage,
      @JsonKey(name: 'total_pages') required this.totalPages,
      @JsonKey(name: 'page_size') this.pageSize})
      : _items = items;

  factory _$EquipmentHistoryCompaniesLinkListResponseImpl.fromJson(
          Map<String, dynamic> json) =>
      _$$EquipmentHistoryCompaniesLinkListResponseImplFromJson(json);

  final List<EquipmentHistoryCompaniesLinkDto> _items;
  @override
  @JsonKey(name: 'data')
  List<EquipmentHistoryCompaniesLinkDto> get items {
    if (_items is EqualUnmodifiableListView) return _items;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_items);
  }

  @override
  @JsonKey(name: 'total')
  final int totalCount;
  @override
  @JsonKey(name: 'page')
  final int currentPage;
  @override
  @JsonKey(name: 'total_pages')
  final int totalPages;
  @override
  @JsonKey(name: 'page_size')
  final int? pageSize;

  @override
  String toString() {
    return 'EquipmentHistoryCompaniesLinkListResponse(items: $items, totalCount: $totalCount, currentPage: $currentPage, totalPages: $totalPages, pageSize: $pageSize)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$EquipmentHistoryCompaniesLinkListResponseImpl &&
            const DeepCollectionEquality().equals(other._items, _items) &&
            (identical(other.totalCount, totalCount) ||
                other.totalCount == totalCount) &&
            (identical(other.currentPage, currentPage) ||
                other.currentPage == currentPage) &&
            (identical(other.totalPages, totalPages) ||
                other.totalPages == totalPages) &&
            (identical(other.pageSize, pageSize) ||
                other.pageSize == pageSize));
  }

  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  int get hashCode => Object.hash(
      runtimeType,
      const DeepCollectionEquality().hash(_items),
      totalCount,
      currentPage,
      totalPages,
      pageSize);

  /// Create a copy of EquipmentHistoryCompaniesLinkListResponse
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$EquipmentHistoryCompaniesLinkListResponseImplCopyWith<
          _$EquipmentHistoryCompaniesLinkListResponseImpl>
      get copyWith =>
          __$$EquipmentHistoryCompaniesLinkListResponseImplCopyWithImpl<
                  _$EquipmentHistoryCompaniesLinkListResponseImpl>(
              this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$EquipmentHistoryCompaniesLinkListResponseImplToJson(
      this,
    );
  }
}

abstract class _EquipmentHistoryCompaniesLinkListResponse
    implements EquipmentHistoryCompaniesLinkListResponse {
  const factory _EquipmentHistoryCompaniesLinkListResponse(
          {@JsonKey(name: 'data')
          required final List<EquipmentHistoryCompaniesLinkDto> items,
          @JsonKey(name: 'total') required final int totalCount,
          @JsonKey(name: 'page') required final int currentPage,
          @JsonKey(name: 'total_pages') required final int totalPages,
          @JsonKey(name: 'page_size') final int? pageSize}) =
      _$EquipmentHistoryCompaniesLinkListResponseImpl;

  factory _EquipmentHistoryCompaniesLinkListResponse.fromJson(
          Map<String, dynamic> json) =
      _$EquipmentHistoryCompaniesLinkListResponseImpl.fromJson;

  @override
  @JsonKey(name: 'data')
  List<EquipmentHistoryCompaniesLinkDto> get items;
  @override
  @JsonKey(name: 'total')
  int get totalCount;
  @override
  @JsonKey(name: 'page')
  int get currentPage;
  @override
  @JsonKey(name: 'total_pages')
  int get totalPages;
  @override
  @JsonKey(name: 'page_size')
  int? get pageSize;

  /// Create a copy of EquipmentHistoryCompaniesLinkListResponse
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$EquipmentHistoryCompaniesLinkListResponseImplCopyWith<
          _$EquipmentHistoryCompaniesLinkListResponseImpl>
      get copyWith => throw _privateConstructorUsedError;
}
