forked from eatvio/eatvio_app
242 lines
7.5 KiB
Dart
242 lines
7.5 KiB
Dart
// 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_info_model.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');
|
|
|
|
WebsocketInfoModel _$WebsocketInfoModelFromJson(Map<String, dynamic> json) {
|
|
return _WebsocketInfoModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$WebsocketInfoModel {
|
|
String get key => throw _privateConstructorUsedError;
|
|
String get host => throw _privateConstructorUsedError;
|
|
String get port => throw _privateConstructorUsedError;
|
|
String get cluster => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'user_id')
|
|
int get userId => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$WebsocketInfoModelCopyWith<WebsocketInfoModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $WebsocketInfoModelCopyWith<$Res> {
|
|
factory $WebsocketInfoModelCopyWith(
|
|
WebsocketInfoModel value, $Res Function(WebsocketInfoModel) then) =
|
|
_$WebsocketInfoModelCopyWithImpl<$Res, WebsocketInfoModel>;
|
|
@useResult
|
|
$Res call(
|
|
{String key,
|
|
String host,
|
|
String port,
|
|
String cluster,
|
|
@JsonKey(name: 'user_id') int userId});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$WebsocketInfoModelCopyWithImpl<$Res, $Val extends WebsocketInfoModel>
|
|
implements $WebsocketInfoModelCopyWith<$Res> {
|
|
_$WebsocketInfoModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? key = null,
|
|
Object? host = null,
|
|
Object? port = null,
|
|
Object? cluster = null,
|
|
Object? userId = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
key: null == key
|
|
? _value.key
|
|
: key // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
host: null == host
|
|
? _value.host
|
|
: host // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
port: null == port
|
|
? _value.port
|
|
: port // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
cluster: null == cluster
|
|
? _value.cluster
|
|
: cluster // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
userId: null == userId
|
|
? _value.userId
|
|
: userId // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$WebsocketInfoModelImplCopyWith<$Res>
|
|
implements $WebsocketInfoModelCopyWith<$Res> {
|
|
factory _$$WebsocketInfoModelImplCopyWith(_$WebsocketInfoModelImpl value,
|
|
$Res Function(_$WebsocketInfoModelImpl) then) =
|
|
__$$WebsocketInfoModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String key,
|
|
String host,
|
|
String port,
|
|
String cluster,
|
|
@JsonKey(name: 'user_id') int userId});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$WebsocketInfoModelImplCopyWithImpl<$Res>
|
|
extends _$WebsocketInfoModelCopyWithImpl<$Res, _$WebsocketInfoModelImpl>
|
|
implements _$$WebsocketInfoModelImplCopyWith<$Res> {
|
|
__$$WebsocketInfoModelImplCopyWithImpl(_$WebsocketInfoModelImpl _value,
|
|
$Res Function(_$WebsocketInfoModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? key = null,
|
|
Object? host = null,
|
|
Object? port = null,
|
|
Object? cluster = null,
|
|
Object? userId = null,
|
|
}) {
|
|
return _then(_$WebsocketInfoModelImpl(
|
|
key: null == key
|
|
? _value.key
|
|
: key // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
host: null == host
|
|
? _value.host
|
|
: host // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
port: null == port
|
|
? _value.port
|
|
: port // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
cluster: null == cluster
|
|
? _value.cluster
|
|
: cluster // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
userId: null == userId
|
|
? _value.userId
|
|
: userId // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$WebsocketInfoModelImpl implements _WebsocketInfoModel {
|
|
const _$WebsocketInfoModelImpl(
|
|
{required this.key,
|
|
required this.host,
|
|
required this.port,
|
|
required this.cluster,
|
|
@JsonKey(name: 'user_id') required this.userId});
|
|
|
|
factory _$WebsocketInfoModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$WebsocketInfoModelImplFromJson(json);
|
|
|
|
@override
|
|
final String key;
|
|
@override
|
|
final String host;
|
|
@override
|
|
final String port;
|
|
@override
|
|
final String cluster;
|
|
@override
|
|
@JsonKey(name: 'user_id')
|
|
final int userId;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'WebsocketInfoModel(key: $key, host: $host, port: $port, cluster: $cluster, userId: $userId)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$WebsocketInfoModelImpl &&
|
|
(identical(other.key, key) || other.key == key) &&
|
|
(identical(other.host, host) || other.host == host) &&
|
|
(identical(other.port, port) || other.port == port) &&
|
|
(identical(other.cluster, cluster) || other.cluster == cluster) &&
|
|
(identical(other.userId, userId) || other.userId == userId));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, key, host, port, cluster, userId);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$WebsocketInfoModelImplCopyWith<_$WebsocketInfoModelImpl> get copyWith =>
|
|
__$$WebsocketInfoModelImplCopyWithImpl<_$WebsocketInfoModelImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$WebsocketInfoModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _WebsocketInfoModel implements WebsocketInfoModel {
|
|
const factory _WebsocketInfoModel(
|
|
{required final String key,
|
|
required final String host,
|
|
required final String port,
|
|
required final String cluster,
|
|
@JsonKey(name: 'user_id') required final int userId}) =
|
|
_$WebsocketInfoModelImpl;
|
|
|
|
factory _WebsocketInfoModel.fromJson(Map<String, dynamic> json) =
|
|
_$WebsocketInfoModelImpl.fromJson;
|
|
|
|
@override
|
|
String get key;
|
|
@override
|
|
String get host;
|
|
@override
|
|
String get port;
|
|
@override
|
|
String get cluster;
|
|
@override
|
|
@JsonKey(name: 'user_id')
|
|
int get userId;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$WebsocketInfoModelImplCopyWith<_$WebsocketInfoModelImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|