// dart format width=80 // 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 'websocket.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // dart format off T _$identity(T value) => value; /// @nodoc mixin _$WebSocketState { @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is WebSocketState); } @override int get hashCode => runtimeType.hashCode; @override String toString() { return 'WebSocketState()'; } } /// @nodoc class $WebSocketStateCopyWith<$Res> { $WebSocketStateCopyWith(WebSocketState _, $Res Function(WebSocketState) __); } /// @nodoc class _Connected implements WebSocketState { const _Connected(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _Connected); } @override int get hashCode => runtimeType.hashCode; @override String toString() { return 'WebSocketState.connected()'; } } /// @nodoc class _Connecting implements WebSocketState { const _Connecting(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _Connecting); } @override int get hashCode => runtimeType.hashCode; @override String toString() { return 'WebSocketState.connecting()'; } } /// @nodoc class _Disconnected implements WebSocketState { const _Disconnected(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _Disconnected); } @override int get hashCode => runtimeType.hashCode; @override String toString() { return 'WebSocketState.disconnected()'; } } /// @nodoc class _Error implements WebSocketState { const _Error(this.message); final String message; /// Create a copy of WebSocketState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ErrorCopyWith<_Error> get copyWith => __$ErrorCopyWithImpl<_Error>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _Error&&(identical(other.message, message) || other.message == message)); } @override int get hashCode => Object.hash(runtimeType,message); @override String toString() { return 'WebSocketState.error(message: $message)'; } } /// @nodoc abstract mixin class _$ErrorCopyWith<$Res> implements $WebSocketStateCopyWith<$Res> { factory _$ErrorCopyWith(_Error value, $Res Function(_Error) _then) = __$ErrorCopyWithImpl; @useResult $Res call({ String message }); } /// @nodoc class __$ErrorCopyWithImpl<$Res> implements _$ErrorCopyWith<$Res> { __$ErrorCopyWithImpl(this._self, this._then); final _Error _self; final $Res Function(_Error) _then; /// Create a copy of WebSocketState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') $Res call({Object? message = null,}) { return _then(_Error( null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable as String, )); } } // dart format on