forked from eatvio/eatvio_app
1180 lines
38 KiB
Dart
1180 lines
38 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_preview_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');
|
|
|
|
ChatRoomPreviewModel _$ChatRoomPreviewModelFromJson(Map<String, dynamic> json) {
|
|
return _ChatRoomPreviewModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ChatRoomPreviewModel {
|
|
@JsonKey(name: "chatRooms")
|
|
List<ChatRoom> get chatRooms => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this ChatRoomPreviewModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ChatRoomPreviewModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ChatRoomPreviewModelCopyWith<ChatRoomPreviewModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ChatRoomPreviewModelCopyWith<$Res> {
|
|
factory $ChatRoomPreviewModelCopyWith(ChatRoomPreviewModel value,
|
|
$Res Function(ChatRoomPreviewModel) then) =
|
|
_$ChatRoomPreviewModelCopyWithImpl<$Res, ChatRoomPreviewModel>;
|
|
@useResult
|
|
$Res call({@JsonKey(name: "chatRooms") List<ChatRoom> chatRooms});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ChatRoomPreviewModelCopyWithImpl<$Res,
|
|
$Val extends ChatRoomPreviewModel>
|
|
implements $ChatRoomPreviewModelCopyWith<$Res> {
|
|
_$ChatRoomPreviewModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ChatRoomPreviewModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? chatRooms = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
chatRooms: null == chatRooms
|
|
? _value.chatRooms
|
|
: chatRooms // ignore: cast_nullable_to_non_nullable
|
|
as List<ChatRoom>,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ChatRoomPreviewModelImplCopyWith<$Res>
|
|
implements $ChatRoomPreviewModelCopyWith<$Res> {
|
|
factory _$$ChatRoomPreviewModelImplCopyWith(_$ChatRoomPreviewModelImpl value,
|
|
$Res Function(_$ChatRoomPreviewModelImpl) then) =
|
|
__$$ChatRoomPreviewModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({@JsonKey(name: "chatRooms") List<ChatRoom> chatRooms});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ChatRoomPreviewModelImplCopyWithImpl<$Res>
|
|
extends _$ChatRoomPreviewModelCopyWithImpl<$Res, _$ChatRoomPreviewModelImpl>
|
|
implements _$$ChatRoomPreviewModelImplCopyWith<$Res> {
|
|
__$$ChatRoomPreviewModelImplCopyWithImpl(_$ChatRoomPreviewModelImpl _value,
|
|
$Res Function(_$ChatRoomPreviewModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of ChatRoomPreviewModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? chatRooms = null,
|
|
}) {
|
|
return _then(_$ChatRoomPreviewModelImpl(
|
|
chatRooms: null == chatRooms
|
|
? _value._chatRooms
|
|
: chatRooms // ignore: cast_nullable_to_non_nullable
|
|
as List<ChatRoom>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ChatRoomPreviewModelImpl implements _ChatRoomPreviewModel {
|
|
const _$ChatRoomPreviewModelImpl(
|
|
{@JsonKey(name: "chatRooms") required final List<ChatRoom> chatRooms})
|
|
: _chatRooms = chatRooms;
|
|
|
|
factory _$ChatRoomPreviewModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ChatRoomPreviewModelImplFromJson(json);
|
|
|
|
final List<ChatRoom> _chatRooms;
|
|
@override
|
|
@JsonKey(name: "chatRooms")
|
|
List<ChatRoom> get chatRooms {
|
|
if (_chatRooms is EqualUnmodifiableListView) return _chatRooms;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_chatRooms);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ChatRoomPreviewModel(chatRooms: $chatRooms)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ChatRoomPreviewModelImpl &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._chatRooms, _chatRooms));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, const DeepCollectionEquality().hash(_chatRooms));
|
|
|
|
/// Create a copy of ChatRoomPreviewModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ChatRoomPreviewModelImplCopyWith<_$ChatRoomPreviewModelImpl>
|
|
get copyWith =>
|
|
__$$ChatRoomPreviewModelImplCopyWithImpl<_$ChatRoomPreviewModelImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ChatRoomPreviewModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ChatRoomPreviewModel implements ChatRoomPreviewModel {
|
|
const factory _ChatRoomPreviewModel(
|
|
{@JsonKey(name: "chatRooms")
|
|
required final List<ChatRoom> chatRooms}) = _$ChatRoomPreviewModelImpl;
|
|
|
|
factory _ChatRoomPreviewModel.fromJson(Map<String, dynamic> json) =
|
|
_$ChatRoomPreviewModelImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "chatRooms")
|
|
List<ChatRoom> get chatRooms;
|
|
|
|
/// Create a copy of ChatRoomPreviewModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ChatRoomPreviewModelImplCopyWith<_$ChatRoomPreviewModelImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
ChatRoom _$ChatRoomFromJson(Map<String, dynamic> json) {
|
|
return _ChatRoom.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ChatRoom {
|
|
@JsonKey(name: "id")
|
|
String get id => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "room_name")
|
|
String get roomName => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "last_message")
|
|
dynamic get lastMessage => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "users")
|
|
Users get users => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this ChatRoom to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ChatRoom
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ChatRoomCopyWith<ChatRoom> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ChatRoomCopyWith<$Res> {
|
|
factory $ChatRoomCopyWith(ChatRoom value, $Res Function(ChatRoom) then) =
|
|
_$ChatRoomCopyWithImpl<$Res, ChatRoom>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "id") String id,
|
|
@JsonKey(name: "room_name") String roomName,
|
|
@JsonKey(name: "last_message") dynamic lastMessage,
|
|
@JsonKey(name: "users") Users users});
|
|
|
|
$UsersCopyWith<$Res> get users;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ChatRoomCopyWithImpl<$Res, $Val extends ChatRoom>
|
|
implements $ChatRoomCopyWith<$Res> {
|
|
_$ChatRoomCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ChatRoom
|
|
/// 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? lastMessage = freezed,
|
|
Object? users = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
roomName: null == roomName
|
|
? _value.roomName
|
|
: roomName // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
lastMessage: freezed == lastMessage
|
|
? _value.lastMessage
|
|
: lastMessage // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
users: null == users
|
|
? _value.users
|
|
: users // ignore: cast_nullable_to_non_nullable
|
|
as Users,
|
|
) as $Val);
|
|
}
|
|
|
|
/// Create a copy of ChatRoom
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$UsersCopyWith<$Res> get users {
|
|
return $UsersCopyWith<$Res>(_value.users, (value) {
|
|
return _then(_value.copyWith(users: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ChatRoomImplCopyWith<$Res>
|
|
implements $ChatRoomCopyWith<$Res> {
|
|
factory _$$ChatRoomImplCopyWith(
|
|
_$ChatRoomImpl value, $Res Function(_$ChatRoomImpl) then) =
|
|
__$$ChatRoomImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "id") String id,
|
|
@JsonKey(name: "room_name") String roomName,
|
|
@JsonKey(name: "last_message") dynamic lastMessage,
|
|
@JsonKey(name: "users") Users users});
|
|
|
|
@override
|
|
$UsersCopyWith<$Res> get users;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ChatRoomImplCopyWithImpl<$Res>
|
|
extends _$ChatRoomCopyWithImpl<$Res, _$ChatRoomImpl>
|
|
implements _$$ChatRoomImplCopyWith<$Res> {
|
|
__$$ChatRoomImplCopyWithImpl(
|
|
_$ChatRoomImpl _value, $Res Function(_$ChatRoomImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of ChatRoom
|
|
/// 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? lastMessage = freezed,
|
|
Object? users = null,
|
|
}) {
|
|
return _then(_$ChatRoomImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
roomName: null == roomName
|
|
? _value.roomName
|
|
: roomName // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
lastMessage: freezed == lastMessage
|
|
? _value.lastMessage
|
|
: lastMessage // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
users: null == users
|
|
? _value.users
|
|
: users // ignore: cast_nullable_to_non_nullable
|
|
as Users,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ChatRoomImpl implements _ChatRoom {
|
|
const _$ChatRoomImpl(
|
|
{@JsonKey(name: "id") required this.id,
|
|
@JsonKey(name: "room_name") required this.roomName,
|
|
@JsonKey(name: "last_message") required this.lastMessage,
|
|
@JsonKey(name: "users") required this.users});
|
|
|
|
factory _$ChatRoomImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ChatRoomImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "id")
|
|
final String id;
|
|
@override
|
|
@JsonKey(name: "room_name")
|
|
final String roomName;
|
|
@override
|
|
@JsonKey(name: "last_message")
|
|
final dynamic lastMessage;
|
|
@override
|
|
@JsonKey(name: "users")
|
|
final Users users;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ChatRoom(id: $id, roomName: $roomName, lastMessage: $lastMessage, users: $users)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ChatRoomImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.roomName, roomName) ||
|
|
other.roomName == roomName) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other.lastMessage, lastMessage) &&
|
|
(identical(other.users, users) || other.users == users));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, roomName,
|
|
const DeepCollectionEquality().hash(lastMessage), users);
|
|
|
|
/// Create a copy of ChatRoom
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ChatRoomImplCopyWith<_$ChatRoomImpl> get copyWith =>
|
|
__$$ChatRoomImplCopyWithImpl<_$ChatRoomImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ChatRoomImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ChatRoom implements ChatRoom {
|
|
const factory _ChatRoom(
|
|
{@JsonKey(name: "id") required final String id,
|
|
@JsonKey(name: "room_name") required final String roomName,
|
|
@JsonKey(name: "last_message") required final dynamic lastMessage,
|
|
@JsonKey(name: "users") required final Users users}) = _$ChatRoomImpl;
|
|
|
|
factory _ChatRoom.fromJson(Map<String, dynamic> json) =
|
|
_$ChatRoomImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "id")
|
|
String get id;
|
|
@override
|
|
@JsonKey(name: "room_name")
|
|
String get roomName;
|
|
@override
|
|
@JsonKey(name: "last_message")
|
|
dynamic get lastMessage;
|
|
@override
|
|
@JsonKey(name: "users")
|
|
Users get users;
|
|
|
|
/// Create a copy of ChatRoom
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ChatRoomImplCopyWith<_$ChatRoomImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
LastMessageClass _$LastMessageClassFromJson(Map<String, dynamic> json) {
|
|
return _LastMessageClass.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$LastMessageClass {
|
|
@JsonKey(name: "id")
|
|
int get id => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "data")
|
|
String get data => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "media_data")
|
|
List<dynamic> get mediaData => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "author_id")
|
|
int get authorId => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "is_author_message_auth_user")
|
|
bool get isAuthorMessageAuthUser => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "read_by_to_user")
|
|
bool get readByToUser => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "updated_at")
|
|
DateTime get updatedAt => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this LastMessageClass to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of LastMessageClass
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$LastMessageClassCopyWith<LastMessageClass> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $LastMessageClassCopyWith<$Res> {
|
|
factory $LastMessageClassCopyWith(
|
|
LastMessageClass value, $Res Function(LastMessageClass) then) =
|
|
_$LastMessageClassCopyWithImpl<$Res, LastMessageClass>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "id") int id,
|
|
@JsonKey(name: "data") String data,
|
|
@JsonKey(name: "media_data") List<dynamic> mediaData,
|
|
@JsonKey(name: "author_id") int authorId,
|
|
@JsonKey(name: "is_author_message_auth_user")
|
|
bool isAuthorMessageAuthUser,
|
|
@JsonKey(name: "read_by_to_user") bool readByToUser,
|
|
@JsonKey(name: "updated_at") DateTime updatedAt});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$LastMessageClassCopyWithImpl<$Res, $Val extends LastMessageClass>
|
|
implements $LastMessageClassCopyWith<$Res> {
|
|
_$LastMessageClassCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of LastMessageClass
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? data = null,
|
|
Object? mediaData = null,
|
|
Object? authorId = null,
|
|
Object? isAuthorMessageAuthUser = null,
|
|
Object? readByToUser = null,
|
|
Object? updatedAt = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
data: null == data
|
|
? _value.data
|
|
: data // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
mediaData: null == mediaData
|
|
? _value.mediaData
|
|
: mediaData // ignore: cast_nullable_to_non_nullable
|
|
as List<dynamic>,
|
|
authorId: null == authorId
|
|
? _value.authorId
|
|
: authorId // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
isAuthorMessageAuthUser: null == isAuthorMessageAuthUser
|
|
? _value.isAuthorMessageAuthUser
|
|
: isAuthorMessageAuthUser // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
readByToUser: null == readByToUser
|
|
? _value.readByToUser
|
|
: readByToUser // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
updatedAt: null == updatedAt
|
|
? _value.updatedAt
|
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$LastMessageClassImplCopyWith<$Res>
|
|
implements $LastMessageClassCopyWith<$Res> {
|
|
factory _$$LastMessageClassImplCopyWith(_$LastMessageClassImpl value,
|
|
$Res Function(_$LastMessageClassImpl) then) =
|
|
__$$LastMessageClassImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "id") int id,
|
|
@JsonKey(name: "data") String data,
|
|
@JsonKey(name: "media_data") List<dynamic> mediaData,
|
|
@JsonKey(name: "author_id") int authorId,
|
|
@JsonKey(name: "is_author_message_auth_user")
|
|
bool isAuthorMessageAuthUser,
|
|
@JsonKey(name: "read_by_to_user") bool readByToUser,
|
|
@JsonKey(name: "updated_at") DateTime updatedAt});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$LastMessageClassImplCopyWithImpl<$Res>
|
|
extends _$LastMessageClassCopyWithImpl<$Res, _$LastMessageClassImpl>
|
|
implements _$$LastMessageClassImplCopyWith<$Res> {
|
|
__$$LastMessageClassImplCopyWithImpl(_$LastMessageClassImpl _value,
|
|
$Res Function(_$LastMessageClassImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of LastMessageClass
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? data = null,
|
|
Object? mediaData = null,
|
|
Object? authorId = null,
|
|
Object? isAuthorMessageAuthUser = null,
|
|
Object? readByToUser = null,
|
|
Object? updatedAt = null,
|
|
}) {
|
|
return _then(_$LastMessageClassImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
data: null == data
|
|
? _value.data
|
|
: data // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
mediaData: null == mediaData
|
|
? _value._mediaData
|
|
: mediaData // ignore: cast_nullable_to_non_nullable
|
|
as List<dynamic>,
|
|
authorId: null == authorId
|
|
? _value.authorId
|
|
: authorId // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
isAuthorMessageAuthUser: null == isAuthorMessageAuthUser
|
|
? _value.isAuthorMessageAuthUser
|
|
: isAuthorMessageAuthUser // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
readByToUser: null == readByToUser
|
|
? _value.readByToUser
|
|
: readByToUser // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
updatedAt: null == updatedAt
|
|
? _value.updatedAt
|
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$LastMessageClassImpl implements _LastMessageClass {
|
|
const _$LastMessageClassImpl(
|
|
{@JsonKey(name: "id") required this.id,
|
|
@JsonKey(name: "data") required this.data,
|
|
@JsonKey(name: "media_data") required final List<dynamic> mediaData,
|
|
@JsonKey(name: "author_id") required this.authorId,
|
|
@JsonKey(name: "is_author_message_auth_user")
|
|
required this.isAuthorMessageAuthUser,
|
|
@JsonKey(name: "read_by_to_user") required this.readByToUser,
|
|
@JsonKey(name: "updated_at") required this.updatedAt})
|
|
: _mediaData = mediaData;
|
|
|
|
factory _$LastMessageClassImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$LastMessageClassImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "id")
|
|
final int id;
|
|
@override
|
|
@JsonKey(name: "data")
|
|
final String data;
|
|
final List<dynamic> _mediaData;
|
|
@override
|
|
@JsonKey(name: "media_data")
|
|
List<dynamic> get mediaData {
|
|
if (_mediaData is EqualUnmodifiableListView) return _mediaData;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_mediaData);
|
|
}
|
|
|
|
@override
|
|
@JsonKey(name: "author_id")
|
|
final int authorId;
|
|
@override
|
|
@JsonKey(name: "is_author_message_auth_user")
|
|
final bool isAuthorMessageAuthUser;
|
|
@override
|
|
@JsonKey(name: "read_by_to_user")
|
|
final bool readByToUser;
|
|
@override
|
|
@JsonKey(name: "updated_at")
|
|
final DateTime updatedAt;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'LastMessageClass(id: $id, data: $data, mediaData: $mediaData, authorId: $authorId, isAuthorMessageAuthUser: $isAuthorMessageAuthUser, readByToUser: $readByToUser, updatedAt: $updatedAt)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$LastMessageClassImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.data, data) || other.data == data) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._mediaData, _mediaData) &&
|
|
(identical(other.authorId, authorId) ||
|
|
other.authorId == authorId) &&
|
|
(identical(
|
|
other.isAuthorMessageAuthUser, isAuthorMessageAuthUser) ||
|
|
other.isAuthorMessageAuthUser == isAuthorMessageAuthUser) &&
|
|
(identical(other.readByToUser, readByToUser) ||
|
|
other.readByToUser == readByToUser) &&
|
|
(identical(other.updatedAt, updatedAt) ||
|
|
other.updatedAt == updatedAt));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
id,
|
|
data,
|
|
const DeepCollectionEquality().hash(_mediaData),
|
|
authorId,
|
|
isAuthorMessageAuthUser,
|
|
readByToUser,
|
|
updatedAt);
|
|
|
|
/// Create a copy of LastMessageClass
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$LastMessageClassImplCopyWith<_$LastMessageClassImpl> get copyWith =>
|
|
__$$LastMessageClassImplCopyWithImpl<_$LastMessageClassImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$LastMessageClassImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _LastMessageClass implements LastMessageClass {
|
|
const factory _LastMessageClass(
|
|
{@JsonKey(name: "id") required final int id,
|
|
@JsonKey(name: "data") required final String data,
|
|
@JsonKey(name: "media_data") required final List<dynamic> mediaData,
|
|
@JsonKey(name: "author_id") required final int authorId,
|
|
@JsonKey(name: "is_author_message_auth_user")
|
|
required final bool isAuthorMessageAuthUser,
|
|
@JsonKey(name: "read_by_to_user") required final bool readByToUser,
|
|
@JsonKey(name: "updated_at") required final DateTime updatedAt}) =
|
|
_$LastMessageClassImpl;
|
|
|
|
factory _LastMessageClass.fromJson(Map<String, dynamic> json) =
|
|
_$LastMessageClassImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "id")
|
|
int get id;
|
|
@override
|
|
@JsonKey(name: "data")
|
|
String get data;
|
|
@override
|
|
@JsonKey(name: "media_data")
|
|
List<dynamic> get mediaData;
|
|
@override
|
|
@JsonKey(name: "author_id")
|
|
int get authorId;
|
|
@override
|
|
@JsonKey(name: "is_author_message_auth_user")
|
|
bool get isAuthorMessageAuthUser;
|
|
@override
|
|
@JsonKey(name: "read_by_to_user")
|
|
bool get readByToUser;
|
|
@override
|
|
@JsonKey(name: "updated_at")
|
|
DateTime get updatedAt;
|
|
|
|
/// Create a copy of LastMessageClass
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$LastMessageClassImplCopyWith<_$LastMessageClassImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
Users _$UsersFromJson(Map<String, dynamic> json) {
|
|
return _Users.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Users {
|
|
@JsonKey(name: "from_chat_user")
|
|
ChatUser get fromChatUser => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "to_chat_user")
|
|
ChatUser get toChatUser => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this Users to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of Users
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$UsersCopyWith<Users> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $UsersCopyWith<$Res> {
|
|
factory $UsersCopyWith(Users value, $Res Function(Users) then) =
|
|
_$UsersCopyWithImpl<$Res, Users>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "from_chat_user") ChatUser fromChatUser,
|
|
@JsonKey(name: "to_chat_user") ChatUser toChatUser});
|
|
|
|
$ChatUserCopyWith<$Res> get fromChatUser;
|
|
$ChatUserCopyWith<$Res> get toChatUser;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$UsersCopyWithImpl<$Res, $Val extends Users>
|
|
implements $UsersCopyWith<$Res> {
|
|
_$UsersCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of Users
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? fromChatUser = null,
|
|
Object? toChatUser = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
fromChatUser: null == fromChatUser
|
|
? _value.fromChatUser
|
|
: fromChatUser // ignore: cast_nullable_to_non_nullable
|
|
as ChatUser,
|
|
toChatUser: null == toChatUser
|
|
? _value.toChatUser
|
|
: toChatUser // ignore: cast_nullable_to_non_nullable
|
|
as ChatUser,
|
|
) as $Val);
|
|
}
|
|
|
|
/// Create a copy of Users
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$ChatUserCopyWith<$Res> get fromChatUser {
|
|
return $ChatUserCopyWith<$Res>(_value.fromChatUser, (value) {
|
|
return _then(_value.copyWith(fromChatUser: value) as $Val);
|
|
});
|
|
}
|
|
|
|
/// Create a copy of Users
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$ChatUserCopyWith<$Res> get toChatUser {
|
|
return $ChatUserCopyWith<$Res>(_value.toChatUser, (value) {
|
|
return _then(_value.copyWith(toChatUser: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$UsersImplCopyWith<$Res> implements $UsersCopyWith<$Res> {
|
|
factory _$$UsersImplCopyWith(
|
|
_$UsersImpl value, $Res Function(_$UsersImpl) then) =
|
|
__$$UsersImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "from_chat_user") ChatUser fromChatUser,
|
|
@JsonKey(name: "to_chat_user") ChatUser toChatUser});
|
|
|
|
@override
|
|
$ChatUserCopyWith<$Res> get fromChatUser;
|
|
@override
|
|
$ChatUserCopyWith<$Res> get toChatUser;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$UsersImplCopyWithImpl<$Res>
|
|
extends _$UsersCopyWithImpl<$Res, _$UsersImpl>
|
|
implements _$$UsersImplCopyWith<$Res> {
|
|
__$$UsersImplCopyWithImpl(
|
|
_$UsersImpl _value, $Res Function(_$UsersImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of Users
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? fromChatUser = null,
|
|
Object? toChatUser = null,
|
|
}) {
|
|
return _then(_$UsersImpl(
|
|
fromChatUser: null == fromChatUser
|
|
? _value.fromChatUser
|
|
: fromChatUser // ignore: cast_nullable_to_non_nullable
|
|
as ChatUser,
|
|
toChatUser: null == toChatUser
|
|
? _value.toChatUser
|
|
: toChatUser // ignore: cast_nullable_to_non_nullable
|
|
as ChatUser,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$UsersImpl implements _Users {
|
|
const _$UsersImpl(
|
|
{@JsonKey(name: "from_chat_user") required this.fromChatUser,
|
|
@JsonKey(name: "to_chat_user") required this.toChatUser});
|
|
|
|
factory _$UsersImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$UsersImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "from_chat_user")
|
|
final ChatUser fromChatUser;
|
|
@override
|
|
@JsonKey(name: "to_chat_user")
|
|
final ChatUser toChatUser;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Users(fromChatUser: $fromChatUser, toChatUser: $toChatUser)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$UsersImpl &&
|
|
(identical(other.fromChatUser, fromChatUser) ||
|
|
other.fromChatUser == fromChatUser) &&
|
|
(identical(other.toChatUser, toChatUser) ||
|
|
other.toChatUser == toChatUser));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, fromChatUser, toChatUser);
|
|
|
|
/// Create a copy of Users
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$UsersImplCopyWith<_$UsersImpl> get copyWith =>
|
|
__$$UsersImplCopyWithImpl<_$UsersImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$UsersImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _Users implements Users {
|
|
const factory _Users(
|
|
{@JsonKey(name: "from_chat_user") required final ChatUser fromChatUser,
|
|
@JsonKey(name: "to_chat_user")
|
|
required final ChatUser toChatUser}) = _$UsersImpl;
|
|
|
|
factory _Users.fromJson(Map<String, dynamic> json) = _$UsersImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "from_chat_user")
|
|
ChatUser get fromChatUser;
|
|
@override
|
|
@JsonKey(name: "to_chat_user")
|
|
ChatUser get toChatUser;
|
|
|
|
/// Create a copy of Users
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$UsersImplCopyWith<_$UsersImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
ChatUser _$ChatUserFromJson(Map<String, dynamic> json) {
|
|
return _ChatUser.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ChatUser {
|
|
@JsonKey(name: "id")
|
|
int get id => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "name")
|
|
String get name => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "profile_photo_path")
|
|
String? get profilePhotoPath => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "profile_photo_url")
|
|
String get profilePhotoUrl => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this ChatUser to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ChatUser
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ChatUserCopyWith<ChatUser> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ChatUserCopyWith<$Res> {
|
|
factory $ChatUserCopyWith(ChatUser value, $Res Function(ChatUser) then) =
|
|
_$ChatUserCopyWithImpl<$Res, ChatUser>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "id") int id,
|
|
@JsonKey(name: "name") String name,
|
|
@JsonKey(name: "profile_photo_path") String? profilePhotoPath,
|
|
@JsonKey(name: "profile_photo_url") String profilePhotoUrl});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ChatUserCopyWithImpl<$Res, $Val extends ChatUser>
|
|
implements $ChatUserCopyWith<$Res> {
|
|
_$ChatUserCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ChatUser
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? profilePhotoPath = freezed,
|
|
Object? profilePhotoUrl = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
profilePhotoPath: freezed == profilePhotoPath
|
|
? _value.profilePhotoPath
|
|
: profilePhotoPath // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
profilePhotoUrl: null == profilePhotoUrl
|
|
? _value.profilePhotoUrl
|
|
: profilePhotoUrl // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ChatUserImplCopyWith<$Res>
|
|
implements $ChatUserCopyWith<$Res> {
|
|
factory _$$ChatUserImplCopyWith(
|
|
_$ChatUserImpl value, $Res Function(_$ChatUserImpl) then) =
|
|
__$$ChatUserImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "id") int id,
|
|
@JsonKey(name: "name") String name,
|
|
@JsonKey(name: "profile_photo_path") String? profilePhotoPath,
|
|
@JsonKey(name: "profile_photo_url") String profilePhotoUrl});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ChatUserImplCopyWithImpl<$Res>
|
|
extends _$ChatUserCopyWithImpl<$Res, _$ChatUserImpl>
|
|
implements _$$ChatUserImplCopyWith<$Res> {
|
|
__$$ChatUserImplCopyWithImpl(
|
|
_$ChatUserImpl _value, $Res Function(_$ChatUserImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of ChatUser
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? profilePhotoPath = freezed,
|
|
Object? profilePhotoUrl = null,
|
|
}) {
|
|
return _then(_$ChatUserImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
profilePhotoPath: freezed == profilePhotoPath
|
|
? _value.profilePhotoPath
|
|
: profilePhotoPath // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
profilePhotoUrl: null == profilePhotoUrl
|
|
? _value.profilePhotoUrl
|
|
: profilePhotoUrl // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ChatUserImpl implements _ChatUser {
|
|
const _$ChatUserImpl(
|
|
{@JsonKey(name: "id") required this.id,
|
|
@JsonKey(name: "name") required this.name,
|
|
@JsonKey(name: "profile_photo_path") required this.profilePhotoPath,
|
|
@JsonKey(name: "profile_photo_url") required this.profilePhotoUrl});
|
|
|
|
factory _$ChatUserImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ChatUserImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "id")
|
|
final int id;
|
|
@override
|
|
@JsonKey(name: "name")
|
|
final String name;
|
|
@override
|
|
@JsonKey(name: "profile_photo_path")
|
|
final String? profilePhotoPath;
|
|
@override
|
|
@JsonKey(name: "profile_photo_url")
|
|
final String profilePhotoUrl;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ChatUser(id: $id, name: $name, profilePhotoPath: $profilePhotoPath, profilePhotoUrl: $profilePhotoUrl)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ChatUserImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.profilePhotoPath, profilePhotoPath) ||
|
|
other.profilePhotoPath == profilePhotoPath) &&
|
|
(identical(other.profilePhotoUrl, profilePhotoUrl) ||
|
|
other.profilePhotoUrl == profilePhotoUrl));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, id, name, profilePhotoPath, profilePhotoUrl);
|
|
|
|
/// Create a copy of ChatUser
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ChatUserImplCopyWith<_$ChatUserImpl> get copyWith =>
|
|
__$$ChatUserImplCopyWithImpl<_$ChatUserImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ChatUserImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ChatUser implements ChatUser {
|
|
const factory _ChatUser(
|
|
{@JsonKey(name: "id") required final int id,
|
|
@JsonKey(name: "name") required final String name,
|
|
@JsonKey(name: "profile_photo_path")
|
|
required final String? profilePhotoPath,
|
|
@JsonKey(name: "profile_photo_url")
|
|
required final String profilePhotoUrl}) = _$ChatUserImpl;
|
|
|
|
factory _ChatUser.fromJson(Map<String, dynamic> json) =
|
|
_$ChatUserImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "id")
|
|
int get id;
|
|
@override
|
|
@JsonKey(name: "name")
|
|
String get name;
|
|
@override
|
|
@JsonKey(name: "profile_photo_path")
|
|
String? get profilePhotoPath;
|
|
@override
|
|
@JsonKey(name: "profile_photo_url")
|
|
String get profilePhotoUrl;
|
|
|
|
/// Create a copy of ChatUser
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ChatUserImplCopyWith<_$ChatUserImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|