// 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_detail.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'); TMMessageDetail _$TMMessageDetailFromJson(Map json) { return _TMMessageDetail.fromJson(json); } /// @nodoc mixin _$TMMessageDetail { String get id => throw _privateConstructorUsedError; Map get from => throw _privateConstructorUsedError; List> get to => throw _privateConstructorUsedError; List get cc => throw _privateConstructorUsedError; List get bcc => throw _privateConstructorUsedError; String get subject => throw _privateConstructorUsedError; String? get text => throw _privateConstructorUsedError; List get html => throw _privateConstructorUsedError; bool get hasAttachments => throw _privateConstructorUsedError; List>? get attachments => throw _privateConstructorUsedError; String get downloadUrl => throw _privateConstructorUsedError; DateTime get createdAt => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $TMMessageDetailCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $TMMessageDetailCopyWith<$Res> { factory $TMMessageDetailCopyWith( TMMessageDetail value, $Res Function(TMMessageDetail) then) = _$TMMessageDetailCopyWithImpl<$Res, TMMessageDetail>; @useResult $Res call( {String id, Map from, List> to, List cc, List bcc, String subject, String? text, List html, bool hasAttachments, List>? attachments, String downloadUrl, DateTime createdAt}); } /// @nodoc class _$TMMessageDetailCopyWithImpl<$Res, $Val extends TMMessageDetail> implements $TMMessageDetailCopyWith<$Res> { _$TMMessageDetailCopyWithImpl(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? cc = null, Object? bcc = null, Object? subject = null, Object? text = freezed, Object? html = null, Object? hasAttachments = null, Object? attachments = freezed, 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>, cc: null == cc ? _value.cc : cc // ignore: cast_nullable_to_non_nullable as List, bcc: null == bcc ? _value.bcc : bcc // ignore: cast_nullable_to_non_nullable as List, subject: null == subject ? _value.subject : subject // ignore: cast_nullable_to_non_nullable as String, text: freezed == text ? _value.text : text // ignore: cast_nullable_to_non_nullable as String?, html: null == html ? _value.html : html // ignore: cast_nullable_to_non_nullable as List, hasAttachments: null == hasAttachments ? _value.hasAttachments : hasAttachments // ignore: cast_nullable_to_non_nullable as bool, attachments: freezed == attachments ? _value.attachments : attachments // ignore: cast_nullable_to_non_nullable as List>?, 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 _$$TMMessageDetailImplCopyWith<$Res> implements $TMMessageDetailCopyWith<$Res> { factory _$$TMMessageDetailImplCopyWith(_$TMMessageDetailImpl value, $Res Function(_$TMMessageDetailImpl) then) = __$$TMMessageDetailImplCopyWithImpl<$Res>; @override @useResult $Res call( {String id, Map from, List> to, List cc, List bcc, String subject, String? text, List html, bool hasAttachments, List>? attachments, String downloadUrl, DateTime createdAt}); } /// @nodoc class __$$TMMessageDetailImplCopyWithImpl<$Res> extends _$TMMessageDetailCopyWithImpl<$Res, _$TMMessageDetailImpl> implements _$$TMMessageDetailImplCopyWith<$Res> { __$$TMMessageDetailImplCopyWithImpl( _$TMMessageDetailImpl _value, $Res Function(_$TMMessageDetailImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? from = null, Object? to = null, Object? cc = null, Object? bcc = null, Object? subject = null, Object? text = freezed, Object? html = null, Object? hasAttachments = null, Object? attachments = freezed, Object? downloadUrl = null, Object? createdAt = null, }) { return _then(_$TMMessageDetailImpl( 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>, cc: null == cc ? _value._cc : cc // ignore: cast_nullable_to_non_nullable as List, bcc: null == bcc ? _value._bcc : bcc // ignore: cast_nullable_to_non_nullable as List, subject: null == subject ? _value.subject : subject // ignore: cast_nullable_to_non_nullable as String, text: freezed == text ? _value.text : text // ignore: cast_nullable_to_non_nullable as String?, html: null == html ? _value._html : html // ignore: cast_nullable_to_non_nullable as List, hasAttachments: null == hasAttachments ? _value.hasAttachments : hasAttachments // ignore: cast_nullable_to_non_nullable as bool, attachments: freezed == attachments ? _value._attachments : attachments // ignore: cast_nullable_to_non_nullable as List>?, 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 _$TMMessageDetailImpl implements _TMMessageDetail { _$TMMessageDetailImpl( {required this.id, required final Map from, required final List> to, required final List cc, required final List bcc, required this.subject, required this.text, required final List html, required this.hasAttachments, required final List>? attachments, required this.downloadUrl, required this.createdAt}) : _from = from, _to = to, _cc = cc, _bcc = bcc, _html = html, _attachments = attachments; factory _$TMMessageDetailImpl.fromJson(Map json) => _$$TMMessageDetailImplFromJson(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); } final List _cc; @override List get cc { if (_cc is EqualUnmodifiableListView) return _cc; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_cc); } final List _bcc; @override List get bcc { if (_bcc is EqualUnmodifiableListView) return _bcc; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_bcc); } @override final String subject; @override final String? text; final List _html; @override List get html { if (_html is EqualUnmodifiableListView) return _html; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_html); } @override final bool hasAttachments; final List>? _attachments; @override List>? get attachments { final value = _attachments; if (value == null) return null; if (_attachments is EqualUnmodifiableListView) return _attachments; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @override final String downloadUrl; @override final DateTime createdAt; @override String toString() { return 'TMMessageDetail(id: $id, from: $from, to: $to, cc: $cc, bcc: $bcc, subject: $subject, text: $text, html: $html, hasAttachments: $hasAttachments, attachments: $attachments, downloadUrl: $downloadUrl, createdAt: $createdAt)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TMMessageDetailImpl && (identical(other.id, id) || other.id == id) && const DeepCollectionEquality().equals(other._from, _from) && const DeepCollectionEquality().equals(other._to, _to) && const DeepCollectionEquality().equals(other._cc, _cc) && const DeepCollectionEquality().equals(other._bcc, _bcc) && (identical(other.subject, subject) || other.subject == subject) && (identical(other.text, text) || other.text == text) && const DeepCollectionEquality().equals(other._html, _html) && (identical(other.hasAttachments, hasAttachments) || other.hasAttachments == hasAttachments) && const DeepCollectionEquality() .equals(other._attachments, _attachments) && (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), const DeepCollectionEquality().hash(_cc), const DeepCollectionEquality().hash(_bcc), subject, text, const DeepCollectionEquality().hash(_html), hasAttachments, const DeepCollectionEquality().hash(_attachments), downloadUrl, createdAt); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$TMMessageDetailImplCopyWith<_$TMMessageDetailImpl> get copyWith => __$$TMMessageDetailImplCopyWithImpl<_$TMMessageDetailImpl>( this, _$identity); @override Map toJson() { return _$$TMMessageDetailImplToJson( this, ); } } abstract class _TMMessageDetail implements TMMessageDetail { factory _TMMessageDetail( {required final String id, required final Map from, required final List> to, required final List cc, required final List bcc, required final String subject, required final String? text, required final List html, required final bool hasAttachments, required final List>? attachments, required final String downloadUrl, required final DateTime createdAt}) = _$TMMessageDetailImpl; factory _TMMessageDetail.fromJson(Map json) = _$TMMessageDetailImpl.fromJson; @override String get id; @override Map get from; @override List> get to; @override List get cc; @override List get bcc; @override String get subject; @override String? get text; @override List get html; @override bool get hasAttachments; @override List>? get attachments; @override String get downloadUrl; @override DateTime get createdAt; @override @JsonKey(ignore: true) _$$TMMessageDetailImplCopyWith<_$TMMessageDetailImpl> get copyWith => throw _privateConstructorUsedError; }