363 lines
11 KiB
Dart
363 lines
11 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 'message.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#custom-getters-and-methods');
|
|
|
|
TMMessage _$TMMessageFromJson(Map<String, dynamic> json) {
|
|
return _TMMessage.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$TMMessage {
|
|
String get id => throw _privateConstructorUsedError;
|
|
Map<String, String> get from => throw _privateConstructorUsedError;
|
|
List<Map<String, String>> 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<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$TMMessageCopyWith<TMMessage> 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<String, String> from,
|
|
List<Map<String, String>> 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<String, String>,
|
|
to: null == to
|
|
? _value.to
|
|
: to // ignore: cast_nullable_to_non_nullable
|
|
as List<Map<String, String>>,
|
|
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<String, String> from,
|
|
List<Map<String, String>> 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<String, String>,
|
|
to: null == to
|
|
? _value._to
|
|
: to // ignore: cast_nullable_to_non_nullable
|
|
as List<Map<String, String>>,
|
|
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<String, String> from,
|
|
required final List<Map<String, String>> 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<String, dynamic> json) =>
|
|
_$$TMMessageImplFromJson(json);
|
|
|
|
@override
|
|
final String id;
|
|
final Map<String, String> _from;
|
|
@override
|
|
Map<String, String> get from {
|
|
if (_from is EqualUnmodifiableMapView) return _from;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_from);
|
|
}
|
|
|
|
final List<Map<String, String>> _to;
|
|
@override
|
|
List<Map<String, String>> 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<String, dynamic> toJson() {
|
|
return _$$TMMessageImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _TMMessage implements TMMessage {
|
|
factory _TMMessage(
|
|
{required final String id,
|
|
required final Map<String, String> from,
|
|
required final List<Map<String, String>> 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<String, dynamic> json) =
|
|
_$TMMessageImpl.fromJson;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
Map<String, String> get from;
|
|
@override
|
|
List<Map<String, String>> 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;
|
|
}
|