// 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 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 json) { return _ChatRoomPreviewModel.fromJson(json); } /// @nodoc mixin _$ChatRoomPreviewModel { @JsonKey(name: "chatRooms") List get chatRooms => throw _privateConstructorUsedError; /// Serializes this ChatRoomPreviewModel to a JSON map. Map 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 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 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, ) 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 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, )); } } /// @nodoc @JsonSerializable() class _$ChatRoomPreviewModelImpl implements _ChatRoomPreviewModel { const _$ChatRoomPreviewModelImpl( {@JsonKey(name: "chatRooms") required final List chatRooms}) : _chatRooms = chatRooms; factory _$ChatRoomPreviewModelImpl.fromJson(Map json) => _$$ChatRoomPreviewModelImplFromJson(json); final List _chatRooms; @override @JsonKey(name: "chatRooms") List 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 toJson() { return _$$ChatRoomPreviewModelImplToJson( this, ); } } abstract class _ChatRoomPreviewModel implements ChatRoomPreviewModel { const factory _ChatRoomPreviewModel( {@JsonKey(name: "chatRooms") required final List chatRooms}) = _$ChatRoomPreviewModelImpl; factory _ChatRoomPreviewModel.fromJson(Map json) = _$ChatRoomPreviewModelImpl.fromJson; @override @JsonKey(name: "chatRooms") List 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 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", fromJson: parseLastMessage) ChatMessageModel? get lastMessage => throw _privateConstructorUsedError; @JsonKey(name: "users") Users get users => throw _privateConstructorUsedError; @JsonKey(name: "unread_messages_count") int get unreadMessagesCount => throw _privateConstructorUsedError; /// Serializes this ChatRoom to a JSON map. Map 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 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", fromJson: parseLastMessage) ChatMessageModel? lastMessage, @JsonKey(name: "users") Users users, @JsonKey(name: "unread_messages_count") int unreadMessagesCount}); $ChatMessageModelCopyWith<$Res>? get lastMessage; $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, Object? unreadMessagesCount = 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 ChatMessageModel?, users: null == users ? _value.users : users // ignore: cast_nullable_to_non_nullable as Users, unreadMessagesCount: null == unreadMessagesCount ? _value.unreadMessagesCount : unreadMessagesCount // ignore: cast_nullable_to_non_nullable as int, ) as $Val); } /// Create a copy of ChatRoom /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ChatMessageModelCopyWith<$Res>? get lastMessage { if (_value.lastMessage == null) { return null; } return $ChatMessageModelCopyWith<$Res>(_value.lastMessage!, (value) { return _then(_value.copyWith(lastMessage: value) 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", fromJson: parseLastMessage) ChatMessageModel? lastMessage, @JsonKey(name: "users") Users users, @JsonKey(name: "unread_messages_count") int unreadMessagesCount}); @override $ChatMessageModelCopyWith<$Res>? get lastMessage; @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, Object? unreadMessagesCount = 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 ChatMessageModel?, users: null == users ? _value.users : users // ignore: cast_nullable_to_non_nullable as Users, unreadMessagesCount: null == unreadMessagesCount ? _value.unreadMessagesCount : unreadMessagesCount // ignore: cast_nullable_to_non_nullable as int, )); } } /// @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", fromJson: parseLastMessage) required this.lastMessage, @JsonKey(name: "users") required this.users, @JsonKey(name: "unread_messages_count") required this.unreadMessagesCount}); factory _$ChatRoomImpl.fromJson(Map json) => _$$ChatRoomImplFromJson(json); @override @JsonKey(name: "id") final String id; @override @JsonKey(name: "room_name") final String roomName; @override @JsonKey(name: "last_message", fromJson: parseLastMessage) final ChatMessageModel? lastMessage; @override @JsonKey(name: "users") final Users users; @override @JsonKey(name: "unread_messages_count") final int unreadMessagesCount; @override String toString() { return 'ChatRoom(id: $id, roomName: $roomName, lastMessage: $lastMessage, users: $users, unreadMessagesCount: $unreadMessagesCount)'; } @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) && (identical(other.lastMessage, lastMessage) || other.lastMessage == lastMessage) && (identical(other.users, users) || other.users == users) && (identical(other.unreadMessagesCount, unreadMessagesCount) || other.unreadMessagesCount == unreadMessagesCount)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, id, roomName, lastMessage, users, unreadMessagesCount); /// 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 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", fromJson: parseLastMessage) required final ChatMessageModel? lastMessage, @JsonKey(name: "users") required final Users users, @JsonKey(name: "unread_messages_count") required final int unreadMessagesCount}) = _$ChatRoomImpl; factory _ChatRoom.fromJson(Map json) = _$ChatRoomImpl.fromJson; @override @JsonKey(name: "id") String get id; @override @JsonKey(name: "room_name") String get roomName; @override @JsonKey(name: "last_message", fromJson: parseLastMessage) ChatMessageModel? get lastMessage; @override @JsonKey(name: "users") Users get users; @override @JsonKey(name: "unread_messages_count") int get unreadMessagesCount; /// 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; } Users _$UsersFromJson(Map 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 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 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 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 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 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 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 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 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 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 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 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; }