// 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 'message.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'); /// @nodoc mixin _$Message { String get id => throw _privateConstructorUsedError; String get chatId => throw _privateConstructorUsedError; String get senderId => throw _privateConstructorUsedError; String get content => throw _privateConstructorUsedError; String get messageType => throw _privateConstructorUsedError; int get sequenceId => throw _privateConstructorUsedError; DateTime? get createdAt => throw _privateConstructorUsedError; DateTime? get updatedAt => throw _privateConstructorUsedError; MessageStatus get status => throw _privateConstructorUsedError; Map? get media => throw _privateConstructorUsedError; @JsonKey(ignore: true) $MessageCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $MessageCopyWith<$Res> { factory $MessageCopyWith(Message value, $Res Function(Message) then) = _$MessageCopyWithImpl<$Res, Message>; @useResult $Res call( {String id, String chatId, String senderId, String content, String messageType, int sequenceId, DateTime? createdAt, DateTime? updatedAt, MessageStatus status, Map? media}); } /// @nodoc class _$MessageCopyWithImpl<$Res, $Val extends Message> implements $MessageCopyWith<$Res> { _$MessageCopyWithImpl(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? chatId = null, Object? senderId = null, Object? content = null, Object? messageType = null, Object? sequenceId = null, Object? createdAt = freezed, Object? updatedAt = freezed, Object? status = null, Object? media = freezed, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, chatId: null == chatId ? _value.chatId : chatId // ignore: cast_nullable_to_non_nullable as String, senderId: null == senderId ? _value.senderId : senderId // ignore: cast_nullable_to_non_nullable as String, content: null == content ? _value.content : content // ignore: cast_nullable_to_non_nullable as String, messageType: null == messageType ? _value.messageType : messageType // ignore: cast_nullable_to_non_nullable as String, sequenceId: null == sequenceId ? _value.sequenceId : sequenceId // ignore: cast_nullable_to_non_nullable as int, createdAt: freezed == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime?, updatedAt: freezed == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime?, status: null == status ? _value.status : status // ignore: cast_nullable_to_non_nullable as MessageStatus, media: freezed == media ? _value.media : media // ignore: cast_nullable_to_non_nullable as Map?, ) as $Val); } } /// @nodoc abstract class _$$MessageImplCopyWith<$Res> implements $MessageCopyWith<$Res> { factory _$$MessageImplCopyWith( _$MessageImpl value, $Res Function(_$MessageImpl) then) = __$$MessageImplCopyWithImpl<$Res>; @override @useResult $Res call( {String id, String chatId, String senderId, String content, String messageType, int sequenceId, DateTime? createdAt, DateTime? updatedAt, MessageStatus status, Map? media}); } /// @nodoc class __$$MessageImplCopyWithImpl<$Res> extends _$MessageCopyWithImpl<$Res, _$MessageImpl> implements _$$MessageImplCopyWith<$Res> { __$$MessageImplCopyWithImpl( _$MessageImpl _value, $Res Function(_$MessageImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? chatId = null, Object? senderId = null, Object? content = null, Object? messageType = null, Object? sequenceId = null, Object? createdAt = freezed, Object? updatedAt = freezed, Object? status = null, Object? media = freezed, }) { return _then(_$MessageImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, chatId: null == chatId ? _value.chatId : chatId // ignore: cast_nullable_to_non_nullable as String, senderId: null == senderId ? _value.senderId : senderId // ignore: cast_nullable_to_non_nullable as String, content: null == content ? _value.content : content // ignore: cast_nullable_to_non_nullable as String, messageType: null == messageType ? _value.messageType : messageType // ignore: cast_nullable_to_non_nullable as String, sequenceId: null == sequenceId ? _value.sequenceId : sequenceId // ignore: cast_nullable_to_non_nullable as int, createdAt: freezed == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime?, updatedAt: freezed == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime?, status: null == status ? _value.status : status // ignore: cast_nullable_to_non_nullable as MessageStatus, media: freezed == media ? _value._media : media // ignore: cast_nullable_to_non_nullable as Map?, )); } } /// @nodoc class _$MessageImpl implements _Message { const _$MessageImpl( {required this.id, required this.chatId, required this.senderId, required this.content, required this.messageType, required this.sequenceId, this.createdAt, this.updatedAt, this.status = MessageStatus.delivered, final Map? media}) : _media = media; @override final String id; @override final String chatId; @override final String senderId; @override final String content; @override final String messageType; @override final int sequenceId; @override final DateTime? createdAt; @override final DateTime? updatedAt; @override @JsonKey() final MessageStatus status; final Map? _media; @override Map? get media { final value = _media; if (value == null) return null; if (_media is EqualUnmodifiableMapView) return _media; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(value); } @override String toString() { return 'Message(id: $id, chatId: $chatId, senderId: $senderId, content: $content, messageType: $messageType, sequenceId: $sequenceId, createdAt: $createdAt, updatedAt: $updatedAt, status: $status, media: $media)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$MessageImpl && (identical(other.id, id) || other.id == id) && (identical(other.chatId, chatId) || other.chatId == chatId) && (identical(other.senderId, senderId) || other.senderId == senderId) && (identical(other.content, content) || other.content == content) && (identical(other.messageType, messageType) || other.messageType == messageType) && (identical(other.sequenceId, sequenceId) || other.sequenceId == sequenceId) && (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && (identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt) && (identical(other.status, status) || other.status == status) && const DeepCollectionEquality().equals(other._media, _media)); } @override int get hashCode => Object.hash( runtimeType, id, chatId, senderId, content, messageType, sequenceId, createdAt, updatedAt, status, const DeepCollectionEquality().hash(_media)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$MessageImplCopyWith<_$MessageImpl> get copyWith => __$$MessageImplCopyWithImpl<_$MessageImpl>(this, _$identity); } abstract class _Message implements Message { const factory _Message( {required final String id, required final String chatId, required final String senderId, required final String content, required final String messageType, required final int sequenceId, final DateTime? createdAt, final DateTime? updatedAt, final MessageStatus status, final Map? media}) = _$MessageImpl; @override String get id; @override String get chatId; @override String get senderId; @override String get content; @override String get messageType; @override int get sequenceId; @override DateTime? get createdAt; @override DateTime? get updatedAt; @override MessageStatus get status; @override Map? get media; @override @JsonKey(ignore: true) _$$MessageImplCopyWith<_$MessageImpl> get copyWith => throw _privateConstructorUsedError; }