// 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 'printer_form_bloc.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',
);

/// @nodoc
mixin _$PrinterFormEvent {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String code) codeChanged,
    required TResult Function(String name) nameChanged,
    required TResult Function(String address) addressChanged,
    required TResult Function(String type) typeChanged,
    required TResult Function(String paper) paperChanged,
    required TResult Function() created,
    required TResult Function(int id) updated,
    required TResult Function(int id) deleted,
    required TResult Function(String code, String macAccdress) printTest,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String code)? codeChanged,
    TResult? Function(String name)? nameChanged,
    TResult? Function(String address)? addressChanged,
    TResult? Function(String type)? typeChanged,
    TResult? Function(String paper)? paperChanged,
    TResult? Function()? created,
    TResult? Function(int id)? updated,
    TResult? Function(int id)? deleted,
    TResult? Function(String code, String macAccdress)? printTest,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String code)? codeChanged,
    TResult Function(String name)? nameChanged,
    TResult Function(String address)? addressChanged,
    TResult Function(String type)? typeChanged,
    TResult Function(String paper)? paperChanged,
    TResult Function()? created,
    TResult Function(int id)? updated,
    TResult Function(int id)? deleted,
    TResult Function(String code, String macAccdress)? printTest,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_CodeChanged value) codeChanged,
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_AddressChanged value) addressChanged,
    required TResult Function(_TypeChanged value) typeChanged,
    required TResult Function(_PaperChanged value) paperChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Deleted value) deleted,
    required TResult Function(_PrintTest value) printTest,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_CodeChanged value)? codeChanged,
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_AddressChanged value)? addressChanged,
    TResult? Function(_TypeChanged value)? typeChanged,
    TResult? Function(_PaperChanged value)? paperChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Deleted value)? deleted,
    TResult? Function(_PrintTest value)? printTest,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_CodeChanged value)? codeChanged,
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_AddressChanged value)? addressChanged,
    TResult Function(_TypeChanged value)? typeChanged,
    TResult Function(_PaperChanged value)? paperChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Deleted value)? deleted,
    TResult Function(_PrintTest value)? printTest,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $PrinterFormEventCopyWith<$Res> {
  factory $PrinterFormEventCopyWith(
    PrinterFormEvent value,
    $Res Function(PrinterFormEvent) then,
  ) = _$PrinterFormEventCopyWithImpl<$Res, PrinterFormEvent>;
}

/// @nodoc
class _$PrinterFormEventCopyWithImpl<$Res, $Val extends PrinterFormEvent>
    implements $PrinterFormEventCopyWith<$Res> {
  _$PrinterFormEventCopyWithImpl(this._value, this._then);

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

  /// Create a copy of PrinterFormEvent
  /// with the given fields replaced by the non-null parameter values.
}

/// @nodoc
abstract class _$$CodeChangedImplCopyWith<$Res> {
  factory _$$CodeChangedImplCopyWith(
    _$CodeChangedImpl value,
    $Res Function(_$CodeChangedImpl) then,
  ) = __$$CodeChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String code});
}

/// @nodoc
class __$$CodeChangedImplCopyWithImpl<$Res>
    extends _$PrinterFormEventCopyWithImpl<$Res, _$CodeChangedImpl>
    implements _$$CodeChangedImplCopyWith<$Res> {
  __$$CodeChangedImplCopyWithImpl(
    _$CodeChangedImpl _value,
    $Res Function(_$CodeChangedImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$CodeChangedImpl implements _CodeChanged {
  const _$CodeChangedImpl(this.code);

  @override
  final String code;

  @override
  String toString() {
    return 'PrinterFormEvent.codeChanged(code: $code)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$CodeChangedImpl &&
            (identical(other.code, code) || other.code == code));
  }

  @override
  int get hashCode => Object.hash(runtimeType, code);

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String code) codeChanged,
    required TResult Function(String name) nameChanged,
    required TResult Function(String address) addressChanged,
    required TResult Function(String type) typeChanged,
    required TResult Function(String paper) paperChanged,
    required TResult Function() created,
    required TResult Function(int id) updated,
    required TResult Function(int id) deleted,
    required TResult Function(String code, String macAccdress) printTest,
  }) {
    return codeChanged(code);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String code)? codeChanged,
    TResult? Function(String name)? nameChanged,
    TResult? Function(String address)? addressChanged,
    TResult? Function(String type)? typeChanged,
    TResult? Function(String paper)? paperChanged,
    TResult? Function()? created,
    TResult? Function(int id)? updated,
    TResult? Function(int id)? deleted,
    TResult? Function(String code, String macAccdress)? printTest,
  }) {
    return codeChanged?.call(code);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String code)? codeChanged,
    TResult Function(String name)? nameChanged,
    TResult Function(String address)? addressChanged,
    TResult Function(String type)? typeChanged,
    TResult Function(String paper)? paperChanged,
    TResult Function()? created,
    TResult Function(int id)? updated,
    TResult Function(int id)? deleted,
    TResult Function(String code, String macAccdress)? printTest,
    required TResult orElse(),
  }) {
    if (codeChanged != null) {
      return codeChanged(code);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_CodeChanged value) codeChanged,
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_AddressChanged value) addressChanged,
    required TResult Function(_TypeChanged value) typeChanged,
    required TResult Function(_PaperChanged value) paperChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Deleted value) deleted,
    required TResult Function(_PrintTest value) printTest,
  }) {
    return codeChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_CodeChanged value)? codeChanged,
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_AddressChanged value)? addressChanged,
    TResult? Function(_TypeChanged value)? typeChanged,
    TResult? Function(_PaperChanged value)? paperChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Deleted value)? deleted,
    TResult? Function(_PrintTest value)? printTest,
  }) {
    return codeChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_CodeChanged value)? codeChanged,
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_AddressChanged value)? addressChanged,
    TResult Function(_TypeChanged value)? typeChanged,
    TResult Function(_PaperChanged value)? paperChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Deleted value)? deleted,
    TResult Function(_PrintTest value)? printTest,
    required TResult orElse(),
  }) {
    if (codeChanged != null) {
      return codeChanged(this);
    }
    return orElse();
  }
}

abstract class _CodeChanged implements PrinterFormEvent {
  const factory _CodeChanged(final String code) = _$CodeChangedImpl;

  String get code;

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

/// @nodoc
abstract class _$$NameChangedImplCopyWith<$Res> {
  factory _$$NameChangedImplCopyWith(
    _$NameChangedImpl value,
    $Res Function(_$NameChangedImpl) then,
  ) = __$$NameChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String name});
}

/// @nodoc
class __$$NameChangedImplCopyWithImpl<$Res>
    extends _$PrinterFormEventCopyWithImpl<$Res, _$NameChangedImpl>
    implements _$$NameChangedImplCopyWith<$Res> {
  __$$NameChangedImplCopyWithImpl(
    _$NameChangedImpl _value,
    $Res Function(_$NameChangedImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$NameChangedImpl implements _NameChanged {
  const _$NameChangedImpl(this.name);

  @override
  final String name;

  @override
  String toString() {
    return 'PrinterFormEvent.nameChanged(name: $name)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$NameChangedImpl &&
            (identical(other.name, name) || other.name == name));
  }

  @override
  int get hashCode => Object.hash(runtimeType, name);

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String code) codeChanged,
    required TResult Function(String name) nameChanged,
    required TResult Function(String address) addressChanged,
    required TResult Function(String type) typeChanged,
    required TResult Function(String paper) paperChanged,
    required TResult Function() created,
    required TResult Function(int id) updated,
    required TResult Function(int id) deleted,
    required TResult Function(String code, String macAccdress) printTest,
  }) {
    return nameChanged(name);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String code)? codeChanged,
    TResult? Function(String name)? nameChanged,
    TResult? Function(String address)? addressChanged,
    TResult? Function(String type)? typeChanged,
    TResult? Function(String paper)? paperChanged,
    TResult? Function()? created,
    TResult? Function(int id)? updated,
    TResult? Function(int id)? deleted,
    TResult? Function(String code, String macAccdress)? printTest,
  }) {
    return nameChanged?.call(name);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String code)? codeChanged,
    TResult Function(String name)? nameChanged,
    TResult Function(String address)? addressChanged,
    TResult Function(String type)? typeChanged,
    TResult Function(String paper)? paperChanged,
    TResult Function()? created,
    TResult Function(int id)? updated,
    TResult Function(int id)? deleted,
    TResult Function(String code, String macAccdress)? printTest,
    required TResult orElse(),
  }) {
    if (nameChanged != null) {
      return nameChanged(name);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_CodeChanged value) codeChanged,
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_AddressChanged value) addressChanged,
    required TResult Function(_TypeChanged value) typeChanged,
    required TResult Function(_PaperChanged value) paperChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Deleted value) deleted,
    required TResult Function(_PrintTest value) printTest,
  }) {
    return nameChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_CodeChanged value)? codeChanged,
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_AddressChanged value)? addressChanged,
    TResult? Function(_TypeChanged value)? typeChanged,
    TResult? Function(_PaperChanged value)? paperChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Deleted value)? deleted,
    TResult? Function(_PrintTest value)? printTest,
  }) {
    return nameChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_CodeChanged value)? codeChanged,
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_AddressChanged value)? addressChanged,
    TResult Function(_TypeChanged value)? typeChanged,
    TResult Function(_PaperChanged value)? paperChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Deleted value)? deleted,
    TResult Function(_PrintTest value)? printTest,
    required TResult orElse(),
  }) {
    if (nameChanged != null) {
      return nameChanged(this);
    }
    return orElse();
  }
}

abstract class _NameChanged implements PrinterFormEvent {
  const factory _NameChanged(final String name) = _$NameChangedImpl;

  String get name;

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

/// @nodoc
abstract class _$$AddressChangedImplCopyWith<$Res> {
  factory _$$AddressChangedImplCopyWith(
    _$AddressChangedImpl value,
    $Res Function(_$AddressChangedImpl) then,
  ) = __$$AddressChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String address});
}

/// @nodoc
class __$$AddressChangedImplCopyWithImpl<$Res>
    extends _$PrinterFormEventCopyWithImpl<$Res, _$AddressChangedImpl>
    implements _$$AddressChangedImplCopyWith<$Res> {
  __$$AddressChangedImplCopyWithImpl(
    _$AddressChangedImpl _value,
    $Res Function(_$AddressChangedImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$AddressChangedImpl implements _AddressChanged {
  const _$AddressChangedImpl(this.address);

  @override
  final String address;

  @override
  String toString() {
    return 'PrinterFormEvent.addressChanged(address: $address)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$AddressChangedImpl &&
            (identical(other.address, address) || other.address == address));
  }

  @override
  int get hashCode => Object.hash(runtimeType, address);

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String code) codeChanged,
    required TResult Function(String name) nameChanged,
    required TResult Function(String address) addressChanged,
    required TResult Function(String type) typeChanged,
    required TResult Function(String paper) paperChanged,
    required TResult Function() created,
    required TResult Function(int id) updated,
    required TResult Function(int id) deleted,
    required TResult Function(String code, String macAccdress) printTest,
  }) {
    return addressChanged(address);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String code)? codeChanged,
    TResult? Function(String name)? nameChanged,
    TResult? Function(String address)? addressChanged,
    TResult? Function(String type)? typeChanged,
    TResult? Function(String paper)? paperChanged,
    TResult? Function()? created,
    TResult? Function(int id)? updated,
    TResult? Function(int id)? deleted,
    TResult? Function(String code, String macAccdress)? printTest,
  }) {
    return addressChanged?.call(address);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String code)? codeChanged,
    TResult Function(String name)? nameChanged,
    TResult Function(String address)? addressChanged,
    TResult Function(String type)? typeChanged,
    TResult Function(String paper)? paperChanged,
    TResult Function()? created,
    TResult Function(int id)? updated,
    TResult Function(int id)? deleted,
    TResult Function(String code, String macAccdress)? printTest,
    required TResult orElse(),
  }) {
    if (addressChanged != null) {
      return addressChanged(address);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_CodeChanged value) codeChanged,
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_AddressChanged value) addressChanged,
    required TResult Function(_TypeChanged value) typeChanged,
    required TResult Function(_PaperChanged value) paperChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Deleted value) deleted,
    required TResult Function(_PrintTest value) printTest,
  }) {
    return addressChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_CodeChanged value)? codeChanged,
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_AddressChanged value)? addressChanged,
    TResult? Function(_TypeChanged value)? typeChanged,
    TResult? Function(_PaperChanged value)? paperChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Deleted value)? deleted,
    TResult? Function(_PrintTest value)? printTest,
  }) {
    return addressChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_CodeChanged value)? codeChanged,
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_AddressChanged value)? addressChanged,
    TResult Function(_TypeChanged value)? typeChanged,
    TResult Function(_PaperChanged value)? paperChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Deleted value)? deleted,
    TResult Function(_PrintTest value)? printTest,
    required TResult orElse(),
  }) {
    if (addressChanged != null) {
      return addressChanged(this);
    }
    return orElse();
  }
}

abstract class _AddressChanged implements PrinterFormEvent {
  const factory _AddressChanged(final String address) = _$AddressChangedImpl;

  String get address;

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

/// @nodoc
abstract class _$$TypeChangedImplCopyWith<$Res> {
  factory _$$TypeChangedImplCopyWith(
    _$TypeChangedImpl value,
    $Res Function(_$TypeChangedImpl) then,
  ) = __$$TypeChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String type});
}

/// @nodoc
class __$$TypeChangedImplCopyWithImpl<$Res>
    extends _$PrinterFormEventCopyWithImpl<$Res, _$TypeChangedImpl>
    implements _$$TypeChangedImplCopyWith<$Res> {
  __$$TypeChangedImplCopyWithImpl(
    _$TypeChangedImpl _value,
    $Res Function(_$TypeChangedImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$TypeChangedImpl implements _TypeChanged {
  const _$TypeChangedImpl(this.type);

  @override
  final String type;

  @override
  String toString() {
    return 'PrinterFormEvent.typeChanged(type: $type)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$TypeChangedImpl &&
            (identical(other.type, type) || other.type == type));
  }

  @override
  int get hashCode => Object.hash(runtimeType, type);

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String code) codeChanged,
    required TResult Function(String name) nameChanged,
    required TResult Function(String address) addressChanged,
    required TResult Function(String type) typeChanged,
    required TResult Function(String paper) paperChanged,
    required TResult Function() created,
    required TResult Function(int id) updated,
    required TResult Function(int id) deleted,
    required TResult Function(String code, String macAccdress) printTest,
  }) {
    return typeChanged(type);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String code)? codeChanged,
    TResult? Function(String name)? nameChanged,
    TResult? Function(String address)? addressChanged,
    TResult? Function(String type)? typeChanged,
    TResult? Function(String paper)? paperChanged,
    TResult? Function()? created,
    TResult? Function(int id)? updated,
    TResult? Function(int id)? deleted,
    TResult? Function(String code, String macAccdress)? printTest,
  }) {
    return typeChanged?.call(type);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String code)? codeChanged,
    TResult Function(String name)? nameChanged,
    TResult Function(String address)? addressChanged,
    TResult Function(String type)? typeChanged,
    TResult Function(String paper)? paperChanged,
    TResult Function()? created,
    TResult Function(int id)? updated,
    TResult Function(int id)? deleted,
    TResult Function(String code, String macAccdress)? printTest,
    required TResult orElse(),
  }) {
    if (typeChanged != null) {
      return typeChanged(type);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_CodeChanged value) codeChanged,
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_AddressChanged value) addressChanged,
    required TResult Function(_TypeChanged value) typeChanged,
    required TResult Function(_PaperChanged value) paperChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Deleted value) deleted,
    required TResult Function(_PrintTest value) printTest,
  }) {
    return typeChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_CodeChanged value)? codeChanged,
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_AddressChanged value)? addressChanged,
    TResult? Function(_TypeChanged value)? typeChanged,
    TResult? Function(_PaperChanged value)? paperChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Deleted value)? deleted,
    TResult? Function(_PrintTest value)? printTest,
  }) {
    return typeChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_CodeChanged value)? codeChanged,
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_AddressChanged value)? addressChanged,
    TResult Function(_TypeChanged value)? typeChanged,
    TResult Function(_PaperChanged value)? paperChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Deleted value)? deleted,
    TResult Function(_PrintTest value)? printTest,
    required TResult orElse(),
  }) {
    if (typeChanged != null) {
      return typeChanged(this);
    }
    return orElse();
  }
}

abstract class _TypeChanged implements PrinterFormEvent {
  const factory _TypeChanged(final String type) = _$TypeChangedImpl;

  String get type;

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

/// @nodoc
abstract class _$$PaperChangedImplCopyWith<$Res> {
  factory _$$PaperChangedImplCopyWith(
    _$PaperChangedImpl value,
    $Res Function(_$PaperChangedImpl) then,
  ) = __$$PaperChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String paper});
}

/// @nodoc
class __$$PaperChangedImplCopyWithImpl<$Res>
    extends _$PrinterFormEventCopyWithImpl<$Res, _$PaperChangedImpl>
    implements _$$PaperChangedImplCopyWith<$Res> {
  __$$PaperChangedImplCopyWithImpl(
    _$PaperChangedImpl _value,
    $Res Function(_$PaperChangedImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$PaperChangedImpl implements _PaperChanged {
  const _$PaperChangedImpl(this.paper);

  @override
  final String paper;

  @override
  String toString() {
    return 'PrinterFormEvent.paperChanged(paper: $paper)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$PaperChangedImpl &&
            (identical(other.paper, paper) || other.paper == paper));
  }

  @override
  int get hashCode => Object.hash(runtimeType, paper);

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String code) codeChanged,
    required TResult Function(String name) nameChanged,
    required TResult Function(String address) addressChanged,
    required TResult Function(String type) typeChanged,
    required TResult Function(String paper) paperChanged,
    required TResult Function() created,
    required TResult Function(int id) updated,
    required TResult Function(int id) deleted,
    required TResult Function(String code, String macAccdress) printTest,
  }) {
    return paperChanged(paper);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String code)? codeChanged,
    TResult? Function(String name)? nameChanged,
    TResult? Function(String address)? addressChanged,
    TResult? Function(String type)? typeChanged,
    TResult? Function(String paper)? paperChanged,
    TResult? Function()? created,
    TResult? Function(int id)? updated,
    TResult? Function(int id)? deleted,
    TResult? Function(String code, String macAccdress)? printTest,
  }) {
    return paperChanged?.call(paper);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String code)? codeChanged,
    TResult Function(String name)? nameChanged,
    TResult Function(String address)? addressChanged,
    TResult Function(String type)? typeChanged,
    TResult Function(String paper)? paperChanged,
    TResult Function()? created,
    TResult Function(int id)? updated,
    TResult Function(int id)? deleted,
    TResult Function(String code, String macAccdress)? printTest,
    required TResult orElse(),
  }) {
    if (paperChanged != null) {
      return paperChanged(paper);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_CodeChanged value) codeChanged,
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_AddressChanged value) addressChanged,
    required TResult Function(_TypeChanged value) typeChanged,
    required TResult Function(_PaperChanged value) paperChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Deleted value) deleted,
    required TResult Function(_PrintTest value) printTest,
  }) {
    return paperChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_CodeChanged value)? codeChanged,
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_AddressChanged value)? addressChanged,
    TResult? Function(_TypeChanged value)? typeChanged,
    TResult? Function(_PaperChanged value)? paperChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Deleted value)? deleted,
    TResult? Function(_PrintTest value)? printTest,
  }) {
    return paperChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_CodeChanged value)? codeChanged,
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_AddressChanged value)? addressChanged,
    TResult Function(_TypeChanged value)? typeChanged,
    TResult Function(_PaperChanged value)? paperChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Deleted value)? deleted,
    TResult Function(_PrintTest value)? printTest,
    required TResult orElse(),
  }) {
    if (paperChanged != null) {
      return paperChanged(this);
    }
    return orElse();
  }
}

abstract class _PaperChanged implements PrinterFormEvent {
  const factory _PaperChanged(final String paper) = _$PaperChangedImpl;

  String get paper;

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

/// @nodoc
abstract class _$$CreatedImplCopyWith<$Res> {
  factory _$$CreatedImplCopyWith(
    _$CreatedImpl value,
    $Res Function(_$CreatedImpl) then,
  ) = __$$CreatedImplCopyWithImpl<$Res>;
}

/// @nodoc
class __$$CreatedImplCopyWithImpl<$Res>
    extends _$PrinterFormEventCopyWithImpl<$Res, _$CreatedImpl>
    implements _$$CreatedImplCopyWith<$Res> {
  __$$CreatedImplCopyWithImpl(
    _$CreatedImpl _value,
    $Res Function(_$CreatedImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of PrinterFormEvent
  /// with the given fields replaced by the non-null parameter values.
}

/// @nodoc

class _$CreatedImpl implements _Created {
  const _$CreatedImpl();

  @override
  String toString() {
    return 'PrinterFormEvent.created()';
  }

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

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String code) codeChanged,
    required TResult Function(String name) nameChanged,
    required TResult Function(String address) addressChanged,
    required TResult Function(String type) typeChanged,
    required TResult Function(String paper) paperChanged,
    required TResult Function() created,
    required TResult Function(int id) updated,
    required TResult Function(int id) deleted,
    required TResult Function(String code, String macAccdress) printTest,
  }) {
    return created();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String code)? codeChanged,
    TResult? Function(String name)? nameChanged,
    TResult? Function(String address)? addressChanged,
    TResult? Function(String type)? typeChanged,
    TResult? Function(String paper)? paperChanged,
    TResult? Function()? created,
    TResult? Function(int id)? updated,
    TResult? Function(int id)? deleted,
    TResult? Function(String code, String macAccdress)? printTest,
  }) {
    return created?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String code)? codeChanged,
    TResult Function(String name)? nameChanged,
    TResult Function(String address)? addressChanged,
    TResult Function(String type)? typeChanged,
    TResult Function(String paper)? paperChanged,
    TResult Function()? created,
    TResult Function(int id)? updated,
    TResult Function(int id)? deleted,
    TResult Function(String code, String macAccdress)? printTest,
    required TResult orElse(),
  }) {
    if (created != null) {
      return created();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_CodeChanged value) codeChanged,
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_AddressChanged value) addressChanged,
    required TResult Function(_TypeChanged value) typeChanged,
    required TResult Function(_PaperChanged value) paperChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Deleted value) deleted,
    required TResult Function(_PrintTest value) printTest,
  }) {
    return created(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_CodeChanged value)? codeChanged,
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_AddressChanged value)? addressChanged,
    TResult? Function(_TypeChanged value)? typeChanged,
    TResult? Function(_PaperChanged value)? paperChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Deleted value)? deleted,
    TResult? Function(_PrintTest value)? printTest,
  }) {
    return created?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_CodeChanged value)? codeChanged,
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_AddressChanged value)? addressChanged,
    TResult Function(_TypeChanged value)? typeChanged,
    TResult Function(_PaperChanged value)? paperChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Deleted value)? deleted,
    TResult Function(_PrintTest value)? printTest,
    required TResult orElse(),
  }) {
    if (created != null) {
      return created(this);
    }
    return orElse();
  }
}

abstract class _Created implements PrinterFormEvent {
  const factory _Created() = _$CreatedImpl;
}

/// @nodoc
abstract class _$$UpdatedImplCopyWith<$Res> {
  factory _$$UpdatedImplCopyWith(
    _$UpdatedImpl value,
    $Res Function(_$UpdatedImpl) then,
  ) = __$$UpdatedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({int id});
}

/// @nodoc
class __$$UpdatedImplCopyWithImpl<$Res>
    extends _$PrinterFormEventCopyWithImpl<$Res, _$UpdatedImpl>
    implements _$$UpdatedImplCopyWith<$Res> {
  __$$UpdatedImplCopyWithImpl(
    _$UpdatedImpl _value,
    $Res Function(_$UpdatedImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$UpdatedImpl implements _Updated {
  const _$UpdatedImpl(this.id);

  @override
  final int id;

  @override
  String toString() {
    return 'PrinterFormEvent.updated(id: $id)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$UpdatedImpl &&
            (identical(other.id, id) || other.id == id));
  }

  @override
  int get hashCode => Object.hash(runtimeType, id);

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String code) codeChanged,
    required TResult Function(String name) nameChanged,
    required TResult Function(String address) addressChanged,
    required TResult Function(String type) typeChanged,
    required TResult Function(String paper) paperChanged,
    required TResult Function() created,
    required TResult Function(int id) updated,
    required TResult Function(int id) deleted,
    required TResult Function(String code, String macAccdress) printTest,
  }) {
    return updated(id);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String code)? codeChanged,
    TResult? Function(String name)? nameChanged,
    TResult? Function(String address)? addressChanged,
    TResult? Function(String type)? typeChanged,
    TResult? Function(String paper)? paperChanged,
    TResult? Function()? created,
    TResult? Function(int id)? updated,
    TResult? Function(int id)? deleted,
    TResult? Function(String code, String macAccdress)? printTest,
  }) {
    return updated?.call(id);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String code)? codeChanged,
    TResult Function(String name)? nameChanged,
    TResult Function(String address)? addressChanged,
    TResult Function(String type)? typeChanged,
    TResult Function(String paper)? paperChanged,
    TResult Function()? created,
    TResult Function(int id)? updated,
    TResult Function(int id)? deleted,
    TResult Function(String code, String macAccdress)? printTest,
    required TResult orElse(),
  }) {
    if (updated != null) {
      return updated(id);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_CodeChanged value) codeChanged,
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_AddressChanged value) addressChanged,
    required TResult Function(_TypeChanged value) typeChanged,
    required TResult Function(_PaperChanged value) paperChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Deleted value) deleted,
    required TResult Function(_PrintTest value) printTest,
  }) {
    return updated(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_CodeChanged value)? codeChanged,
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_AddressChanged value)? addressChanged,
    TResult? Function(_TypeChanged value)? typeChanged,
    TResult? Function(_PaperChanged value)? paperChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Deleted value)? deleted,
    TResult? Function(_PrintTest value)? printTest,
  }) {
    return updated?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_CodeChanged value)? codeChanged,
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_AddressChanged value)? addressChanged,
    TResult Function(_TypeChanged value)? typeChanged,
    TResult Function(_PaperChanged value)? paperChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Deleted value)? deleted,
    TResult Function(_PrintTest value)? printTest,
    required TResult orElse(),
  }) {
    if (updated != null) {
      return updated(this);
    }
    return orElse();
  }
}

abstract class _Updated implements PrinterFormEvent {
  const factory _Updated(final int id) = _$UpdatedImpl;

  int get id;

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

/// @nodoc
abstract class _$$DeletedImplCopyWith<$Res> {
  factory _$$DeletedImplCopyWith(
    _$DeletedImpl value,
    $Res Function(_$DeletedImpl) then,
  ) = __$$DeletedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({int id});
}

/// @nodoc
class __$$DeletedImplCopyWithImpl<$Res>
    extends _$PrinterFormEventCopyWithImpl<$Res, _$DeletedImpl>
    implements _$$DeletedImplCopyWith<$Res> {
  __$$DeletedImplCopyWithImpl(
    _$DeletedImpl _value,
    $Res Function(_$DeletedImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$DeletedImpl implements _Deleted {
  const _$DeletedImpl(this.id);

  @override
  final int id;

  @override
  String toString() {
    return 'PrinterFormEvent.deleted(id: $id)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$DeletedImpl &&
            (identical(other.id, id) || other.id == id));
  }

  @override
  int get hashCode => Object.hash(runtimeType, id);

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String code) codeChanged,
    required TResult Function(String name) nameChanged,
    required TResult Function(String address) addressChanged,
    required TResult Function(String type) typeChanged,
    required TResult Function(String paper) paperChanged,
    required TResult Function() created,
    required TResult Function(int id) updated,
    required TResult Function(int id) deleted,
    required TResult Function(String code, String macAccdress) printTest,
  }) {
    return deleted(id);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String code)? codeChanged,
    TResult? Function(String name)? nameChanged,
    TResult? Function(String address)? addressChanged,
    TResult? Function(String type)? typeChanged,
    TResult? Function(String paper)? paperChanged,
    TResult? Function()? created,
    TResult? Function(int id)? updated,
    TResult? Function(int id)? deleted,
    TResult? Function(String code, String macAccdress)? printTest,
  }) {
    return deleted?.call(id);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String code)? codeChanged,
    TResult Function(String name)? nameChanged,
    TResult Function(String address)? addressChanged,
    TResult Function(String type)? typeChanged,
    TResult Function(String paper)? paperChanged,
    TResult Function()? created,
    TResult Function(int id)? updated,
    TResult Function(int id)? deleted,
    TResult Function(String code, String macAccdress)? printTest,
    required TResult orElse(),
  }) {
    if (deleted != null) {
      return deleted(id);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_CodeChanged value) codeChanged,
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_AddressChanged value) addressChanged,
    required TResult Function(_TypeChanged value) typeChanged,
    required TResult Function(_PaperChanged value) paperChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Deleted value) deleted,
    required TResult Function(_PrintTest value) printTest,
  }) {
    return deleted(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_CodeChanged value)? codeChanged,
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_AddressChanged value)? addressChanged,
    TResult? Function(_TypeChanged value)? typeChanged,
    TResult? Function(_PaperChanged value)? paperChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Deleted value)? deleted,
    TResult? Function(_PrintTest value)? printTest,
  }) {
    return deleted?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_CodeChanged value)? codeChanged,
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_AddressChanged value)? addressChanged,
    TResult Function(_TypeChanged value)? typeChanged,
    TResult Function(_PaperChanged value)? paperChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Deleted value)? deleted,
    TResult Function(_PrintTest value)? printTest,
    required TResult orElse(),
  }) {
    if (deleted != null) {
      return deleted(this);
    }
    return orElse();
  }
}

abstract class _Deleted implements PrinterFormEvent {
  const factory _Deleted(final int id) = _$DeletedImpl;

  int get id;

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

/// @nodoc
abstract class _$$PrintTestImplCopyWith<$Res> {
  factory _$$PrintTestImplCopyWith(
    _$PrintTestImpl value,
    $Res Function(_$PrintTestImpl) then,
  ) = __$$PrintTestImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String code, String macAccdress});
}

/// @nodoc
class __$$PrintTestImplCopyWithImpl<$Res>
    extends _$PrinterFormEventCopyWithImpl<$Res, _$PrintTestImpl>
    implements _$$PrintTestImplCopyWith<$Res> {
  __$$PrintTestImplCopyWithImpl(
    _$PrintTestImpl _value,
    $Res Function(_$PrintTestImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$PrintTestImpl implements _PrintTest {
  const _$PrintTestImpl({required this.code, required this.macAccdress});

  @override
  final String code;
  @override
  final String macAccdress;

  @override
  String toString() {
    return 'PrinterFormEvent.printTest(code: $code, macAccdress: $macAccdress)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$PrintTestImpl &&
            (identical(other.code, code) || other.code == code) &&
            (identical(other.macAccdress, macAccdress) ||
                other.macAccdress == macAccdress));
  }

  @override
  int get hashCode => Object.hash(runtimeType, code, macAccdress);

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String code) codeChanged,
    required TResult Function(String name) nameChanged,
    required TResult Function(String address) addressChanged,
    required TResult Function(String type) typeChanged,
    required TResult Function(String paper) paperChanged,
    required TResult Function() created,
    required TResult Function(int id) updated,
    required TResult Function(int id) deleted,
    required TResult Function(String code, String macAccdress) printTest,
  }) {
    return printTest(code, macAccdress);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String code)? codeChanged,
    TResult? Function(String name)? nameChanged,
    TResult? Function(String address)? addressChanged,
    TResult? Function(String type)? typeChanged,
    TResult? Function(String paper)? paperChanged,
    TResult? Function()? created,
    TResult? Function(int id)? updated,
    TResult? Function(int id)? deleted,
    TResult? Function(String code, String macAccdress)? printTest,
  }) {
    return printTest?.call(code, macAccdress);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String code)? codeChanged,
    TResult Function(String name)? nameChanged,
    TResult Function(String address)? addressChanged,
    TResult Function(String type)? typeChanged,
    TResult Function(String paper)? paperChanged,
    TResult Function()? created,
    TResult Function(int id)? updated,
    TResult Function(int id)? deleted,
    TResult Function(String code, String macAccdress)? printTest,
    required TResult orElse(),
  }) {
    if (printTest != null) {
      return printTest(code, macAccdress);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_CodeChanged value) codeChanged,
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_AddressChanged value) addressChanged,
    required TResult Function(_TypeChanged value) typeChanged,
    required TResult Function(_PaperChanged value) paperChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Deleted value) deleted,
    required TResult Function(_PrintTest value) printTest,
  }) {
    return printTest(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_CodeChanged value)? codeChanged,
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_AddressChanged value)? addressChanged,
    TResult? Function(_TypeChanged value)? typeChanged,
    TResult? Function(_PaperChanged value)? paperChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Deleted value)? deleted,
    TResult? Function(_PrintTest value)? printTest,
  }) {
    return printTest?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_CodeChanged value)? codeChanged,
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_AddressChanged value)? addressChanged,
    TResult Function(_TypeChanged value)? typeChanged,
    TResult Function(_PaperChanged value)? paperChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Deleted value)? deleted,
    TResult Function(_PrintTest value)? printTest,
    required TResult orElse(),
  }) {
    if (printTest != null) {
      return printTest(this);
    }
    return orElse();
  }
}

abstract class _PrintTest implements PrinterFormEvent {
  const factory _PrintTest({
    required final String code,
    required final String macAccdress,
  }) = _$PrintTestImpl;

  String get code;
  String get macAccdress;

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

/// @nodoc
mixin _$PrinterFormState {
  String get code => throw _privateConstructorUsedError;
  String get name => throw _privateConstructorUsedError;
  String get address => throw _privateConstructorUsedError;
  String get paper => throw _privateConstructorUsedError;
  String get type => throw _privateConstructorUsedError;
  Option<Either<PrinterFailure, Unit>> get failureOrCreateSuccess =>
      throw _privateConstructorUsedError;
  Option<Either<PrinterFailure, Unit>> get failureOrUpdateSuccess =>
      throw _privateConstructorUsedError;
  Option<Either<PrinterFailure, Unit>> get failureOrDeleteSuccess =>
      throw _privateConstructorUsedError;
  Option<Either<PrinterFailure, bool>> get failureOrPrintTest =>
      throw _privateConstructorUsedError;
  dynamic get isCreating => throw _privateConstructorUsedError;
  dynamic get isUpdate => throw _privateConstructorUsedError;
  dynamic get isDeleting => throw _privateConstructorUsedError;
  dynamic get isPrinting => throw _privateConstructorUsedError;

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

/// @nodoc
abstract class $PrinterFormStateCopyWith<$Res> {
  factory $PrinterFormStateCopyWith(
    PrinterFormState value,
    $Res Function(PrinterFormState) then,
  ) = _$PrinterFormStateCopyWithImpl<$Res, PrinterFormState>;
  @useResult
  $Res call({
    String code,
    String name,
    String address,
    String paper,
    String type,
    Option<Either<PrinterFailure, Unit>> failureOrCreateSuccess,
    Option<Either<PrinterFailure, Unit>> failureOrUpdateSuccess,
    Option<Either<PrinterFailure, Unit>> failureOrDeleteSuccess,
    Option<Either<PrinterFailure, bool>> failureOrPrintTest,
    dynamic isCreating,
    dynamic isUpdate,
    dynamic isDeleting,
    dynamic isPrinting,
  });
}

/// @nodoc
class _$PrinterFormStateCopyWithImpl<$Res, $Val extends PrinterFormState>
    implements $PrinterFormStateCopyWith<$Res> {
  _$PrinterFormStateCopyWithImpl(this._value, this._then);

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

  /// Create a copy of PrinterFormState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? code = null,
    Object? name = null,
    Object? address = null,
    Object? paper = null,
    Object? type = null,
    Object? failureOrCreateSuccess = null,
    Object? failureOrUpdateSuccess = null,
    Object? failureOrDeleteSuccess = null,
    Object? failureOrPrintTest = null,
    Object? isCreating = freezed,
    Object? isUpdate = freezed,
    Object? isDeleting = freezed,
    Object? isPrinting = freezed,
  }) {
    return _then(
      _value.copyWith(
            code: null == code
                ? _value.code
                : code // ignore: cast_nullable_to_non_nullable
                      as String,
            name: null == name
                ? _value.name
                : name // ignore: cast_nullable_to_non_nullable
                      as String,
            address: null == address
                ? _value.address
                : address // ignore: cast_nullable_to_non_nullable
                      as String,
            paper: null == paper
                ? _value.paper
                : paper // ignore: cast_nullable_to_non_nullable
                      as String,
            type: null == type
                ? _value.type
                : type // ignore: cast_nullable_to_non_nullable
                      as String,
            failureOrCreateSuccess: null == failureOrCreateSuccess
                ? _value.failureOrCreateSuccess
                : failureOrCreateSuccess // ignore: cast_nullable_to_non_nullable
                      as Option<Either<PrinterFailure, Unit>>,
            failureOrUpdateSuccess: null == failureOrUpdateSuccess
                ? _value.failureOrUpdateSuccess
                : failureOrUpdateSuccess // ignore: cast_nullable_to_non_nullable
                      as Option<Either<PrinterFailure, Unit>>,
            failureOrDeleteSuccess: null == failureOrDeleteSuccess
                ? _value.failureOrDeleteSuccess
                : failureOrDeleteSuccess // ignore: cast_nullable_to_non_nullable
                      as Option<Either<PrinterFailure, Unit>>,
            failureOrPrintTest: null == failureOrPrintTest
                ? _value.failureOrPrintTest
                : failureOrPrintTest // ignore: cast_nullable_to_non_nullable
                      as Option<Either<PrinterFailure, bool>>,
            isCreating: freezed == isCreating
                ? _value.isCreating
                : isCreating // ignore: cast_nullable_to_non_nullable
                      as dynamic,
            isUpdate: freezed == isUpdate
                ? _value.isUpdate
                : isUpdate // ignore: cast_nullable_to_non_nullable
                      as dynamic,
            isDeleting: freezed == isDeleting
                ? _value.isDeleting
                : isDeleting // ignore: cast_nullable_to_non_nullable
                      as dynamic,
            isPrinting: freezed == isPrinting
                ? _value.isPrinting
                : isPrinting // ignore: cast_nullable_to_non_nullable
                      as dynamic,
          )
          as $Val,
    );
  }
}

/// @nodoc
abstract class _$$PrinterFormStateImplCopyWith<$Res>
    implements $PrinterFormStateCopyWith<$Res> {
  factory _$$PrinterFormStateImplCopyWith(
    _$PrinterFormStateImpl value,
    $Res Function(_$PrinterFormStateImpl) then,
  ) = __$$PrinterFormStateImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({
    String code,
    String name,
    String address,
    String paper,
    String type,
    Option<Either<PrinterFailure, Unit>> failureOrCreateSuccess,
    Option<Either<PrinterFailure, Unit>> failureOrUpdateSuccess,
    Option<Either<PrinterFailure, Unit>> failureOrDeleteSuccess,
    Option<Either<PrinterFailure, bool>> failureOrPrintTest,
    dynamic isCreating,
    dynamic isUpdate,
    dynamic isDeleting,
    dynamic isPrinting,
  });
}

/// @nodoc
class __$$PrinterFormStateImplCopyWithImpl<$Res>
    extends _$PrinterFormStateCopyWithImpl<$Res, _$PrinterFormStateImpl>
    implements _$$PrinterFormStateImplCopyWith<$Res> {
  __$$PrinterFormStateImplCopyWithImpl(
    _$PrinterFormStateImpl _value,
    $Res Function(_$PrinterFormStateImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of PrinterFormState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? code = null,
    Object? name = null,
    Object? address = null,
    Object? paper = null,
    Object? type = null,
    Object? failureOrCreateSuccess = null,
    Object? failureOrUpdateSuccess = null,
    Object? failureOrDeleteSuccess = null,
    Object? failureOrPrintTest = null,
    Object? isCreating = freezed,
    Object? isUpdate = freezed,
    Object? isDeleting = freezed,
    Object? isPrinting = freezed,
  }) {
    return _then(
      _$PrinterFormStateImpl(
        code: null == code
            ? _value.code
            : code // ignore: cast_nullable_to_non_nullable
                  as String,
        name: null == name
            ? _value.name
            : name // ignore: cast_nullable_to_non_nullable
                  as String,
        address: null == address
            ? _value.address
            : address // ignore: cast_nullable_to_non_nullable
                  as String,
        paper: null == paper
            ? _value.paper
            : paper // ignore: cast_nullable_to_non_nullable
                  as String,
        type: null == type
            ? _value.type
            : type // ignore: cast_nullable_to_non_nullable
                  as String,
        failureOrCreateSuccess: null == failureOrCreateSuccess
            ? _value.failureOrCreateSuccess
            : failureOrCreateSuccess // ignore: cast_nullable_to_non_nullable
                  as Option<Either<PrinterFailure, Unit>>,
        failureOrUpdateSuccess: null == failureOrUpdateSuccess
            ? _value.failureOrUpdateSuccess
            : failureOrUpdateSuccess // ignore: cast_nullable_to_non_nullable
                  as Option<Either<PrinterFailure, Unit>>,
        failureOrDeleteSuccess: null == failureOrDeleteSuccess
            ? _value.failureOrDeleteSuccess
            : failureOrDeleteSuccess // ignore: cast_nullable_to_non_nullable
                  as Option<Either<PrinterFailure, Unit>>,
        failureOrPrintTest: null == failureOrPrintTest
            ? _value.failureOrPrintTest
            : failureOrPrintTest // ignore: cast_nullable_to_non_nullable
                  as Option<Either<PrinterFailure, bool>>,
        isCreating: freezed == isCreating ? _value.isCreating! : isCreating,
        isUpdate: freezed == isUpdate ? _value.isUpdate! : isUpdate,
        isDeleting: freezed == isDeleting ? _value.isDeleting! : isDeleting,
        isPrinting: freezed == isPrinting ? _value.isPrinting! : isPrinting,
      ),
    );
  }
}

/// @nodoc

class _$PrinterFormStateImpl implements _PrinterFormState {
  _$PrinterFormStateImpl({
    required this.code,
    required this.name,
    required this.address,
    required this.paper,
    required this.type,
    required this.failureOrCreateSuccess,
    required this.failureOrUpdateSuccess,
    required this.failureOrDeleteSuccess,
    required this.failureOrPrintTest,
    this.isCreating = false,
    this.isUpdate = false,
    this.isDeleting = false,
    this.isPrinting = false,
  });

  @override
  final String code;
  @override
  final String name;
  @override
  final String address;
  @override
  final String paper;
  @override
  final String type;
  @override
  final Option<Either<PrinterFailure, Unit>> failureOrCreateSuccess;
  @override
  final Option<Either<PrinterFailure, Unit>> failureOrUpdateSuccess;
  @override
  final Option<Either<PrinterFailure, Unit>> failureOrDeleteSuccess;
  @override
  final Option<Either<PrinterFailure, bool>> failureOrPrintTest;
  @override
  @JsonKey()
  final dynamic isCreating;
  @override
  @JsonKey()
  final dynamic isUpdate;
  @override
  @JsonKey()
  final dynamic isDeleting;
  @override
  @JsonKey()
  final dynamic isPrinting;

  @override
  String toString() {
    return 'PrinterFormState(code: $code, name: $name, address: $address, paper: $paper, type: $type, failureOrCreateSuccess: $failureOrCreateSuccess, failureOrUpdateSuccess: $failureOrUpdateSuccess, failureOrDeleteSuccess: $failureOrDeleteSuccess, failureOrPrintTest: $failureOrPrintTest, isCreating: $isCreating, isUpdate: $isUpdate, isDeleting: $isDeleting, isPrinting: $isPrinting)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$PrinterFormStateImpl &&
            (identical(other.code, code) || other.code == code) &&
            (identical(other.name, name) || other.name == name) &&
            (identical(other.address, address) || other.address == address) &&
            (identical(other.paper, paper) || other.paper == paper) &&
            (identical(other.type, type) || other.type == type) &&
            (identical(other.failureOrCreateSuccess, failureOrCreateSuccess) ||
                other.failureOrCreateSuccess == failureOrCreateSuccess) &&
            (identical(other.failureOrUpdateSuccess, failureOrUpdateSuccess) ||
                other.failureOrUpdateSuccess == failureOrUpdateSuccess) &&
            (identical(other.failureOrDeleteSuccess, failureOrDeleteSuccess) ||
                other.failureOrDeleteSuccess == failureOrDeleteSuccess) &&
            (identical(other.failureOrPrintTest, failureOrPrintTest) ||
                other.failureOrPrintTest == failureOrPrintTest) &&
            const DeepCollectionEquality().equals(
              other.isCreating,
              isCreating,
            ) &&
            const DeepCollectionEquality().equals(other.isUpdate, isUpdate) &&
            const DeepCollectionEquality().equals(
              other.isDeleting,
              isDeleting,
            ) &&
            const DeepCollectionEquality().equals(
              other.isPrinting,
              isPrinting,
            ));
  }

  @override
  int get hashCode => Object.hash(
    runtimeType,
    code,
    name,
    address,
    paper,
    type,
    failureOrCreateSuccess,
    failureOrUpdateSuccess,
    failureOrDeleteSuccess,
    failureOrPrintTest,
    const DeepCollectionEquality().hash(isCreating),
    const DeepCollectionEquality().hash(isUpdate),
    const DeepCollectionEquality().hash(isDeleting),
    const DeepCollectionEquality().hash(isPrinting),
  );

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

abstract class _PrinterFormState implements PrinterFormState {
  factory _PrinterFormState({
    required final String code,
    required final String name,
    required final String address,
    required final String paper,
    required final String type,
    required final Option<Either<PrinterFailure, Unit>> failureOrCreateSuccess,
    required final Option<Either<PrinterFailure, Unit>> failureOrUpdateSuccess,
    required final Option<Either<PrinterFailure, Unit>> failureOrDeleteSuccess,
    required final Option<Either<PrinterFailure, bool>> failureOrPrintTest,
    final dynamic isCreating,
    final dynamic isUpdate,
    final dynamic isDeleting,
    final dynamic isPrinting,
  }) = _$PrinterFormStateImpl;

  @override
  String get code;
  @override
  String get name;
  @override
  String get address;
  @override
  String get paper;
  @override
  String get type;
  @override
  Option<Either<PrinterFailure, Unit>> get failureOrCreateSuccess;
  @override
  Option<Either<PrinterFailure, Unit>> get failureOrUpdateSuccess;
  @override
  Option<Either<PrinterFailure, Unit>> get failureOrDeleteSuccess;
  @override
  Option<Either<PrinterFailure, bool>> get failureOrPrintTest;
  @override
  dynamic get isCreating;
  @override
  dynamic get isUpdate;
  @override
  dynamic get isDeleting;
  @override
  dynamic get isPrinting;

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