forked from eatvio/eatvio_app
268 lines
9.2 KiB
Dart
268 lines
9.2 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_settings_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');
|
|
|
|
ChatRoomSettingsModel _$ChatRoomSettingsModelFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _ChatRoomSettingsModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ChatRoomSettingsModel {
|
|
int get id => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'room_name')
|
|
String get roomName => throw _privateConstructorUsedError;
|
|
String get state => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'access_level')
|
|
String get accessLevel => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'updated_at')
|
|
String get updatedAt => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this ChatRoomSettingsModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ChatRoomSettingsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ChatRoomSettingsModelCopyWith<ChatRoomSettingsModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ChatRoomSettingsModelCopyWith<$Res> {
|
|
factory $ChatRoomSettingsModelCopyWith(ChatRoomSettingsModel value,
|
|
$Res Function(ChatRoomSettingsModel) then) =
|
|
_$ChatRoomSettingsModelCopyWithImpl<$Res, ChatRoomSettingsModel>;
|
|
@useResult
|
|
$Res call(
|
|
{int id,
|
|
@JsonKey(name: 'room_name') String roomName,
|
|
String state,
|
|
@JsonKey(name: 'access_level') String accessLevel,
|
|
@JsonKey(name: 'updated_at') String updatedAt});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ChatRoomSettingsModelCopyWithImpl<$Res,
|
|
$Val extends ChatRoomSettingsModel>
|
|
implements $ChatRoomSettingsModelCopyWith<$Res> {
|
|
_$ChatRoomSettingsModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ChatRoomSettingsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? roomName = null,
|
|
Object? state = null,
|
|
Object? accessLevel = null,
|
|
Object? updatedAt = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
roomName: null == roomName
|
|
? _value.roomName
|
|
: roomName // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
state: null == state
|
|
? _value.state
|
|
: state // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
accessLevel: null == accessLevel
|
|
? _value.accessLevel
|
|
: accessLevel // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
updatedAt: null == updatedAt
|
|
? _value.updatedAt
|
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ChatRoomSettingsModelImplCopyWith<$Res>
|
|
implements $ChatRoomSettingsModelCopyWith<$Res> {
|
|
factory _$$ChatRoomSettingsModelImplCopyWith(
|
|
_$ChatRoomSettingsModelImpl value,
|
|
$Res Function(_$ChatRoomSettingsModelImpl) then) =
|
|
__$$ChatRoomSettingsModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{int id,
|
|
@JsonKey(name: 'room_name') String roomName,
|
|
String state,
|
|
@JsonKey(name: 'access_level') String accessLevel,
|
|
@JsonKey(name: 'updated_at') String updatedAt});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ChatRoomSettingsModelImplCopyWithImpl<$Res>
|
|
extends _$ChatRoomSettingsModelCopyWithImpl<$Res,
|
|
_$ChatRoomSettingsModelImpl>
|
|
implements _$$ChatRoomSettingsModelImplCopyWith<$Res> {
|
|
__$$ChatRoomSettingsModelImplCopyWithImpl(_$ChatRoomSettingsModelImpl _value,
|
|
$Res Function(_$ChatRoomSettingsModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of ChatRoomSettingsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? roomName = null,
|
|
Object? state = null,
|
|
Object? accessLevel = null,
|
|
Object? updatedAt = null,
|
|
}) {
|
|
return _then(_$ChatRoomSettingsModelImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
roomName: null == roomName
|
|
? _value.roomName
|
|
: roomName // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
state: null == state
|
|
? _value.state
|
|
: state // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
accessLevel: null == accessLevel
|
|
? _value.accessLevel
|
|
: accessLevel // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
updatedAt: null == updatedAt
|
|
? _value.updatedAt
|
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ChatRoomSettingsModelImpl implements _ChatRoomSettingsModel {
|
|
const _$ChatRoomSettingsModelImpl(
|
|
{required this.id,
|
|
@JsonKey(name: 'room_name') required this.roomName,
|
|
required this.state,
|
|
@JsonKey(name: 'access_level') required this.accessLevel,
|
|
@JsonKey(name: 'updated_at') required this.updatedAt});
|
|
|
|
factory _$ChatRoomSettingsModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ChatRoomSettingsModelImplFromJson(json);
|
|
|
|
@override
|
|
final int id;
|
|
@override
|
|
@JsonKey(name: 'room_name')
|
|
final String roomName;
|
|
@override
|
|
final String state;
|
|
@override
|
|
@JsonKey(name: 'access_level')
|
|
final String accessLevel;
|
|
@override
|
|
@JsonKey(name: 'updated_at')
|
|
final String updatedAt;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ChatRoomSettingsModel(id: $id, roomName: $roomName, state: $state, accessLevel: $accessLevel, updatedAt: $updatedAt)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ChatRoomSettingsModelImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.roomName, roomName) ||
|
|
other.roomName == roomName) &&
|
|
(identical(other.state, state) || other.state == state) &&
|
|
(identical(other.accessLevel, accessLevel) ||
|
|
other.accessLevel == accessLevel) &&
|
|
(identical(other.updatedAt, updatedAt) ||
|
|
other.updatedAt == updatedAt));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, id, roomName, state, accessLevel, updatedAt);
|
|
|
|
/// Create a copy of ChatRoomSettingsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ChatRoomSettingsModelImplCopyWith<_$ChatRoomSettingsModelImpl>
|
|
get copyWith => __$$ChatRoomSettingsModelImplCopyWithImpl<
|
|
_$ChatRoomSettingsModelImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ChatRoomSettingsModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ChatRoomSettingsModel implements ChatRoomSettingsModel {
|
|
const factory _ChatRoomSettingsModel(
|
|
{required final int id,
|
|
@JsonKey(name: 'room_name') required final String roomName,
|
|
required final String state,
|
|
@JsonKey(name: 'access_level') required final String accessLevel,
|
|
@JsonKey(name: 'updated_at') required final String updatedAt}) =
|
|
_$ChatRoomSettingsModelImpl;
|
|
|
|
factory _ChatRoomSettingsModel.fromJson(Map<String, dynamic> json) =
|
|
_$ChatRoomSettingsModelImpl.fromJson;
|
|
|
|
@override
|
|
int get id;
|
|
@override
|
|
@JsonKey(name: 'room_name')
|
|
String get roomName;
|
|
@override
|
|
String get state;
|
|
@override
|
|
@JsonKey(name: 'access_level')
|
|
String get accessLevel;
|
|
@override
|
|
@JsonKey(name: 'updated_at')
|
|
String get updatedAt;
|
|
|
|
/// Create a copy of ChatRoomSettingsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ChatRoomSettingsModelImplCopyWith<_$ChatRoomSettingsModelImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|