225 lines
7.3 KiB
Dart
225 lines
7.3 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 'chat_room_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');
|
|
|
|
ChatRoomModel _$ChatRoomModelFromJson(Map<String, dynamic> json) {
|
|
return _ChatRoomModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ChatRoomModel {
|
|
String get id => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'chat_room_setting')
|
|
ChatRoomSettingsModel get chatRoomSettings =>
|
|
throw _privateConstructorUsedError;
|
|
Map<String, ChatUserModel> get users => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$ChatRoomModelCopyWith<ChatRoomModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ChatRoomModelCopyWith<$Res> {
|
|
factory $ChatRoomModelCopyWith(
|
|
ChatRoomModel value, $Res Function(ChatRoomModel) then) =
|
|
_$ChatRoomModelCopyWithImpl<$Res, ChatRoomModel>;
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
@JsonKey(name: 'chat_room_setting')
|
|
ChatRoomSettingsModel chatRoomSettings,
|
|
Map<String, ChatUserModel> users});
|
|
|
|
$ChatRoomSettingsModelCopyWith<$Res> get chatRoomSettings;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ChatRoomModelCopyWithImpl<$Res, $Val extends ChatRoomModel>
|
|
implements $ChatRoomModelCopyWith<$Res> {
|
|
_$ChatRoomModelCopyWithImpl(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? id = null,
|
|
Object? chatRoomSettings = null,
|
|
Object? users = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
chatRoomSettings: null == chatRoomSettings
|
|
? _value.chatRoomSettings
|
|
: chatRoomSettings // ignore: cast_nullable_to_non_nullable
|
|
as ChatRoomSettingsModel,
|
|
users: null == users
|
|
? _value.users
|
|
: users // ignore: cast_nullable_to_non_nullable
|
|
as Map<String, ChatUserModel>,
|
|
) as $Val);
|
|
}
|
|
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$ChatRoomSettingsModelCopyWith<$Res> get chatRoomSettings {
|
|
return $ChatRoomSettingsModelCopyWith<$Res>(_value.chatRoomSettings,
|
|
(value) {
|
|
return _then(_value.copyWith(chatRoomSettings: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ChatRoomModelImplCopyWith<$Res>
|
|
implements $ChatRoomModelCopyWith<$Res> {
|
|
factory _$$ChatRoomModelImplCopyWith(
|
|
_$ChatRoomModelImpl value, $Res Function(_$ChatRoomModelImpl) then) =
|
|
__$$ChatRoomModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
@JsonKey(name: 'chat_room_setting')
|
|
ChatRoomSettingsModel chatRoomSettings,
|
|
Map<String, ChatUserModel> users});
|
|
|
|
@override
|
|
$ChatRoomSettingsModelCopyWith<$Res> get chatRoomSettings;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ChatRoomModelImplCopyWithImpl<$Res>
|
|
extends _$ChatRoomModelCopyWithImpl<$Res, _$ChatRoomModelImpl>
|
|
implements _$$ChatRoomModelImplCopyWith<$Res> {
|
|
__$$ChatRoomModelImplCopyWithImpl(
|
|
_$ChatRoomModelImpl _value, $Res Function(_$ChatRoomModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? chatRoomSettings = null,
|
|
Object? users = null,
|
|
}) {
|
|
return _then(_$ChatRoomModelImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
chatRoomSettings: null == chatRoomSettings
|
|
? _value.chatRoomSettings
|
|
: chatRoomSettings // ignore: cast_nullable_to_non_nullable
|
|
as ChatRoomSettingsModel,
|
|
users: null == users
|
|
? _value._users
|
|
: users // ignore: cast_nullable_to_non_nullable
|
|
as Map<String, ChatUserModel>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ChatRoomModelImpl implements _ChatRoomModel {
|
|
const _$ChatRoomModelImpl(
|
|
{required this.id,
|
|
@JsonKey(name: 'chat_room_setting') required this.chatRoomSettings,
|
|
required final Map<String, ChatUserModel> users})
|
|
: _users = users;
|
|
|
|
factory _$ChatRoomModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ChatRoomModelImplFromJson(json);
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
@JsonKey(name: 'chat_room_setting')
|
|
final ChatRoomSettingsModel chatRoomSettings;
|
|
final Map<String, ChatUserModel> _users;
|
|
@override
|
|
Map<String, ChatUserModel> get users {
|
|
if (_users is EqualUnmodifiableMapView) return _users;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_users);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ChatRoomModel(id: $id, chatRoomSettings: $chatRoomSettings, users: $users)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ChatRoomModelImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.chatRoomSettings, chatRoomSettings) ||
|
|
other.chatRoomSettings == chatRoomSettings) &&
|
|
const DeepCollectionEquality().equals(other._users, _users));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, chatRoomSettings,
|
|
const DeepCollectionEquality().hash(_users));
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ChatRoomModelImplCopyWith<_$ChatRoomModelImpl> get copyWith =>
|
|
__$$ChatRoomModelImplCopyWithImpl<_$ChatRoomModelImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ChatRoomModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ChatRoomModel implements ChatRoomModel {
|
|
const factory _ChatRoomModel(
|
|
{required final String id,
|
|
@JsonKey(name: 'chat_room_setting')
|
|
required final ChatRoomSettingsModel chatRoomSettings,
|
|
required final Map<String, ChatUserModel> users}) = _$ChatRoomModelImpl;
|
|
|
|
factory _ChatRoomModel.fromJson(Map<String, dynamic> json) =
|
|
_$ChatRoomModelImpl.fromJson;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
@JsonKey(name: 'chat_room_setting')
|
|
ChatRoomSettingsModel get chatRoomSettings;
|
|
@override
|
|
Map<String, ChatUserModel> get users;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$ChatRoomModelImplCopyWith<_$ChatRoomModelImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|