// 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 'table_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 _$TableFormEvent {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String name) nameChanged,
    required TResult Function(String capacity) capacityChanged,
    required TResult Function() created,
    required TResult Function(String id, Offset position) updated,
    required TResult Function(String fromTableId, String toTableId) transfer,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String name)? nameChanged,
    TResult? Function(String capacity)? capacityChanged,
    TResult? Function()? created,
    TResult? Function(String id, Offset position)? updated,
    TResult? Function(String fromTableId, String toTableId)? transfer,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String name)? nameChanged,
    TResult Function(String capacity)? capacityChanged,
    TResult Function()? created,
    TResult Function(String id, Offset position)? updated,
    TResult Function(String fromTableId, String toTableId)? transfer,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_CapacityChanged value) capacityChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Transfer value) transfer,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_CapacityChanged value)? capacityChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Transfer value)? transfer,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_CapacityChanged value)? capacityChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Transfer value)? transfer,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $TableFormEventCopyWith<$Res> {
  factory $TableFormEventCopyWith(
    TableFormEvent value,
    $Res Function(TableFormEvent) then,
  ) = _$TableFormEventCopyWithImpl<$Res, TableFormEvent>;
}

/// @nodoc
class _$TableFormEventCopyWithImpl<$Res, $Val extends TableFormEvent>
    implements $TableFormEventCopyWith<$Res> {
  _$TableFormEventCopyWithImpl(this._value, this._then);

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

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

/// @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 _$TableFormEventCopyWithImpl<$Res, _$NameChangedImpl>
    implements _$$NameChangedImplCopyWith<$Res> {
  __$$NameChangedImplCopyWithImpl(
    _$NameChangedImpl _value,
    $Res Function(_$NameChangedImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of TableFormEvent
  /// 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 'TableFormEvent.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 TableFormEvent
  /// 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 name) nameChanged,
    required TResult Function(String capacity) capacityChanged,
    required TResult Function() created,
    required TResult Function(String id, Offset position) updated,
    required TResult Function(String fromTableId, String toTableId) transfer,
  }) {
    return nameChanged(name);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String name)? nameChanged,
    TResult? Function(String capacity)? capacityChanged,
    TResult? Function()? created,
    TResult? Function(String id, Offset position)? updated,
    TResult? Function(String fromTableId, String toTableId)? transfer,
  }) {
    return nameChanged?.call(name);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String name)? nameChanged,
    TResult Function(String capacity)? capacityChanged,
    TResult Function()? created,
    TResult Function(String id, Offset position)? updated,
    TResult Function(String fromTableId, String toTableId)? transfer,
    required TResult orElse(),
  }) {
    if (nameChanged != null) {
      return nameChanged(name);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_CapacityChanged value) capacityChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Transfer value) transfer,
  }) {
    return nameChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_CapacityChanged value)? capacityChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Transfer value)? transfer,
  }) {
    return nameChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_CapacityChanged value)? capacityChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Transfer value)? transfer,
    required TResult orElse(),
  }) {
    if (nameChanged != null) {
      return nameChanged(this);
    }
    return orElse();
  }
}

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

  String get name;

  /// Create a copy of TableFormEvent
  /// 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 _$$CapacityChangedImplCopyWith<$Res> {
  factory _$$CapacityChangedImplCopyWith(
    _$CapacityChangedImpl value,
    $Res Function(_$CapacityChangedImpl) then,
  ) = __$$CapacityChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String capacity});
}

/// @nodoc
class __$$CapacityChangedImplCopyWithImpl<$Res>
    extends _$TableFormEventCopyWithImpl<$Res, _$CapacityChangedImpl>
    implements _$$CapacityChangedImplCopyWith<$Res> {
  __$$CapacityChangedImplCopyWithImpl(
    _$CapacityChangedImpl _value,
    $Res Function(_$CapacityChangedImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$CapacityChangedImpl implements _CapacityChanged {
  const _$CapacityChangedImpl(this.capacity);

  @override
  final String capacity;

  @override
  String toString() {
    return 'TableFormEvent.capacityChanged(capacity: $capacity)';
  }

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

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

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String name) nameChanged,
    required TResult Function(String capacity) capacityChanged,
    required TResult Function() created,
    required TResult Function(String id, Offset position) updated,
    required TResult Function(String fromTableId, String toTableId) transfer,
  }) {
    return capacityChanged(capacity);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String name)? nameChanged,
    TResult? Function(String capacity)? capacityChanged,
    TResult? Function()? created,
    TResult? Function(String id, Offset position)? updated,
    TResult? Function(String fromTableId, String toTableId)? transfer,
  }) {
    return capacityChanged?.call(capacity);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String name)? nameChanged,
    TResult Function(String capacity)? capacityChanged,
    TResult Function()? created,
    TResult Function(String id, Offset position)? updated,
    TResult Function(String fromTableId, String toTableId)? transfer,
    required TResult orElse(),
  }) {
    if (capacityChanged != null) {
      return capacityChanged(capacity);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_CapacityChanged value) capacityChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Transfer value) transfer,
  }) {
    return capacityChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_CapacityChanged value)? capacityChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Transfer value)? transfer,
  }) {
    return capacityChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_CapacityChanged value)? capacityChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Transfer value)? transfer,
    required TResult orElse(),
  }) {
    if (capacityChanged != null) {
      return capacityChanged(this);
    }
    return orElse();
  }
}

abstract class _CapacityChanged implements TableFormEvent {
  const factory _CapacityChanged(final String capacity) = _$CapacityChangedImpl;

  String get capacity;

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

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

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

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

/// @nodoc

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

  @override
  String toString() {
    return 'TableFormEvent.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 name) nameChanged,
    required TResult Function(String capacity) capacityChanged,
    required TResult Function() created,
    required TResult Function(String id, Offset position) updated,
    required TResult Function(String fromTableId, String toTableId) transfer,
  }) {
    return created();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String name)? nameChanged,
    TResult? Function(String capacity)? capacityChanged,
    TResult? Function()? created,
    TResult? Function(String id, Offset position)? updated,
    TResult? Function(String fromTableId, String toTableId)? transfer,
  }) {
    return created?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String name)? nameChanged,
    TResult Function(String capacity)? capacityChanged,
    TResult Function()? created,
    TResult Function(String id, Offset position)? updated,
    TResult Function(String fromTableId, String toTableId)? transfer,
    required TResult orElse(),
  }) {
    if (created != null) {
      return created();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_CapacityChanged value) capacityChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Transfer value) transfer,
  }) {
    return created(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_CapacityChanged value)? capacityChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Transfer value)? transfer,
  }) {
    return created?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_CapacityChanged value)? capacityChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Transfer value)? transfer,
    required TResult orElse(),
  }) {
    if (created != null) {
      return created(this);
    }
    return orElse();
  }
}

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

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

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

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

/// @nodoc

class _$UpdatedImpl implements _Updated {
  const _$UpdatedImpl({required this.id, required this.position});

  @override
  final String id;
  @override
  final Offset position;

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

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

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

  /// Create a copy of TableFormEvent
  /// 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 name) nameChanged,
    required TResult Function(String capacity) capacityChanged,
    required TResult Function() created,
    required TResult Function(String id, Offset position) updated,
    required TResult Function(String fromTableId, String toTableId) transfer,
  }) {
    return updated(id, position);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String name)? nameChanged,
    TResult? Function(String capacity)? capacityChanged,
    TResult? Function()? created,
    TResult? Function(String id, Offset position)? updated,
    TResult? Function(String fromTableId, String toTableId)? transfer,
  }) {
    return updated?.call(id, position);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String name)? nameChanged,
    TResult Function(String capacity)? capacityChanged,
    TResult Function()? created,
    TResult Function(String id, Offset position)? updated,
    TResult Function(String fromTableId, String toTableId)? transfer,
    required TResult orElse(),
  }) {
    if (updated != null) {
      return updated(id, position);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_CapacityChanged value) capacityChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Transfer value) transfer,
  }) {
    return updated(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_CapacityChanged value)? capacityChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Transfer value)? transfer,
  }) {
    return updated?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_CapacityChanged value)? capacityChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Transfer value)? transfer,
    required TResult orElse(),
  }) {
    if (updated != null) {
      return updated(this);
    }
    return orElse();
  }
}

abstract class _Updated implements TableFormEvent {
  const factory _Updated({
    required final String id,
    required final Offset position,
  }) = _$UpdatedImpl;

  String get id;
  Offset get position;

  /// Create a copy of TableFormEvent
  /// 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 _$$TransferImplCopyWith<$Res> {
  factory _$$TransferImplCopyWith(
    _$TransferImpl value,
    $Res Function(_$TransferImpl) then,
  ) = __$$TransferImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String fromTableId, String toTableId});
}

/// @nodoc
class __$$TransferImplCopyWithImpl<$Res>
    extends _$TableFormEventCopyWithImpl<$Res, _$TransferImpl>
    implements _$$TransferImplCopyWith<$Res> {
  __$$TransferImplCopyWithImpl(
    _$TransferImpl _value,
    $Res Function(_$TransferImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$TransferImpl implements _Transfer {
  const _$TransferImpl({required this.fromTableId, required this.toTableId});

  @override
  final String fromTableId;
  @override
  final String toTableId;

  @override
  String toString() {
    return 'TableFormEvent.transfer(fromTableId: $fromTableId, toTableId: $toTableId)';
  }

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

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

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String name) nameChanged,
    required TResult Function(String capacity) capacityChanged,
    required TResult Function() created,
    required TResult Function(String id, Offset position) updated,
    required TResult Function(String fromTableId, String toTableId) transfer,
  }) {
    return transfer(fromTableId, toTableId);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String name)? nameChanged,
    TResult? Function(String capacity)? capacityChanged,
    TResult? Function()? created,
    TResult? Function(String id, Offset position)? updated,
    TResult? Function(String fromTableId, String toTableId)? transfer,
  }) {
    return transfer?.call(fromTableId, toTableId);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String name)? nameChanged,
    TResult Function(String capacity)? capacityChanged,
    TResult Function()? created,
    TResult Function(String id, Offset position)? updated,
    TResult Function(String fromTableId, String toTableId)? transfer,
    required TResult orElse(),
  }) {
    if (transfer != null) {
      return transfer(fromTableId, toTableId);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_NameChanged value) nameChanged,
    required TResult Function(_CapacityChanged value) capacityChanged,
    required TResult Function(_Created value) created,
    required TResult Function(_Updated value) updated,
    required TResult Function(_Transfer value) transfer,
  }) {
    return transfer(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_NameChanged value)? nameChanged,
    TResult? Function(_CapacityChanged value)? capacityChanged,
    TResult? Function(_Created value)? created,
    TResult? Function(_Updated value)? updated,
    TResult? Function(_Transfer value)? transfer,
  }) {
    return transfer?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_NameChanged value)? nameChanged,
    TResult Function(_CapacityChanged value)? capacityChanged,
    TResult Function(_Created value)? created,
    TResult Function(_Updated value)? updated,
    TResult Function(_Transfer value)? transfer,
    required TResult orElse(),
  }) {
    if (transfer != null) {
      return transfer(this);
    }
    return orElse();
  }
}

abstract class _Transfer implements TableFormEvent {
  const factory _Transfer({
    required final String fromTableId,
    required final String toTableId,
  }) = _$TransferImpl;

  String get fromTableId;
  String get toTableId;

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

/// @nodoc
mixin _$TableFormState {
  String get name => throw _privateConstructorUsedError;
  int get capacity => throw _privateConstructorUsedError;
  Option<Either<TableFailure, Table>> get failureOrTable =>
      throw _privateConstructorUsedError;
  Option<Either<TableFailure, Unit>> get failureOrTableTransfer =>
      throw _privateConstructorUsedError;
  bool get isUpdating => throw _privateConstructorUsedError;
  bool get isCreating => throw _privateConstructorUsedError;
  bool get isTransfering => throw _privateConstructorUsedError;

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

/// @nodoc
abstract class $TableFormStateCopyWith<$Res> {
  factory $TableFormStateCopyWith(
    TableFormState value,
    $Res Function(TableFormState) then,
  ) = _$TableFormStateCopyWithImpl<$Res, TableFormState>;
  @useResult
  $Res call({
    String name,
    int capacity,
    Option<Either<TableFailure, Table>> failureOrTable,
    Option<Either<TableFailure, Unit>> failureOrTableTransfer,
    bool isUpdating,
    bool isCreating,
    bool isTransfering,
  });
}

/// @nodoc
class _$TableFormStateCopyWithImpl<$Res, $Val extends TableFormState>
    implements $TableFormStateCopyWith<$Res> {
  _$TableFormStateCopyWithImpl(this._value, this._then);

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

  /// Create a copy of TableFormState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? name = null,
    Object? capacity = null,
    Object? failureOrTable = null,
    Object? failureOrTableTransfer = null,
    Object? isUpdating = null,
    Object? isCreating = null,
    Object? isTransfering = null,
  }) {
    return _then(
      _value.copyWith(
            name: null == name
                ? _value.name
                : name // ignore: cast_nullable_to_non_nullable
                      as String,
            capacity: null == capacity
                ? _value.capacity
                : capacity // ignore: cast_nullable_to_non_nullable
                      as int,
            failureOrTable: null == failureOrTable
                ? _value.failureOrTable
                : failureOrTable // ignore: cast_nullable_to_non_nullable
                      as Option<Either<TableFailure, Table>>,
            failureOrTableTransfer: null == failureOrTableTransfer
                ? _value.failureOrTableTransfer
                : failureOrTableTransfer // ignore: cast_nullable_to_non_nullable
                      as Option<Either<TableFailure, Unit>>,
            isUpdating: null == isUpdating
                ? _value.isUpdating
                : isUpdating // ignore: cast_nullable_to_non_nullable
                      as bool,
            isCreating: null == isCreating
                ? _value.isCreating
                : isCreating // ignore: cast_nullable_to_non_nullable
                      as bool,
            isTransfering: null == isTransfering
                ? _value.isTransfering
                : isTransfering // ignore: cast_nullable_to_non_nullable
                      as bool,
          )
          as $Val,
    );
  }
}

/// @nodoc
abstract class _$$TableFormStateImplCopyWith<$Res>
    implements $TableFormStateCopyWith<$Res> {
  factory _$$TableFormStateImplCopyWith(
    _$TableFormStateImpl value,
    $Res Function(_$TableFormStateImpl) then,
  ) = __$$TableFormStateImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({
    String name,
    int capacity,
    Option<Either<TableFailure, Table>> failureOrTable,
    Option<Either<TableFailure, Unit>> failureOrTableTransfer,
    bool isUpdating,
    bool isCreating,
    bool isTransfering,
  });
}

/// @nodoc
class __$$TableFormStateImplCopyWithImpl<$Res>
    extends _$TableFormStateCopyWithImpl<$Res, _$TableFormStateImpl>
    implements _$$TableFormStateImplCopyWith<$Res> {
  __$$TableFormStateImplCopyWithImpl(
    _$TableFormStateImpl _value,
    $Res Function(_$TableFormStateImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of TableFormState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? name = null,
    Object? capacity = null,
    Object? failureOrTable = null,
    Object? failureOrTableTransfer = null,
    Object? isUpdating = null,
    Object? isCreating = null,
    Object? isTransfering = null,
  }) {
    return _then(
      _$TableFormStateImpl(
        name: null == name
            ? _value.name
            : name // ignore: cast_nullable_to_non_nullable
                  as String,
        capacity: null == capacity
            ? _value.capacity
            : capacity // ignore: cast_nullable_to_non_nullable
                  as int,
        failureOrTable: null == failureOrTable
            ? _value.failureOrTable
            : failureOrTable // ignore: cast_nullable_to_non_nullable
                  as Option<Either<TableFailure, Table>>,
        failureOrTableTransfer: null == failureOrTableTransfer
            ? _value.failureOrTableTransfer
            : failureOrTableTransfer // ignore: cast_nullable_to_non_nullable
                  as Option<Either<TableFailure, Unit>>,
        isUpdating: null == isUpdating
            ? _value.isUpdating
            : isUpdating // ignore: cast_nullable_to_non_nullable
                  as bool,
        isCreating: null == isCreating
            ? _value.isCreating
            : isCreating // ignore: cast_nullable_to_non_nullable
                  as bool,
        isTransfering: null == isTransfering
            ? _value.isTransfering
            : isTransfering // ignore: cast_nullable_to_non_nullable
                  as bool,
      ),
    );
  }
}

/// @nodoc

class _$TableFormStateImpl implements _TableFormState {
  _$TableFormStateImpl({
    required this.name,
    required this.capacity,
    required this.failureOrTable,
    required this.failureOrTableTransfer,
    this.isUpdating = false,
    this.isCreating = false,
    this.isTransfering = false,
  });

  @override
  final String name;
  @override
  final int capacity;
  @override
  final Option<Either<TableFailure, Table>> failureOrTable;
  @override
  final Option<Either<TableFailure, Unit>> failureOrTableTransfer;
  @override
  @JsonKey()
  final bool isUpdating;
  @override
  @JsonKey()
  final bool isCreating;
  @override
  @JsonKey()
  final bool isTransfering;

  @override
  String toString() {
    return 'TableFormState(name: $name, capacity: $capacity, failureOrTable: $failureOrTable, failureOrTableTransfer: $failureOrTableTransfer, isUpdating: $isUpdating, isCreating: $isCreating, isTransfering: $isTransfering)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$TableFormStateImpl &&
            (identical(other.name, name) || other.name == name) &&
            (identical(other.capacity, capacity) ||
                other.capacity == capacity) &&
            (identical(other.failureOrTable, failureOrTable) ||
                other.failureOrTable == failureOrTable) &&
            (identical(other.failureOrTableTransfer, failureOrTableTransfer) ||
                other.failureOrTableTransfer == failureOrTableTransfer) &&
            (identical(other.isUpdating, isUpdating) ||
                other.isUpdating == isUpdating) &&
            (identical(other.isCreating, isCreating) ||
                other.isCreating == isCreating) &&
            (identical(other.isTransfering, isTransfering) ||
                other.isTransfering == isTransfering));
  }

  @override
  int get hashCode => Object.hash(
    runtimeType,
    name,
    capacity,
    failureOrTable,
    failureOrTableTransfer,
    isUpdating,
    isCreating,
    isTransfering,
  );

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

abstract class _TableFormState implements TableFormState {
  factory _TableFormState({
    required final String name,
    required final int capacity,
    required final Option<Either<TableFailure, Table>> failureOrTable,
    required final Option<Either<TableFailure, Unit>> failureOrTableTransfer,
    final bool isUpdating,
    final bool isCreating,
    final bool isTransfering,
  }) = _$TableFormStateImpl;

  @override
  String get name;
  @override
  int get capacity;
  @override
  Option<Either<TableFailure, Table>> get failureOrTable;
  @override
  Option<Either<TableFailure, Unit>> get failureOrTableTransfer;
  @override
  bool get isUpdating;
  @override
  bool get isCreating;
  @override
  bool get isTransfering;

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