// 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#custom-getters-and-methods'); TMMessage _$TMMessageFromJson(Map json) { return _TMMessage.fromJson(json); } /// @nodoc mixin _$TMMessage { String get id => throw _privateConstructorUsedError; Map get from => throw _privateConstructorUsedError; List> get to => throw _privateConstructorUsedError; String? get intro => throw _privateConstructorUsedError; String get subject => throw _privateConstructorUsedError; bool get seen => throw _privateConstructorUsedError; bool get isDeleted => throw _privateConstructorUsedError; bool get hasAttachments => throw _privateConstructorUsedError; String get downloadUrl => throw _privateConstructorUsedError; DateTime get createdAt => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $TMMessageCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $TMMessageCopyWith<$Res> { factory $TMMessageCopyWith(TMMessage value, $Res Function(TMMessage) then) = _$TMMessageCopyWithImpl<$Res, TMMessage>; @useResult $Res call( {String id, Map from, List> to, String? intro, String subject, bool seen, bool isDeleted, bool hasAttachments, String downloadUrl, DateTime createdAt}); } /// @nodoc class _$TMMessageCopyWithImpl<$Res, $Val extends TMMessage> implements $TMMessageCopyWith<$Res> { _$TMMessageCopyWithImpl(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? from = null, Object? to = null, Object? intro = freezed, Object? subject = null, Object? seen = null, Object? isDeleted = null, Object? hasAttachments = null, Object? downloadUrl = null, Object? createdAt = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, from: null == from ? _value.from : from // ignore: cast_nullable_to_non_nullable as Map, to: null == to ? _value.to : to // ignore: cast_nullable_to_non_nullable as List>, intro: freezed == intro ? _value.intro : intro // ignore: cast_nullable_to_non_nullable as String?, subject: null == subject ? _value.subject : subject // ignore: cast_nullable_to_non_nullable as String, seen: null == seen ? _value.seen : seen // ignore: cast_nullable_to_non_nullable as bool, isDeleted: null == isDeleted ? _value.isDeleted : isDeleted // ignore: cast_nullable_to_non_nullable as bool, hasAttachments: null == hasAttachments ? _value.hasAttachments : hasAttachments // ignore: cast_nullable_to_non_nullable as bool, downloadUrl: null == downloadUrl ? _value.downloadUrl : downloadUrl // ignore: cast_nullable_to_non_nullable as String, createdAt: null == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime, ) as $Val); } } /// @nodoc abstract class _$$TMMessageImplCopyWith<$Res> implements $TMMessageCopyWith<$Res> { factory _$$TMMessageImplCopyWith( _$TMMessageImpl value, $Res Function(_$TMMessageImpl) then) = __$$TMMessageImplCopyWithImpl<$Res>; @override @useResult $Res call( {String id, Map from, List> to, String? intro, String subject, bool seen, bool isDeleted, bool hasAttachments, String downloadUrl, DateTime createdAt}); } /// @nodoc class __$$TMMessageImplCopyWithImpl<$Res> extends _$TMMessageCopyWithImpl<$Res, _$TMMessageImpl> implements _$$TMMessageImplCopyWith<$Res> { __$$TMMessageImplCopyWithImpl( _$TMMessageImpl _value, $Res Function(_$TMMessageImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? from = null, Object? to = null, Object? intro = freezed, Object? subject = null, Object? seen = null, Object? isDeleted = null, Object? hasAttachments = null, Object? downloadUrl = null, Object? createdAt = null, }) { return _then(_$TMMessageImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, from: null == from ? _value._from : from // ignore: cast_nullable_to_non_nullable as Map, to: null == to ? _value._to : to // ignore: cast_nullable_to_non_nullable as List>, intro: freezed == intro ? _value.intro : intro // ignore: cast_nullable_to_non_nullable as String?, subject: null == subject ? _value.subject : subject // ignore: cast_nullable_to_non_nullable as String, seen: null == seen ? _value.seen : seen // ignore: cast_nullable_to_non_nullable as bool, isDeleted: null == isDeleted ? _value.isDeleted : isDeleted // ignore: cast_nullable_to_non_nullable as bool, hasAttachments: null == hasAttachments ? _value.hasAttachments : hasAttachments // ignore: cast_nullable_to_non_nullable as bool, downloadUrl: null == downloadUrl ? _value.downloadUrl : downloadUrl // ignore: cast_nullable_to_non_nullable as String, createdAt: null == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime, )); } } /// @nodoc @JsonSerializable() class _$TMMessageImpl implements _TMMessage { _$TMMessageImpl( {required this.id, required final Map from, required final List> to, required this.intro, required this.subject, required this.seen, required this.isDeleted, required this.hasAttachments, required this.downloadUrl, required this.createdAt}) : _from = from, _to = to; factory _$TMMessageImpl.fromJson(Map json) => _$$TMMessageImplFromJson(json); @override final String id; final Map _from; @override Map get from { if (_from is EqualUnmodifiableMapView) return _from; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_from); } final List> _to; @override List> get to { if (_to is EqualUnmodifiableListView) return _to; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_to); } @override final String? intro; @override final String subject; @override final bool seen; @override final bool isDeleted; @override final bool hasAttachments; @override final String downloadUrl; @override final DateTime createdAt; @override String toString() { return 'TMMessage(id: $id, from: $from, to: $to, intro: $intro, subject: $subject, seen: $seen, isDeleted: $isDeleted, hasAttachments: $hasAttachments, downloadUrl: $downloadUrl, createdAt: $createdAt)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TMMessageImpl && (identical(other.id, id) || other.id == id) && const DeepCollectionEquality().equals(other._from, _from) && const DeepCollectionEquality().equals(other._to, _to) && (identical(other.intro, intro) || other.intro == intro) && (identical(other.subject, subject) || other.subject == subject) && (identical(other.seen, seen) || other.seen == seen) && (identical(other.isDeleted, isDeleted) || other.isDeleted == isDeleted) && (identical(other.hasAttachments, hasAttachments) || other.hasAttachments == hasAttachments) && (identical(other.downloadUrl, downloadUrl) || other.downloadUrl == downloadUrl) && (identical(other.createdAt, createdAt) || other.createdAt == createdAt)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, id, const DeepCollectionEquality().hash(_from), const DeepCollectionEquality().hash(_to), intro, subject, seen, isDeleted, hasAttachments, downloadUrl, createdAt); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$TMMessageImplCopyWith<_$TMMessageImpl> get copyWith => __$$TMMessageImplCopyWithImpl<_$TMMessageImpl>(this, _$identity); @override Map toJson() { return _$$TMMessageImplToJson( this, ); } } abstract class _TMMessage implements TMMessage { factory _TMMessage( {required final String id, required final Map from, required final List> to, required final String? intro, required final String subject, required final bool seen, required final bool isDeleted, required final bool hasAttachments, required final String downloadUrl, required final DateTime createdAt}) = _$TMMessageImpl; factory _TMMessage.fromJson(Map json) = _$TMMessageImpl.fromJson; @override String get id; @override Map get from; @override List> get to; @override String? get intro; @override String get subject; @override bool get seen; @override bool get isDeleted; @override bool get hasAttachments; @override String get downloadUrl; @override DateTime get createdAt; @override @JsonKey(ignore: true) _$$TMMessageImplCopyWith<_$TMMessageImpl> get copyWith => throw _privateConstructorUsedError; }