Surface/lib/types/account.freezed.dart
2025-03-02 21:08:41 +08:00

2633 lines
83 KiB
Dart

// dart format width=80
// 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 'account.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
// dart format off
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$SnAccount {
int get id;
DateTime get createdAt;
DateTime get updatedAt;
DateTime? get deletedAt;
DateTime? get confirmedAt;
List<SnAccountContact>? get contacts;
String get avatar;
String get banner;
String get name;
String get nick;
Map<String, dynamic> get permNodes;
String get language;
SnAccountProfile? get profile;
List<SnAccountBadge> get badges;
DateTime? get suspendedAt;
int? get affiliatedId;
int? get affiliatedTo;
int? get automatedBy;
int? get automatedId;
/// Create a copy of SnAccount
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$SnAccountCopyWith<SnAccount> get copyWith =>
_$SnAccountCopyWithImpl<SnAccount>(this as SnAccount, _$identity);
/// Serializes this SnAccount to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is SnAccount &&
(identical(other.id, id) || other.id == id) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.deletedAt, deletedAt) ||
other.deletedAt == deletedAt) &&
(identical(other.confirmedAt, confirmedAt) ||
other.confirmedAt == confirmedAt) &&
const DeepCollectionEquality().equals(other.contacts, contacts) &&
(identical(other.avatar, avatar) || other.avatar == avatar) &&
(identical(other.banner, banner) || other.banner == banner) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.nick, nick) || other.nick == nick) &&
const DeepCollectionEquality().equals(other.permNodes, permNodes) &&
(identical(other.language, language) ||
other.language == language) &&
(identical(other.profile, profile) || other.profile == profile) &&
const DeepCollectionEquality().equals(other.badges, badges) &&
(identical(other.suspendedAt, suspendedAt) ||
other.suspendedAt == suspendedAt) &&
(identical(other.affiliatedId, affiliatedId) ||
other.affiliatedId == affiliatedId) &&
(identical(other.affiliatedTo, affiliatedTo) ||
other.affiliatedTo == affiliatedTo) &&
(identical(other.automatedBy, automatedBy) ||
other.automatedBy == automatedBy) &&
(identical(other.automatedId, automatedId) ||
other.automatedId == automatedId));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([
runtimeType,
id,
createdAt,
updatedAt,
deletedAt,
confirmedAt,
const DeepCollectionEquality().hash(contacts),
avatar,
banner,
name,
nick,
const DeepCollectionEquality().hash(permNodes),
language,
profile,
const DeepCollectionEquality().hash(badges),
suspendedAt,
affiliatedId,
affiliatedTo,
automatedBy,
automatedId
]);
@override
String toString() {
return 'SnAccount(id: $id, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, confirmedAt: $confirmedAt, contacts: $contacts, avatar: $avatar, banner: $banner, name: $name, nick: $nick, permNodes: $permNodes, language: $language, profile: $profile, badges: $badges, suspendedAt: $suspendedAt, affiliatedId: $affiliatedId, affiliatedTo: $affiliatedTo, automatedBy: $automatedBy, automatedId: $automatedId)';
}
}
/// @nodoc
abstract mixin class $SnAccountCopyWith<$Res> {
factory $SnAccountCopyWith(SnAccount value, $Res Function(SnAccount) _then) =
_$SnAccountCopyWithImpl;
@useResult
$Res call(
{int id,
DateTime createdAt,
DateTime updatedAt,
DateTime? deletedAt,
DateTime? confirmedAt,
List<SnAccountContact>? contacts,
String avatar,
String banner,
String name,
String nick,
Map<String, dynamic> permNodes,
String language,
SnAccountProfile? profile,
List<SnAccountBadge> badges,
DateTime? suspendedAt,
int? affiliatedId,
int? affiliatedTo,
int? automatedBy,
int? automatedId});
$SnAccountProfileCopyWith<$Res>? get profile;
}
/// @nodoc
class _$SnAccountCopyWithImpl<$Res> implements $SnAccountCopyWith<$Res> {
_$SnAccountCopyWithImpl(this._self, this._then);
final SnAccount _self;
final $Res Function(SnAccount) _then;
/// Create a copy of SnAccount
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? deletedAt = freezed,
Object? confirmedAt = freezed,
Object? contacts = freezed,
Object? avatar = null,
Object? banner = null,
Object? name = null,
Object? nick = null,
Object? permNodes = null,
Object? language = null,
Object? profile = freezed,
Object? badges = null,
Object? suspendedAt = freezed,
Object? affiliatedId = freezed,
Object? affiliatedTo = freezed,
Object? automatedBy = freezed,
Object? automatedId = freezed,
}) {
return _then(_self.copyWith(
id: null == id
? _self.id
: id // ignore: cast_nullable_to_non_nullable
as int,
createdAt: null == createdAt
? _self.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
updatedAt: null == updatedAt
? _self.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
deletedAt: freezed == deletedAt
? _self.deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
confirmedAt: freezed == confirmedAt
? _self.confirmedAt
: confirmedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
contacts: freezed == contacts
? _self.contacts
: contacts // ignore: cast_nullable_to_non_nullable
as List<SnAccountContact>?,
avatar: null == avatar
? _self.avatar
: avatar // ignore: cast_nullable_to_non_nullable
as String,
banner: null == banner
? _self.banner
: banner // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _self.name
: name // ignore: cast_nullable_to_non_nullable
as String,
nick: null == nick
? _self.nick
: nick // ignore: cast_nullable_to_non_nullable
as String,
permNodes: null == permNodes
? _self.permNodes
: permNodes // ignore: cast_nullable_to_non_nullable
as Map<String, dynamic>,
language: null == language
? _self.language
: language // ignore: cast_nullable_to_non_nullable
as String,
profile: freezed == profile
? _self.profile
: profile // ignore: cast_nullable_to_non_nullable
as SnAccountProfile?,
badges: null == badges
? _self.badges
: badges // ignore: cast_nullable_to_non_nullable
as List<SnAccountBadge>,
suspendedAt: freezed == suspendedAt
? _self.suspendedAt
: suspendedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
affiliatedId: freezed == affiliatedId
? _self.affiliatedId
: affiliatedId // ignore: cast_nullable_to_non_nullable
as int?,
affiliatedTo: freezed == affiliatedTo
? _self.affiliatedTo
: affiliatedTo // ignore: cast_nullable_to_non_nullable
as int?,
automatedBy: freezed == automatedBy
? _self.automatedBy
: automatedBy // ignore: cast_nullable_to_non_nullable
as int?,
automatedId: freezed == automatedId
? _self.automatedId
: automatedId // ignore: cast_nullable_to_non_nullable
as int?,
));
}
/// Create a copy of SnAccount
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$SnAccountProfileCopyWith<$Res>? get profile {
if (_self.profile == null) {
return null;
}
return $SnAccountProfileCopyWith<$Res>(_self.profile!, (value) {
return _then(_self.copyWith(profile: value));
});
}
}
/// @nodoc
@JsonSerializable()
class _SnAccount extends SnAccount {
const _SnAccount(
{required this.id,
required this.createdAt,
required this.updatedAt,
required this.deletedAt,
required this.confirmedAt,
required final List<SnAccountContact>? contacts,
this.avatar = "",
this.banner = "",
required this.name,
required this.nick,
final Map<String, dynamic> permNodes = const {},
required this.language,
required this.profile,
final List<SnAccountBadge> badges = const [],
required this.suspendedAt,
required this.affiliatedId,
required this.affiliatedTo,
required this.automatedBy,
required this.automatedId})
: _contacts = contacts,
_permNodes = permNodes,
_badges = badges,
super._();
factory _SnAccount.fromJson(Map<String, dynamic> json) =>
_$SnAccountFromJson(json);
@override
final int id;
@override
final DateTime createdAt;
@override
final DateTime updatedAt;
@override
final DateTime? deletedAt;
@override
final DateTime? confirmedAt;
final List<SnAccountContact>? _contacts;
@override
List<SnAccountContact>? get contacts {
final value = _contacts;
if (value == null) return null;
if (_contacts is EqualUnmodifiableListView) return _contacts;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(value);
}
@override
@JsonKey()
final String avatar;
@override
@JsonKey()
final String banner;
@override
final String name;
@override
final String nick;
final Map<String, dynamic> _permNodes;
@override
@JsonKey()
Map<String, dynamic> get permNodes {
if (_permNodes is EqualUnmodifiableMapView) return _permNodes;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView(_permNodes);
}
@override
final String language;
@override
final SnAccountProfile? profile;
final List<SnAccountBadge> _badges;
@override
@JsonKey()
List<SnAccountBadge> get badges {
if (_badges is EqualUnmodifiableListView) return _badges;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_badges);
}
@override
final DateTime? suspendedAt;
@override
final int? affiliatedId;
@override
final int? affiliatedTo;
@override
final int? automatedBy;
@override
final int? automatedId;
/// Create a copy of SnAccount
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$SnAccountCopyWith<_SnAccount> get copyWith =>
__$SnAccountCopyWithImpl<_SnAccount>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$SnAccountToJson(
this,
);
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _SnAccount &&
(identical(other.id, id) || other.id == id) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.deletedAt, deletedAt) ||
other.deletedAt == deletedAt) &&
(identical(other.confirmedAt, confirmedAt) ||
other.confirmedAt == confirmedAt) &&
const DeepCollectionEquality().equals(other._contacts, _contacts) &&
(identical(other.avatar, avatar) || other.avatar == avatar) &&
(identical(other.banner, banner) || other.banner == banner) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.nick, nick) || other.nick == nick) &&
const DeepCollectionEquality()
.equals(other._permNodes, _permNodes) &&
(identical(other.language, language) ||
other.language == language) &&
(identical(other.profile, profile) || other.profile == profile) &&
const DeepCollectionEquality().equals(other._badges, _badges) &&
(identical(other.suspendedAt, suspendedAt) ||
other.suspendedAt == suspendedAt) &&
(identical(other.affiliatedId, affiliatedId) ||
other.affiliatedId == affiliatedId) &&
(identical(other.affiliatedTo, affiliatedTo) ||
other.affiliatedTo == affiliatedTo) &&
(identical(other.automatedBy, automatedBy) ||
other.automatedBy == automatedBy) &&
(identical(other.automatedId, automatedId) ||
other.automatedId == automatedId));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([
runtimeType,
id,
createdAt,
updatedAt,
deletedAt,
confirmedAt,
const DeepCollectionEquality().hash(_contacts),
avatar,
banner,
name,
nick,
const DeepCollectionEquality().hash(_permNodes),
language,
profile,
const DeepCollectionEquality().hash(_badges),
suspendedAt,
affiliatedId,
affiliatedTo,
automatedBy,
automatedId
]);
@override
String toString() {
return 'SnAccount(id: $id, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, confirmedAt: $confirmedAt, contacts: $contacts, avatar: $avatar, banner: $banner, name: $name, nick: $nick, permNodes: $permNodes, language: $language, profile: $profile, badges: $badges, suspendedAt: $suspendedAt, affiliatedId: $affiliatedId, affiliatedTo: $affiliatedTo, automatedBy: $automatedBy, automatedId: $automatedId)';
}
}
/// @nodoc
abstract mixin class _$SnAccountCopyWith<$Res>
implements $SnAccountCopyWith<$Res> {
factory _$SnAccountCopyWith(
_SnAccount value, $Res Function(_SnAccount) _then) =
__$SnAccountCopyWithImpl;
@override
@useResult
$Res call(
{int id,
DateTime createdAt,
DateTime updatedAt,
DateTime? deletedAt,
DateTime? confirmedAt,
List<SnAccountContact>? contacts,
String avatar,
String banner,
String name,
String nick,
Map<String, dynamic> permNodes,
String language,
SnAccountProfile? profile,
List<SnAccountBadge> badges,
DateTime? suspendedAt,
int? affiliatedId,
int? affiliatedTo,
int? automatedBy,
int? automatedId});
@override
$SnAccountProfileCopyWith<$Res>? get profile;
}
/// @nodoc
class __$SnAccountCopyWithImpl<$Res> implements _$SnAccountCopyWith<$Res> {
__$SnAccountCopyWithImpl(this._self, this._then);
final _SnAccount _self;
final $Res Function(_SnAccount) _then;
/// Create a copy of SnAccount
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({
Object? id = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? deletedAt = freezed,
Object? confirmedAt = freezed,
Object? contacts = freezed,
Object? avatar = null,
Object? banner = null,
Object? name = null,
Object? nick = null,
Object? permNodes = null,
Object? language = null,
Object? profile = freezed,
Object? badges = null,
Object? suspendedAt = freezed,
Object? affiliatedId = freezed,
Object? affiliatedTo = freezed,
Object? automatedBy = freezed,
Object? automatedId = freezed,
}) {
return _then(_SnAccount(
id: null == id
? _self.id
: id // ignore: cast_nullable_to_non_nullable
as int,
createdAt: null == createdAt
? _self.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
updatedAt: null == updatedAt
? _self.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
deletedAt: freezed == deletedAt
? _self.deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
confirmedAt: freezed == confirmedAt
? _self.confirmedAt
: confirmedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
contacts: freezed == contacts
? _self._contacts
: contacts // ignore: cast_nullable_to_non_nullable
as List<SnAccountContact>?,
avatar: null == avatar
? _self.avatar
: avatar // ignore: cast_nullable_to_non_nullable
as String,
banner: null == banner
? _self.banner
: banner // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _self.name
: name // ignore: cast_nullable_to_non_nullable
as String,
nick: null == nick
? _self.nick
: nick // ignore: cast_nullable_to_non_nullable
as String,
permNodes: null == permNodes
? _self._permNodes
: permNodes // ignore: cast_nullable_to_non_nullable
as Map<String, dynamic>,
language: null == language
? _self.language
: language // ignore: cast_nullable_to_non_nullable
as String,
profile: freezed == profile
? _self.profile
: profile // ignore: cast_nullable_to_non_nullable
as SnAccountProfile?,
badges: null == badges
? _self._badges
: badges // ignore: cast_nullable_to_non_nullable
as List<SnAccountBadge>,
suspendedAt: freezed == suspendedAt
? _self.suspendedAt
: suspendedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
affiliatedId: freezed == affiliatedId
? _self.affiliatedId
: affiliatedId // ignore: cast_nullable_to_non_nullable
as int?,
affiliatedTo: freezed == affiliatedTo
? _self.affiliatedTo
: affiliatedTo // ignore: cast_nullable_to_non_nullable
as int?,
automatedBy: freezed == automatedBy
? _self.automatedBy
: automatedBy // ignore: cast_nullable_to_non_nullable
as int?,
automatedId: freezed == automatedId
? _self.automatedId
: automatedId // ignore: cast_nullable_to_non_nullable
as int?,
));
}
/// Create a copy of SnAccount
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$SnAccountProfileCopyWith<$Res>? get profile {
if (_self.profile == null) {
return null;
}
return $SnAccountProfileCopyWith<$Res>(_self.profile!, (value) {
return _then(_self.copyWith(profile: value));
});
}
}
/// @nodoc
mixin _$SnAccountContact {
int get accountId;
String get content;
DateTime get createdAt;
DateTime? get deletedAt;
int get id;
bool get isPrimary;
bool get isPublic;
int get type;
DateTime get updatedAt;
DateTime? get verifiedAt;
/// Create a copy of SnAccountContact
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$SnAccountContactCopyWith<SnAccountContact> get copyWith =>
_$SnAccountContactCopyWithImpl<SnAccountContact>(
this as SnAccountContact, _$identity);
/// Serializes this SnAccountContact to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is SnAccountContact &&
(identical(other.accountId, accountId) ||
other.accountId == accountId) &&
(identical(other.content, content) || other.content == content) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.deletedAt, deletedAt) ||
other.deletedAt == deletedAt) &&
(identical(other.id, id) || other.id == id) &&
(identical(other.isPrimary, isPrimary) ||
other.isPrimary == isPrimary) &&
(identical(other.isPublic, isPublic) ||
other.isPublic == isPublic) &&
(identical(other.type, type) || other.type == type) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.verifiedAt, verifiedAt) ||
other.verifiedAt == verifiedAt));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, accountId, content, createdAt,
deletedAt, id, isPrimary, isPublic, type, updatedAt, verifiedAt);
@override
String toString() {
return 'SnAccountContact(accountId: $accountId, content: $content, createdAt: $createdAt, deletedAt: $deletedAt, id: $id, isPrimary: $isPrimary, isPublic: $isPublic, type: $type, updatedAt: $updatedAt, verifiedAt: $verifiedAt)';
}
}
/// @nodoc
abstract mixin class $SnAccountContactCopyWith<$Res> {
factory $SnAccountContactCopyWith(
SnAccountContact value, $Res Function(SnAccountContact) _then) =
_$SnAccountContactCopyWithImpl;
@useResult
$Res call(
{int accountId,
String content,
DateTime createdAt,
DateTime? deletedAt,
int id,
bool isPrimary,
bool isPublic,
int type,
DateTime updatedAt,
DateTime? verifiedAt});
}
/// @nodoc
class _$SnAccountContactCopyWithImpl<$Res>
implements $SnAccountContactCopyWith<$Res> {
_$SnAccountContactCopyWithImpl(this._self, this._then);
final SnAccountContact _self;
final $Res Function(SnAccountContact) _then;
/// Create a copy of SnAccountContact
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? accountId = null,
Object? content = null,
Object? createdAt = null,
Object? deletedAt = freezed,
Object? id = null,
Object? isPrimary = null,
Object? isPublic = null,
Object? type = null,
Object? updatedAt = null,
Object? verifiedAt = freezed,
}) {
return _then(_self.copyWith(
accountId: null == accountId
? _self.accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int,
content: null == content
? _self.content
: content // ignore: cast_nullable_to_non_nullable
as String,
createdAt: null == createdAt
? _self.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
deletedAt: freezed == deletedAt
? _self.deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
id: null == id
? _self.id
: id // ignore: cast_nullable_to_non_nullable
as int,
isPrimary: null == isPrimary
? _self.isPrimary
: isPrimary // ignore: cast_nullable_to_non_nullable
as bool,
isPublic: null == isPublic
? _self.isPublic
: isPublic // ignore: cast_nullable_to_non_nullable
as bool,
type: null == type
? _self.type
: type // ignore: cast_nullable_to_non_nullable
as int,
updatedAt: null == updatedAt
? _self.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
verifiedAt: freezed == verifiedAt
? _self.verifiedAt
: verifiedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
));
}
}
/// @nodoc
@JsonSerializable()
class _SnAccountContact implements SnAccountContact {
const _SnAccountContact(
{required this.accountId,
required this.content,
required this.createdAt,
required this.deletedAt,
required this.id,
required this.isPrimary,
required this.isPublic,
required this.type,
required this.updatedAt,
required this.verifiedAt});
factory _SnAccountContact.fromJson(Map<String, dynamic> json) =>
_$SnAccountContactFromJson(json);
@override
final int accountId;
@override
final String content;
@override
final DateTime createdAt;
@override
final DateTime? deletedAt;
@override
final int id;
@override
final bool isPrimary;
@override
final bool isPublic;
@override
final int type;
@override
final DateTime updatedAt;
@override
final DateTime? verifiedAt;
/// Create a copy of SnAccountContact
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$SnAccountContactCopyWith<_SnAccountContact> get copyWith =>
__$SnAccountContactCopyWithImpl<_SnAccountContact>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$SnAccountContactToJson(
this,
);
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _SnAccountContact &&
(identical(other.accountId, accountId) ||
other.accountId == accountId) &&
(identical(other.content, content) || other.content == content) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.deletedAt, deletedAt) ||
other.deletedAt == deletedAt) &&
(identical(other.id, id) || other.id == id) &&
(identical(other.isPrimary, isPrimary) ||
other.isPrimary == isPrimary) &&
(identical(other.isPublic, isPublic) ||
other.isPublic == isPublic) &&
(identical(other.type, type) || other.type == type) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.verifiedAt, verifiedAt) ||
other.verifiedAt == verifiedAt));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, accountId, content, createdAt,
deletedAt, id, isPrimary, isPublic, type, updatedAt, verifiedAt);
@override
String toString() {
return 'SnAccountContact(accountId: $accountId, content: $content, createdAt: $createdAt, deletedAt: $deletedAt, id: $id, isPrimary: $isPrimary, isPublic: $isPublic, type: $type, updatedAt: $updatedAt, verifiedAt: $verifiedAt)';
}
}
/// @nodoc
abstract mixin class _$SnAccountContactCopyWith<$Res>
implements $SnAccountContactCopyWith<$Res> {
factory _$SnAccountContactCopyWith(
_SnAccountContact value, $Res Function(_SnAccountContact) _then) =
__$SnAccountContactCopyWithImpl;
@override
@useResult
$Res call(
{int accountId,
String content,
DateTime createdAt,
DateTime? deletedAt,
int id,
bool isPrimary,
bool isPublic,
int type,
DateTime updatedAt,
DateTime? verifiedAt});
}
/// @nodoc
class __$SnAccountContactCopyWithImpl<$Res>
implements _$SnAccountContactCopyWith<$Res> {
__$SnAccountContactCopyWithImpl(this._self, this._then);
final _SnAccountContact _self;
final $Res Function(_SnAccountContact) _then;
/// Create a copy of SnAccountContact
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({
Object? accountId = null,
Object? content = null,
Object? createdAt = null,
Object? deletedAt = freezed,
Object? id = null,
Object? isPrimary = null,
Object? isPublic = null,
Object? type = null,
Object? updatedAt = null,
Object? verifiedAt = freezed,
}) {
return _then(_SnAccountContact(
accountId: null == accountId
? _self.accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int,
content: null == content
? _self.content
: content // ignore: cast_nullable_to_non_nullable
as String,
createdAt: null == createdAt
? _self.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
deletedAt: freezed == deletedAt
? _self.deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
id: null == id
? _self.id
: id // ignore: cast_nullable_to_non_nullable
as int,
isPrimary: null == isPrimary
? _self.isPrimary
: isPrimary // ignore: cast_nullable_to_non_nullable
as bool,
isPublic: null == isPublic
? _self.isPublic
: isPublic // ignore: cast_nullable_to_non_nullable
as bool,
type: null == type
? _self.type
: type // ignore: cast_nullable_to_non_nullable
as int,
updatedAt: null == updatedAt
? _self.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
verifiedAt: freezed == verifiedAt
? _self.verifiedAt
: verifiedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
));
}
}
/// @nodoc
mixin _$SnAccountProfile {
int get id;
DateTime get createdAt;
DateTime get updatedAt;
DateTime? get deletedAt;
String get firstName;
String get lastName;
String get description;
String get timeZone;
String get location;
String get pronouns;
String get gender;
Map<String, String> get links;
int get experience;
DateTime? get lastSeenAt;
DateTime? get birthday;
int get accountId;
/// Create a copy of SnAccountProfile
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$SnAccountProfileCopyWith<SnAccountProfile> get copyWith =>
_$SnAccountProfileCopyWithImpl<SnAccountProfile>(
this as SnAccountProfile, _$identity);
/// Serializes this SnAccountProfile to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is SnAccountProfile &&
(identical(other.id, id) || other.id == id) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.deletedAt, deletedAt) ||
other.deletedAt == deletedAt) &&
(identical(other.firstName, firstName) ||
other.firstName == firstName) &&
(identical(other.lastName, lastName) ||
other.lastName == lastName) &&
(identical(other.description, description) ||
other.description == description) &&
(identical(other.timeZone, timeZone) ||
other.timeZone == timeZone) &&
(identical(other.location, location) ||
other.location == location) &&
(identical(other.pronouns, pronouns) ||
other.pronouns == pronouns) &&
(identical(other.gender, gender) || other.gender == gender) &&
const DeepCollectionEquality().equals(other.links, links) &&
(identical(other.experience, experience) ||
other.experience == experience) &&
(identical(other.lastSeenAt, lastSeenAt) ||
other.lastSeenAt == lastSeenAt) &&
(identical(other.birthday, birthday) ||
other.birthday == birthday) &&
(identical(other.accountId, accountId) ||
other.accountId == accountId));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
id,
createdAt,
updatedAt,
deletedAt,
firstName,
lastName,
description,
timeZone,
location,
pronouns,
gender,
const DeepCollectionEquality().hash(links),
experience,
lastSeenAt,
birthday,
accountId);
@override
String toString() {
return 'SnAccountProfile(id: $id, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, firstName: $firstName, lastName: $lastName, description: $description, timeZone: $timeZone, location: $location, pronouns: $pronouns, gender: $gender, links: $links, experience: $experience, lastSeenAt: $lastSeenAt, birthday: $birthday, accountId: $accountId)';
}
}
/// @nodoc
abstract mixin class $SnAccountProfileCopyWith<$Res> {
factory $SnAccountProfileCopyWith(
SnAccountProfile value, $Res Function(SnAccountProfile) _then) =
_$SnAccountProfileCopyWithImpl;
@useResult
$Res call(
{int id,
DateTime createdAt,
DateTime updatedAt,
DateTime? deletedAt,
String firstName,
String lastName,
String description,
String timeZone,
String location,
String pronouns,
String gender,
Map<String, String> links,
int experience,
DateTime? lastSeenAt,
DateTime? birthday,
int accountId});
}
/// @nodoc
class _$SnAccountProfileCopyWithImpl<$Res>
implements $SnAccountProfileCopyWith<$Res> {
_$SnAccountProfileCopyWithImpl(this._self, this._then);
final SnAccountProfile _self;
final $Res Function(SnAccountProfile) _then;
/// Create a copy of SnAccountProfile
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? deletedAt = freezed,
Object? firstName = null,
Object? lastName = null,
Object? description = null,
Object? timeZone = null,
Object? location = null,
Object? pronouns = null,
Object? gender = null,
Object? links = null,
Object? experience = null,
Object? lastSeenAt = freezed,
Object? birthday = freezed,
Object? accountId = null,
}) {
return _then(_self.copyWith(
id: null == id
? _self.id
: id // ignore: cast_nullable_to_non_nullable
as int,
createdAt: null == createdAt
? _self.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
updatedAt: null == updatedAt
? _self.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
deletedAt: freezed == deletedAt
? _self.deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
firstName: null == firstName
? _self.firstName
: firstName // ignore: cast_nullable_to_non_nullable
as String,
lastName: null == lastName
? _self.lastName
: lastName // ignore: cast_nullable_to_non_nullable
as String,
description: null == description
? _self.description
: description // ignore: cast_nullable_to_non_nullable
as String,
timeZone: null == timeZone
? _self.timeZone
: timeZone // ignore: cast_nullable_to_non_nullable
as String,
location: null == location
? _self.location
: location // ignore: cast_nullable_to_non_nullable
as String,
pronouns: null == pronouns
? _self.pronouns
: pronouns // ignore: cast_nullable_to_non_nullable
as String,
gender: null == gender
? _self.gender
: gender // ignore: cast_nullable_to_non_nullable
as String,
links: null == links
? _self.links
: links // ignore: cast_nullable_to_non_nullable
as Map<String, String>,
experience: null == experience
? _self.experience
: experience // ignore: cast_nullable_to_non_nullable
as int,
lastSeenAt: freezed == lastSeenAt
? _self.lastSeenAt
: lastSeenAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
birthday: freezed == birthday
? _self.birthday
: birthday // ignore: cast_nullable_to_non_nullable
as DateTime?,
accountId: null == accountId
? _self.accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
@JsonSerializable()
class _SnAccountProfile implements SnAccountProfile {
const _SnAccountProfile(
{required this.id,
required this.createdAt,
required this.updatedAt,
required this.deletedAt,
required this.firstName,
required this.lastName,
required this.description,
required this.timeZone,
required this.location,
required this.pronouns,
required this.gender,
final Map<String, String> links = const {},
required this.experience,
required this.lastSeenAt,
required this.birthday,
required this.accountId})
: _links = links;
factory _SnAccountProfile.fromJson(Map<String, dynamic> json) =>
_$SnAccountProfileFromJson(json);
@override
final int id;
@override
final DateTime createdAt;
@override
final DateTime updatedAt;
@override
final DateTime? deletedAt;
@override
final String firstName;
@override
final String lastName;
@override
final String description;
@override
final String timeZone;
@override
final String location;
@override
final String pronouns;
@override
final String gender;
final Map<String, String> _links;
@override
@JsonKey()
Map<String, String> get links {
if (_links is EqualUnmodifiableMapView) return _links;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView(_links);
}
@override
final int experience;
@override
final DateTime? lastSeenAt;
@override
final DateTime? birthday;
@override
final int accountId;
/// Create a copy of SnAccountProfile
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$SnAccountProfileCopyWith<_SnAccountProfile> get copyWith =>
__$SnAccountProfileCopyWithImpl<_SnAccountProfile>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$SnAccountProfileToJson(
this,
);
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _SnAccountProfile &&
(identical(other.id, id) || other.id == id) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.deletedAt, deletedAt) ||
other.deletedAt == deletedAt) &&
(identical(other.firstName, firstName) ||
other.firstName == firstName) &&
(identical(other.lastName, lastName) ||
other.lastName == lastName) &&
(identical(other.description, description) ||
other.description == description) &&
(identical(other.timeZone, timeZone) ||
other.timeZone == timeZone) &&
(identical(other.location, location) ||
other.location == location) &&
(identical(other.pronouns, pronouns) ||
other.pronouns == pronouns) &&
(identical(other.gender, gender) || other.gender == gender) &&
const DeepCollectionEquality().equals(other._links, _links) &&
(identical(other.experience, experience) ||
other.experience == experience) &&
(identical(other.lastSeenAt, lastSeenAt) ||
other.lastSeenAt == lastSeenAt) &&
(identical(other.birthday, birthday) ||
other.birthday == birthday) &&
(identical(other.accountId, accountId) ||
other.accountId == accountId));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
id,
createdAt,
updatedAt,
deletedAt,
firstName,
lastName,
description,
timeZone,
location,
pronouns,
gender,
const DeepCollectionEquality().hash(_links),
experience,
lastSeenAt,
birthday,
accountId);
@override
String toString() {
return 'SnAccountProfile(id: $id, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, firstName: $firstName, lastName: $lastName, description: $description, timeZone: $timeZone, location: $location, pronouns: $pronouns, gender: $gender, links: $links, experience: $experience, lastSeenAt: $lastSeenAt, birthday: $birthday, accountId: $accountId)';
}
}
/// @nodoc
abstract mixin class _$SnAccountProfileCopyWith<$Res>
implements $SnAccountProfileCopyWith<$Res> {
factory _$SnAccountProfileCopyWith(
_SnAccountProfile value, $Res Function(_SnAccountProfile) _then) =
__$SnAccountProfileCopyWithImpl;
@override
@useResult
$Res call(
{int id,
DateTime createdAt,
DateTime updatedAt,
DateTime? deletedAt,
String firstName,
String lastName,
String description,
String timeZone,
String location,
String pronouns,
String gender,
Map<String, String> links,
int experience,
DateTime? lastSeenAt,
DateTime? birthday,
int accountId});
}
/// @nodoc
class __$SnAccountProfileCopyWithImpl<$Res>
implements _$SnAccountProfileCopyWith<$Res> {
__$SnAccountProfileCopyWithImpl(this._self, this._then);
final _SnAccountProfile _self;
final $Res Function(_SnAccountProfile) _then;
/// Create a copy of SnAccountProfile
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({
Object? id = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? deletedAt = freezed,
Object? firstName = null,
Object? lastName = null,
Object? description = null,
Object? timeZone = null,
Object? location = null,
Object? pronouns = null,
Object? gender = null,
Object? links = null,
Object? experience = null,
Object? lastSeenAt = freezed,
Object? birthday = freezed,
Object? accountId = null,
}) {
return _then(_SnAccountProfile(
id: null == id
? _self.id
: id // ignore: cast_nullable_to_non_nullable
as int,
createdAt: null == createdAt
? _self.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
updatedAt: null == updatedAt
? _self.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
deletedAt: freezed == deletedAt
? _self.deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
firstName: null == firstName
? _self.firstName
: firstName // ignore: cast_nullable_to_non_nullable
as String,
lastName: null == lastName
? _self.lastName
: lastName // ignore: cast_nullable_to_non_nullable
as String,
description: null == description
? _self.description
: description // ignore: cast_nullable_to_non_nullable
as String,
timeZone: null == timeZone
? _self.timeZone
: timeZone // ignore: cast_nullable_to_non_nullable
as String,
location: null == location
? _self.location
: location // ignore: cast_nullable_to_non_nullable
as String,
pronouns: null == pronouns
? _self.pronouns
: pronouns // ignore: cast_nullable_to_non_nullable
as String,
gender: null == gender
? _self.gender
: gender // ignore: cast_nullable_to_non_nullable
as String,
links: null == links
? _self._links
: links // ignore: cast_nullable_to_non_nullable
as Map<String, String>,
experience: null == experience
? _self.experience
: experience // ignore: cast_nullable_to_non_nullable
as int,
lastSeenAt: freezed == lastSeenAt
? _self.lastSeenAt
: lastSeenAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
birthday: freezed == birthday
? _self.birthday
: birthday // ignore: cast_nullable_to_non_nullable
as DateTime?,
accountId: null == accountId
? _self.accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
mixin _$SnRelationship {
int get id;
DateTime get createdAt;
DateTime get updatedAt;
DateTime? get deletedAt;
int get accountId;
int get relatedId;
SnAccount? get account;
SnAccount? get related;
int get status;
Map<String, dynamic> get permNodes;
/// Create a copy of SnRelationship
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$SnRelationshipCopyWith<SnRelationship> get copyWith =>
_$SnRelationshipCopyWithImpl<SnRelationship>(
this as SnRelationship, _$identity);
/// Serializes this SnRelationship to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is SnRelationship &&
(identical(other.id, id) || other.id == id) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.deletedAt, deletedAt) ||
other.deletedAt == deletedAt) &&
(identical(other.accountId, accountId) ||
other.accountId == accountId) &&
(identical(other.relatedId, relatedId) ||
other.relatedId == relatedId) &&
(identical(other.account, account) || other.account == account) &&
(identical(other.related, related) || other.related == related) &&
(identical(other.status, status) || other.status == status) &&
const DeepCollectionEquality().equals(other.permNodes, permNodes));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
id,
createdAt,
updatedAt,
deletedAt,
accountId,
relatedId,
account,
related,
status,
const DeepCollectionEquality().hash(permNodes));
@override
String toString() {
return 'SnRelationship(id: $id, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, accountId: $accountId, relatedId: $relatedId, account: $account, related: $related, status: $status, permNodes: $permNodes)';
}
}
/// @nodoc
abstract mixin class $SnRelationshipCopyWith<$Res> {
factory $SnRelationshipCopyWith(
SnRelationship value, $Res Function(SnRelationship) _then) =
_$SnRelationshipCopyWithImpl;
@useResult
$Res call(
{int id,
DateTime createdAt,
DateTime updatedAt,
DateTime? deletedAt,
int accountId,
int relatedId,
SnAccount? account,
SnAccount? related,
int status,
Map<String, dynamic> permNodes});
$SnAccountCopyWith<$Res>? get account;
$SnAccountCopyWith<$Res>? get related;
}
/// @nodoc
class _$SnRelationshipCopyWithImpl<$Res>
implements $SnRelationshipCopyWith<$Res> {
_$SnRelationshipCopyWithImpl(this._self, this._then);
final SnRelationship _self;
final $Res Function(SnRelationship) _then;
/// Create a copy of SnRelationship
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? deletedAt = freezed,
Object? accountId = null,
Object? relatedId = null,
Object? account = freezed,
Object? related = freezed,
Object? status = null,
Object? permNodes = null,
}) {
return _then(_self.copyWith(
id: null == id
? _self.id
: id // ignore: cast_nullable_to_non_nullable
as int,
createdAt: null == createdAt
? _self.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
updatedAt: null == updatedAt
? _self.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
deletedAt: freezed == deletedAt
? _self.deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
accountId: null == accountId
? _self.accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int,
relatedId: null == relatedId
? _self.relatedId
: relatedId // ignore: cast_nullable_to_non_nullable
as int,
account: freezed == account
? _self.account
: account // ignore: cast_nullable_to_non_nullable
as SnAccount?,
related: freezed == related
? _self.related
: related // ignore: cast_nullable_to_non_nullable
as SnAccount?,
status: null == status
? _self.status
: status // ignore: cast_nullable_to_non_nullable
as int,
permNodes: null == permNodes
? _self.permNodes
: permNodes // ignore: cast_nullable_to_non_nullable
as Map<String, dynamic>,
));
}
/// Create a copy of SnRelationship
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$SnAccountCopyWith<$Res>? get account {
if (_self.account == null) {
return null;
}
return $SnAccountCopyWith<$Res>(_self.account!, (value) {
return _then(_self.copyWith(account: value));
});
}
/// Create a copy of SnRelationship
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$SnAccountCopyWith<$Res>? get related {
if (_self.related == null) {
return null;
}
return $SnAccountCopyWith<$Res>(_self.related!, (value) {
return _then(_self.copyWith(related: value));
});
}
}
/// @nodoc
@JsonSerializable()
class _SnRelationship implements SnRelationship {
const _SnRelationship(
{required this.id,
required this.createdAt,
required this.updatedAt,
required this.deletedAt,
required this.accountId,
required this.relatedId,
required this.account,
required this.related,
required this.status,
final Map<String, dynamic> permNodes = const {}})
: _permNodes = permNodes;
factory _SnRelationship.fromJson(Map<String, dynamic> json) =>
_$SnRelationshipFromJson(json);
@override
final int id;
@override
final DateTime createdAt;
@override
final DateTime updatedAt;
@override
final DateTime? deletedAt;
@override
final int accountId;
@override
final int relatedId;
@override
final SnAccount? account;
@override
final SnAccount? related;
@override
final int status;
final Map<String, dynamic> _permNodes;
@override
@JsonKey()
Map<String, dynamic> get permNodes {
if (_permNodes is EqualUnmodifiableMapView) return _permNodes;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView(_permNodes);
}
/// Create a copy of SnRelationship
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$SnRelationshipCopyWith<_SnRelationship> get copyWith =>
__$SnRelationshipCopyWithImpl<_SnRelationship>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$SnRelationshipToJson(
this,
);
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _SnRelationship &&
(identical(other.id, id) || other.id == id) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.deletedAt, deletedAt) ||
other.deletedAt == deletedAt) &&
(identical(other.accountId, accountId) ||
other.accountId == accountId) &&
(identical(other.relatedId, relatedId) ||
other.relatedId == relatedId) &&
(identical(other.account, account) || other.account == account) &&
(identical(other.related, related) || other.related == related) &&
(identical(other.status, status) || other.status == status) &&
const DeepCollectionEquality()
.equals(other._permNodes, _permNodes));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
id,
createdAt,
updatedAt,
deletedAt,
accountId,
relatedId,
account,
related,
status,
const DeepCollectionEquality().hash(_permNodes));
@override
String toString() {
return 'SnRelationship(id: $id, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, accountId: $accountId, relatedId: $relatedId, account: $account, related: $related, status: $status, permNodes: $permNodes)';
}
}
/// @nodoc
abstract mixin class _$SnRelationshipCopyWith<$Res>
implements $SnRelationshipCopyWith<$Res> {
factory _$SnRelationshipCopyWith(
_SnRelationship value, $Res Function(_SnRelationship) _then) =
__$SnRelationshipCopyWithImpl;
@override
@useResult
$Res call(
{int id,
DateTime createdAt,
DateTime updatedAt,
DateTime? deletedAt,
int accountId,
int relatedId,
SnAccount? account,
SnAccount? related,
int status,
Map<String, dynamic> permNodes});
@override
$SnAccountCopyWith<$Res>? get account;
@override
$SnAccountCopyWith<$Res>? get related;
}
/// @nodoc
class __$SnRelationshipCopyWithImpl<$Res>
implements _$SnRelationshipCopyWith<$Res> {
__$SnRelationshipCopyWithImpl(this._self, this._then);
final _SnRelationship _self;
final $Res Function(_SnRelationship) _then;
/// Create a copy of SnRelationship
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({
Object? id = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? deletedAt = freezed,
Object? accountId = null,
Object? relatedId = null,
Object? account = freezed,
Object? related = freezed,
Object? status = null,
Object? permNodes = null,
}) {
return _then(_SnRelationship(
id: null == id
? _self.id
: id // ignore: cast_nullable_to_non_nullable
as int,
createdAt: null == createdAt
? _self.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
updatedAt: null == updatedAt
? _self.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
deletedAt: freezed == deletedAt
? _self.deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
accountId: null == accountId
? _self.accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int,
relatedId: null == relatedId
? _self.relatedId
: relatedId // ignore: cast_nullable_to_non_nullable
as int,
account: freezed == account
? _self.account
: account // ignore: cast_nullable_to_non_nullable
as SnAccount?,
related: freezed == related
? _self.related
: related // ignore: cast_nullable_to_non_nullable
as SnAccount?,
status: null == status
? _self.status
: status // ignore: cast_nullable_to_non_nullable
as int,
permNodes: null == permNodes
? _self._permNodes
: permNodes // ignore: cast_nullable_to_non_nullable
as Map<String, dynamic>,
));
}
/// Create a copy of SnRelationship
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$SnAccountCopyWith<$Res>? get account {
if (_self.account == null) {
return null;
}
return $SnAccountCopyWith<$Res>(_self.account!, (value) {
return _then(_self.copyWith(account: value));
});
}
/// Create a copy of SnRelationship
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$SnAccountCopyWith<$Res>? get related {
if (_self.related == null) {
return null;
}
return $SnAccountCopyWith<$Res>(_self.related!, (value) {
return _then(_self.copyWith(related: value));
});
}
}
/// @nodoc
mixin _$SnAccountBadge {
int get id;
DateTime get createdAt;
DateTime get updatedAt;
dynamic get deletedAt;
String get type;
int get accountId;
bool get isActive;
Map<String, dynamic> get metadata;
/// Create a copy of SnAccountBadge
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$SnAccountBadgeCopyWith<SnAccountBadge> get copyWith =>
_$SnAccountBadgeCopyWithImpl<SnAccountBadge>(
this as SnAccountBadge, _$identity);
/// Serializes this SnAccountBadge to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is SnAccountBadge &&
(identical(other.id, id) || other.id == id) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
const DeepCollectionEquality().equals(other.deletedAt, deletedAt) &&
(identical(other.type, type) || other.type == type) &&
(identical(other.accountId, accountId) ||
other.accountId == accountId) &&
(identical(other.isActive, isActive) ||
other.isActive == isActive) &&
const DeepCollectionEquality().equals(other.metadata, metadata));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
id,
createdAt,
updatedAt,
const DeepCollectionEquality().hash(deletedAt),
type,
accountId,
isActive,
const DeepCollectionEquality().hash(metadata));
@override
String toString() {
return 'SnAccountBadge(id: $id, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, type: $type, accountId: $accountId, isActive: $isActive, metadata: $metadata)';
}
}
/// @nodoc
abstract mixin class $SnAccountBadgeCopyWith<$Res> {
factory $SnAccountBadgeCopyWith(
SnAccountBadge value, $Res Function(SnAccountBadge) _then) =
_$SnAccountBadgeCopyWithImpl;
@useResult
$Res call(
{int id,
DateTime createdAt,
DateTime updatedAt,
dynamic deletedAt,
String type,
int accountId,
bool isActive,
Map<String, dynamic> metadata});
}
/// @nodoc
class _$SnAccountBadgeCopyWithImpl<$Res>
implements $SnAccountBadgeCopyWith<$Res> {
_$SnAccountBadgeCopyWithImpl(this._self, this._then);
final SnAccountBadge _self;
final $Res Function(SnAccountBadge) _then;
/// Create a copy of SnAccountBadge
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? deletedAt = freezed,
Object? type = null,
Object? accountId = null,
Object? isActive = null,
Object? metadata = null,
}) {
return _then(_self.copyWith(
id: null == id
? _self.id
: id // ignore: cast_nullable_to_non_nullable
as int,
createdAt: null == createdAt
? _self.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
updatedAt: null == updatedAt
? _self.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
deletedAt: freezed == deletedAt
? _self.deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as dynamic,
type: null == type
? _self.type
: type // ignore: cast_nullable_to_non_nullable
as String,
accountId: null == accountId
? _self.accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int,
isActive: null == isActive
? _self.isActive
: isActive // ignore: cast_nullable_to_non_nullable
as bool,
metadata: null == metadata
? _self.metadata
: metadata // ignore: cast_nullable_to_non_nullable
as Map<String, dynamic>,
));
}
}
/// @nodoc
@JsonSerializable()
class _SnAccountBadge implements SnAccountBadge {
const _SnAccountBadge(
{required this.id,
required this.createdAt,
required this.updatedAt,
required this.deletedAt,
required this.type,
required this.accountId,
this.isActive = false,
final Map<String, dynamic> metadata = const {}})
: _metadata = metadata;
factory _SnAccountBadge.fromJson(Map<String, dynamic> json) =>
_$SnAccountBadgeFromJson(json);
@override
final int id;
@override
final DateTime createdAt;
@override
final DateTime updatedAt;
@override
final dynamic deletedAt;
@override
final String type;
@override
final int accountId;
@override
@JsonKey()
final bool isActive;
final Map<String, dynamic> _metadata;
@override
@JsonKey()
Map<String, dynamic> get metadata {
if (_metadata is EqualUnmodifiableMapView) return _metadata;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView(_metadata);
}
/// Create a copy of SnAccountBadge
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$SnAccountBadgeCopyWith<_SnAccountBadge> get copyWith =>
__$SnAccountBadgeCopyWithImpl<_SnAccountBadge>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$SnAccountBadgeToJson(
this,
);
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _SnAccountBadge &&
(identical(other.id, id) || other.id == id) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
const DeepCollectionEquality().equals(other.deletedAt, deletedAt) &&
(identical(other.type, type) || other.type == type) &&
(identical(other.accountId, accountId) ||
other.accountId == accountId) &&
(identical(other.isActive, isActive) ||
other.isActive == isActive) &&
const DeepCollectionEquality().equals(other._metadata, _metadata));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
id,
createdAt,
updatedAt,
const DeepCollectionEquality().hash(deletedAt),
type,
accountId,
isActive,
const DeepCollectionEquality().hash(_metadata));
@override
String toString() {
return 'SnAccountBadge(id: $id, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, type: $type, accountId: $accountId, isActive: $isActive, metadata: $metadata)';
}
}
/// @nodoc
abstract mixin class _$SnAccountBadgeCopyWith<$Res>
implements $SnAccountBadgeCopyWith<$Res> {
factory _$SnAccountBadgeCopyWith(
_SnAccountBadge value, $Res Function(_SnAccountBadge) _then) =
__$SnAccountBadgeCopyWithImpl;
@override
@useResult
$Res call(
{int id,
DateTime createdAt,
DateTime updatedAt,
dynamic deletedAt,
String type,
int accountId,
bool isActive,
Map<String, dynamic> metadata});
}
/// @nodoc
class __$SnAccountBadgeCopyWithImpl<$Res>
implements _$SnAccountBadgeCopyWith<$Res> {
__$SnAccountBadgeCopyWithImpl(this._self, this._then);
final _SnAccountBadge _self;
final $Res Function(_SnAccountBadge) _then;
/// Create a copy of SnAccountBadge
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({
Object? id = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? deletedAt = freezed,
Object? type = null,
Object? accountId = null,
Object? isActive = null,
Object? metadata = null,
}) {
return _then(_SnAccountBadge(
id: null == id
? _self.id
: id // ignore: cast_nullable_to_non_nullable
as int,
createdAt: null == createdAt
? _self.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
updatedAt: null == updatedAt
? _self.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
deletedAt: freezed == deletedAt
? _self.deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as dynamic,
type: null == type
? _self.type
: type // ignore: cast_nullable_to_non_nullable
as String,
accountId: null == accountId
? _self.accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int,
isActive: null == isActive
? _self.isActive
: isActive // ignore: cast_nullable_to_non_nullable
as bool,
metadata: null == metadata
? _self._metadata
: metadata // ignore: cast_nullable_to_non_nullable
as Map<String, dynamic>,
));
}
}
/// @nodoc
mixin _$SnAccountStatusInfo {
bool get isDisturbable;
bool get isOnline;
DateTime? get lastSeenAt;
dynamic get status;
/// Create a copy of SnAccountStatusInfo
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$SnAccountStatusInfoCopyWith<SnAccountStatusInfo> get copyWith =>
_$SnAccountStatusInfoCopyWithImpl<SnAccountStatusInfo>(
this as SnAccountStatusInfo, _$identity);
/// Serializes this SnAccountStatusInfo to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is SnAccountStatusInfo &&
(identical(other.isDisturbable, isDisturbable) ||
other.isDisturbable == isDisturbable) &&
(identical(other.isOnline, isOnline) ||
other.isOnline == isOnline) &&
(identical(other.lastSeenAt, lastSeenAt) ||
other.lastSeenAt == lastSeenAt) &&
const DeepCollectionEquality().equals(other.status, status));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, isDisturbable, isOnline,
lastSeenAt, const DeepCollectionEquality().hash(status));
@override
String toString() {
return 'SnAccountStatusInfo(isDisturbable: $isDisturbable, isOnline: $isOnline, lastSeenAt: $lastSeenAt, status: $status)';
}
}
/// @nodoc
abstract mixin class $SnAccountStatusInfoCopyWith<$Res> {
factory $SnAccountStatusInfoCopyWith(
SnAccountStatusInfo value, $Res Function(SnAccountStatusInfo) _then) =
_$SnAccountStatusInfoCopyWithImpl;
@useResult
$Res call(
{bool isDisturbable,
bool isOnline,
DateTime? lastSeenAt,
dynamic status});
}
/// @nodoc
class _$SnAccountStatusInfoCopyWithImpl<$Res>
implements $SnAccountStatusInfoCopyWith<$Res> {
_$SnAccountStatusInfoCopyWithImpl(this._self, this._then);
final SnAccountStatusInfo _self;
final $Res Function(SnAccountStatusInfo) _then;
/// Create a copy of SnAccountStatusInfo
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? isDisturbable = null,
Object? isOnline = null,
Object? lastSeenAt = freezed,
Object? status = freezed,
}) {
return _then(_self.copyWith(
isDisturbable: null == isDisturbable
? _self.isDisturbable
: isDisturbable // ignore: cast_nullable_to_non_nullable
as bool,
isOnline: null == isOnline
? _self.isOnline
: isOnline // ignore: cast_nullable_to_non_nullable
as bool,
lastSeenAt: freezed == lastSeenAt
? _self.lastSeenAt
: lastSeenAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
status: freezed == status
? _self.status
: status // ignore: cast_nullable_to_non_nullable
as dynamic,
));
}
}
/// @nodoc
@JsonSerializable()
class _SnAccountStatusInfo implements SnAccountStatusInfo {
const _SnAccountStatusInfo(
{required this.isDisturbable,
required this.isOnline,
required this.lastSeenAt,
required this.status});
factory _SnAccountStatusInfo.fromJson(Map<String, dynamic> json) =>
_$SnAccountStatusInfoFromJson(json);
@override
final bool isDisturbable;
@override
final bool isOnline;
@override
final DateTime? lastSeenAt;
@override
final dynamic status;
/// Create a copy of SnAccountStatusInfo
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$SnAccountStatusInfoCopyWith<_SnAccountStatusInfo> get copyWith =>
__$SnAccountStatusInfoCopyWithImpl<_SnAccountStatusInfo>(
this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$SnAccountStatusInfoToJson(
this,
);
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _SnAccountStatusInfo &&
(identical(other.isDisturbable, isDisturbable) ||
other.isDisturbable == isDisturbable) &&
(identical(other.isOnline, isOnline) ||
other.isOnline == isOnline) &&
(identical(other.lastSeenAt, lastSeenAt) ||
other.lastSeenAt == lastSeenAt) &&
const DeepCollectionEquality().equals(other.status, status));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, isDisturbable, isOnline,
lastSeenAt, const DeepCollectionEquality().hash(status));
@override
String toString() {
return 'SnAccountStatusInfo(isDisturbable: $isDisturbable, isOnline: $isOnline, lastSeenAt: $lastSeenAt, status: $status)';
}
}
/// @nodoc
abstract mixin class _$SnAccountStatusInfoCopyWith<$Res>
implements $SnAccountStatusInfoCopyWith<$Res> {
factory _$SnAccountStatusInfoCopyWith(_SnAccountStatusInfo value,
$Res Function(_SnAccountStatusInfo) _then) =
__$SnAccountStatusInfoCopyWithImpl;
@override
@useResult
$Res call(
{bool isDisturbable,
bool isOnline,
DateTime? lastSeenAt,
dynamic status});
}
/// @nodoc
class __$SnAccountStatusInfoCopyWithImpl<$Res>
implements _$SnAccountStatusInfoCopyWith<$Res> {
__$SnAccountStatusInfoCopyWithImpl(this._self, this._then);
final _SnAccountStatusInfo _self;
final $Res Function(_SnAccountStatusInfo) _then;
/// Create a copy of SnAccountStatusInfo
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({
Object? isDisturbable = null,
Object? isOnline = null,
Object? lastSeenAt = freezed,
Object? status = freezed,
}) {
return _then(_SnAccountStatusInfo(
isDisturbable: null == isDisturbable
? _self.isDisturbable
: isDisturbable // ignore: cast_nullable_to_non_nullable
as bool,
isOnline: null == isOnline
? _self.isOnline
: isOnline // ignore: cast_nullable_to_non_nullable
as bool,
lastSeenAt: freezed == lastSeenAt
? _self.lastSeenAt
: lastSeenAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
status: freezed == status
? _self.status
: status // ignore: cast_nullable_to_non_nullable
as dynamic,
));
}
}
/// @nodoc
mixin _$SnAbuseReport {
int get id;
DateTime get createdAt;
DateTime get updatedAt;
DateTime? get deletedAt;
String get resource;
String get reason;
String get status;
int get accountId;
/// Create a copy of SnAbuseReport
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$SnAbuseReportCopyWith<SnAbuseReport> get copyWith =>
_$SnAbuseReportCopyWithImpl<SnAbuseReport>(
this as SnAbuseReport, _$identity);
/// Serializes this SnAbuseReport to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is SnAbuseReport &&
(identical(other.id, id) || other.id == id) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.deletedAt, deletedAt) ||
other.deletedAt == deletedAt) &&
(identical(other.resource, resource) ||
other.resource == resource) &&
(identical(other.reason, reason) || other.reason == reason) &&
(identical(other.status, status) || other.status == status) &&
(identical(other.accountId, accountId) ||
other.accountId == accountId));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id, createdAt, updatedAt,
deletedAt, resource, reason, status, accountId);
@override
String toString() {
return 'SnAbuseReport(id: $id, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, resource: $resource, reason: $reason, status: $status, accountId: $accountId)';
}
}
/// @nodoc
abstract mixin class $SnAbuseReportCopyWith<$Res> {
factory $SnAbuseReportCopyWith(
SnAbuseReport value, $Res Function(SnAbuseReport) _then) =
_$SnAbuseReportCopyWithImpl;
@useResult
$Res call(
{int id,
DateTime createdAt,
DateTime updatedAt,
DateTime? deletedAt,
String resource,
String reason,
String status,
int accountId});
}
/// @nodoc
class _$SnAbuseReportCopyWithImpl<$Res>
implements $SnAbuseReportCopyWith<$Res> {
_$SnAbuseReportCopyWithImpl(this._self, this._then);
final SnAbuseReport _self;
final $Res Function(SnAbuseReport) _then;
/// Create a copy of SnAbuseReport
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? deletedAt = freezed,
Object? resource = null,
Object? reason = null,
Object? status = null,
Object? accountId = null,
}) {
return _then(_self.copyWith(
id: null == id
? _self.id
: id // ignore: cast_nullable_to_non_nullable
as int,
createdAt: null == createdAt
? _self.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
updatedAt: null == updatedAt
? _self.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
deletedAt: freezed == deletedAt
? _self.deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
resource: null == resource
? _self.resource
: resource // ignore: cast_nullable_to_non_nullable
as String,
reason: null == reason
? _self.reason
: reason // ignore: cast_nullable_to_non_nullable
as String,
status: null == status
? _self.status
: status // ignore: cast_nullable_to_non_nullable
as String,
accountId: null == accountId
? _self.accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
@JsonSerializable()
class _SnAbuseReport implements SnAbuseReport {
const _SnAbuseReport(
{required this.id,
required this.createdAt,
required this.updatedAt,
required this.deletedAt,
required this.resource,
required this.reason,
required this.status,
required this.accountId});
factory _SnAbuseReport.fromJson(Map<String, dynamic> json) =>
_$SnAbuseReportFromJson(json);
@override
final int id;
@override
final DateTime createdAt;
@override
final DateTime updatedAt;
@override
final DateTime? deletedAt;
@override
final String resource;
@override
final String reason;
@override
final String status;
@override
final int accountId;
/// Create a copy of SnAbuseReport
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$SnAbuseReportCopyWith<_SnAbuseReport> get copyWith =>
__$SnAbuseReportCopyWithImpl<_SnAbuseReport>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$SnAbuseReportToJson(
this,
);
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _SnAbuseReport &&
(identical(other.id, id) || other.id == id) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.deletedAt, deletedAt) ||
other.deletedAt == deletedAt) &&
(identical(other.resource, resource) ||
other.resource == resource) &&
(identical(other.reason, reason) || other.reason == reason) &&
(identical(other.status, status) || other.status == status) &&
(identical(other.accountId, accountId) ||
other.accountId == accountId));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id, createdAt, updatedAt,
deletedAt, resource, reason, status, accountId);
@override
String toString() {
return 'SnAbuseReport(id: $id, createdAt: $createdAt, updatedAt: $updatedAt, deletedAt: $deletedAt, resource: $resource, reason: $reason, status: $status, accountId: $accountId)';
}
}
/// @nodoc
abstract mixin class _$SnAbuseReportCopyWith<$Res>
implements $SnAbuseReportCopyWith<$Res> {
factory _$SnAbuseReportCopyWith(
_SnAbuseReport value, $Res Function(_SnAbuseReport) _then) =
__$SnAbuseReportCopyWithImpl;
@override
@useResult
$Res call(
{int id,
DateTime createdAt,
DateTime updatedAt,
DateTime? deletedAt,
String resource,
String reason,
String status,
int accountId});
}
/// @nodoc
class __$SnAbuseReportCopyWithImpl<$Res>
implements _$SnAbuseReportCopyWith<$Res> {
__$SnAbuseReportCopyWithImpl(this._self, this._then);
final _SnAbuseReport _self;
final $Res Function(_SnAbuseReport) _then;
/// Create a copy of SnAbuseReport
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({
Object? id = null,
Object? createdAt = null,
Object? updatedAt = null,
Object? deletedAt = freezed,
Object? resource = null,
Object? reason = null,
Object? status = null,
Object? accountId = null,
}) {
return _then(_SnAbuseReport(
id: null == id
? _self.id
: id // ignore: cast_nullable_to_non_nullable
as int,
createdAt: null == createdAt
? _self.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
updatedAt: null == updatedAt
? _self.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime,
deletedAt: freezed == deletedAt
? _self.deletedAt
: deletedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
resource: null == resource
? _self.resource
: resource // ignore: cast_nullable_to_non_nullable
as String,
reason: null == reason
? _self.reason
: reason // ignore: cast_nullable_to_non_nullable
as String,
status: null == status
? _self.status
: status // ignore: cast_nullable_to_non_nullable
as String,
accountId: null == accountId
? _self.accountId
: accountId // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
// dart format on