Skip to content

Commit

Permalink
gen
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon committed Nov 20, 2023
1 parent 5bbe71c commit f821ab8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 22 additions & 1 deletion lib/src/data/i_response.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ mixin _$IResponse {
bool get hasUnreadNotification => throw _privateConstructorUsedError;
bool get hasPendingReceivedFollowRequest =>
throw _privateConstructorUsedError;
int? get unreadNotificationsCount => throw _privateConstructorUsedError;
List<AnnouncementsResponse> get unreadAnnouncements =>
throw _privateConstructorUsedError;
@MuteWordsConverter()
Expand Down Expand Up @@ -176,6 +177,7 @@ abstract class $IResponseCopyWith<$Res> {
bool hasUnreadChannel,
bool hasUnreadNotification,
bool hasPendingReceivedFollowRequest,
int? unreadNotificationsCount,
List<AnnouncementsResponse> unreadAnnouncements,
@MuteWordsConverter() List<MuteWord> mutedWords,
List<String> mutedInstances,
Expand Down Expand Up @@ -262,6 +264,7 @@ class _$IResponseCopyWithImpl<$Res, $Val extends IResponse>
Object? hasUnreadChannel = null,
Object? hasUnreadNotification = null,
Object? hasPendingReceivedFollowRequest = null,
Object? unreadNotificationsCount = freezed,
Object? unreadAnnouncements = null,
Object? mutedWords = null,
Object? mutedInstances = null,
Expand Down Expand Up @@ -509,6 +512,10 @@ class _$IResponseCopyWithImpl<$Res, $Val extends IResponse>
? _value.hasPendingReceivedFollowRequest
: hasPendingReceivedFollowRequest // ignore: cast_nullable_to_non_nullable
as bool,
unreadNotificationsCount: freezed == unreadNotificationsCount
? _value.unreadNotificationsCount
: unreadNotificationsCount // ignore: cast_nullable_to_non_nullable
as int?,
unreadAnnouncements: null == unreadAnnouncements
? _value.unreadAnnouncements
: unreadAnnouncements // ignore: cast_nullable_to_non_nullable
Expand Down Expand Up @@ -625,6 +632,7 @@ abstract class _$$IResponseImplCopyWith<$Res>
bool hasUnreadChannel,
bool hasUnreadNotification,
bool hasPendingReceivedFollowRequest,
int? unreadNotificationsCount,
List<AnnouncementsResponse> unreadAnnouncements,
@MuteWordsConverter() List<MuteWord> mutedWords,
List<String> mutedInstances,
Expand Down Expand Up @@ -710,6 +718,7 @@ class __$$IResponseImplCopyWithImpl<$Res>
Object? hasUnreadChannel = null,
Object? hasUnreadNotification = null,
Object? hasPendingReceivedFollowRequest = null,
Object? unreadNotificationsCount = freezed,
Object? unreadAnnouncements = null,
Object? mutedWords = null,
Object? mutedInstances = null,
Expand Down Expand Up @@ -957,6 +966,10 @@ class __$$IResponseImplCopyWithImpl<$Res>
? _value.hasPendingReceivedFollowRequest
: hasPendingReceivedFollowRequest // ignore: cast_nullable_to_non_nullable
as bool,
unreadNotificationsCount: freezed == unreadNotificationsCount
? _value.unreadNotificationsCount
: unreadNotificationsCount // ignore: cast_nullable_to_non_nullable
as int?,
unreadAnnouncements: null == unreadAnnouncements
? _value._unreadAnnouncements
: unreadAnnouncements // ignore: cast_nullable_to_non_nullable
Expand Down Expand Up @@ -1060,6 +1073,7 @@ class _$IResponseImpl implements _IResponse {
required this.hasUnreadChannel,
required this.hasUnreadNotification,
required this.hasPendingReceivedFollowRequest,
this.unreadNotificationsCount,
final List<AnnouncementsResponse> unreadAnnouncements = const [],
@MuteWordsConverter() required final List<MuteWord> mutedWords,
required final List<String> mutedInstances,
Expand Down Expand Up @@ -1260,6 +1274,8 @@ class _$IResponseImpl implements _IResponse {
final bool hasUnreadNotification;
@override
final bool hasPendingReceivedFollowRequest;
@override
final int? unreadNotificationsCount;
final List<AnnouncementsResponse> _unreadAnnouncements;
@override
@JsonKey()
Expand Down Expand Up @@ -1327,7 +1343,7 @@ class _$IResponseImpl implements _IResponse {

@override
String toString() {
return 'IResponse(id: $id, name: $name, username: $username, host: $host, avatarUrl: $avatarUrl, avatarBlurhash: $avatarBlurhash, avatarDecorations: $avatarDecorations, isBot: $isBot, isCat: $isCat, emojis: $emojis, onlineStatus: $onlineStatus, badgeRoles: $badgeRoles, url: $url, uri: $uri, createdAt: $createdAt, updatedAt: $updatedAt, lastFetchedAt: $lastFetchedAt, bannerUrl: $bannerUrl, bannerBlurhash: $bannerBlurhash, isLocked: $isLocked, isSilenced: $isSilenced, isSuspended: $isSuspended, description: $description, location: $location, birthday: $birthday, lang: $lang, fields: $fields, followersCount: $followersCount, followingCount: $followingCount, notesCount: $notesCount, pinnedNoteIds: $pinnedNoteIds, pinnedPageId: $pinnedPageId, pinnedPage: $pinnedPage, publicReactions: $publicReactions, ffVisibility: $ffVisibility, twoFactorEnabled: $twoFactorEnabled, usePasswordLessLogin: $usePasswordLessLogin, securityKeys: $securityKeys, avatarId: $avatarId, bannerId: $bannerId, isModerator: $isModerator, isAdmin: $isAdmin, injectFeaturedNote: $injectFeaturedNote, receiveAnnouncementEmail: $receiveAnnouncementEmail, alwaysMarkNsfw: $alwaysMarkNsfw, autoSensitive: $autoSensitive, carefulBot: $carefulBot, autoAcceptFollowed: $autoAcceptFollowed, noCrawle: $noCrawle, isExplorable: $isExplorable, isDeleted: $isDeleted, hideOnlineStatus: $hideOnlineStatus, hasUnreadSpecifiedNotes: $hasUnreadSpecifiedNotes, hasUnreadMentions: $hasUnreadMentions, hasUnreadAnnouncement: $hasUnreadAnnouncement, hasUnreadAntenna: $hasUnreadAntenna, hasUnreadChannel: $hasUnreadChannel, hasUnreadNotification: $hasUnreadNotification, hasPendingReceivedFollowRequest: $hasPendingReceivedFollowRequest, unreadAnnouncements: $unreadAnnouncements, mutedWords: $mutedWords, mutedInstances: $mutedInstances, mutingNotificationTypes: $mutingNotificationTypes, notificationRecieveConfig: $notificationRecieveConfig, emailNotificationTypes: $emailNotificationTypes, achievements: $achievements, loggedInDays: $loggedInDays, policies: $policies)';
return 'IResponse(id: $id, name: $name, username: $username, host: $host, avatarUrl: $avatarUrl, avatarBlurhash: $avatarBlurhash, avatarDecorations: $avatarDecorations, isBot: $isBot, isCat: $isCat, emojis: $emojis, onlineStatus: $onlineStatus, badgeRoles: $badgeRoles, url: $url, uri: $uri, createdAt: $createdAt, updatedAt: $updatedAt, lastFetchedAt: $lastFetchedAt, bannerUrl: $bannerUrl, bannerBlurhash: $bannerBlurhash, isLocked: $isLocked, isSilenced: $isSilenced, isSuspended: $isSuspended, description: $description, location: $location, birthday: $birthday, lang: $lang, fields: $fields, followersCount: $followersCount, followingCount: $followingCount, notesCount: $notesCount, pinnedNoteIds: $pinnedNoteIds, pinnedPageId: $pinnedPageId, pinnedPage: $pinnedPage, publicReactions: $publicReactions, ffVisibility: $ffVisibility, twoFactorEnabled: $twoFactorEnabled, usePasswordLessLogin: $usePasswordLessLogin, securityKeys: $securityKeys, avatarId: $avatarId, bannerId: $bannerId, isModerator: $isModerator, isAdmin: $isAdmin, injectFeaturedNote: $injectFeaturedNote, receiveAnnouncementEmail: $receiveAnnouncementEmail, alwaysMarkNsfw: $alwaysMarkNsfw, autoSensitive: $autoSensitive, carefulBot: $carefulBot, autoAcceptFollowed: $autoAcceptFollowed, noCrawle: $noCrawle, isExplorable: $isExplorable, isDeleted: $isDeleted, hideOnlineStatus: $hideOnlineStatus, hasUnreadSpecifiedNotes: $hasUnreadSpecifiedNotes, hasUnreadMentions: $hasUnreadMentions, hasUnreadAnnouncement: $hasUnreadAnnouncement, hasUnreadAntenna: $hasUnreadAntenna, hasUnreadChannel: $hasUnreadChannel, hasUnreadNotification: $hasUnreadNotification, hasPendingReceivedFollowRequest: $hasPendingReceivedFollowRequest, unreadNotificationsCount: $unreadNotificationsCount, unreadAnnouncements: $unreadAnnouncements, mutedWords: $mutedWords, mutedInstances: $mutedInstances, mutingNotificationTypes: $mutingNotificationTypes, notificationRecieveConfig: $notificationRecieveConfig, emailNotificationTypes: $emailNotificationTypes, achievements: $achievements, loggedInDays: $loggedInDays, policies: $policies)';
}

@override
Expand Down Expand Up @@ -1436,6 +1452,7 @@ class _$IResponseImpl implements _IResponse {
(identical(other.hasUnreadChannel, hasUnreadChannel) || other.hasUnreadChannel == hasUnreadChannel) &&
(identical(other.hasUnreadNotification, hasUnreadNotification) || other.hasUnreadNotification == hasUnreadNotification) &&
(identical(other.hasPendingReceivedFollowRequest, hasPendingReceivedFollowRequest) || other.hasPendingReceivedFollowRequest == hasPendingReceivedFollowRequest) &&
(identical(other.unreadNotificationsCount, unreadNotificationsCount) || other.unreadNotificationsCount == unreadNotificationsCount) &&
const DeepCollectionEquality().equals(other._unreadAnnouncements, _unreadAnnouncements) &&
const DeepCollectionEquality().equals(other._mutedWords, _mutedWords) &&
const DeepCollectionEquality().equals(other._mutedInstances, _mutedInstances) &&
Expand Down Expand Up @@ -1510,6 +1527,7 @@ class _$IResponseImpl implements _IResponse {
hasUnreadChannel,
hasUnreadNotification,
hasPendingReceivedFollowRequest,
unreadNotificationsCount,
const DeepCollectionEquality().hash(_unreadAnnouncements),
const DeepCollectionEquality().hash(_mutedWords),
const DeepCollectionEquality().hash(_mutedInstances),
Expand Down Expand Up @@ -1596,6 +1614,7 @@ abstract class _IResponse implements IResponse {
required final bool hasUnreadChannel,
required final bool hasUnreadNotification,
required final bool hasPendingReceivedFollowRequest,
final int? unreadNotificationsCount,
final List<AnnouncementsResponse> unreadAnnouncements,
@MuteWordsConverter() required final List<MuteWord> mutedWords,
required final List<String> mutedInstances,
Expand Down Expand Up @@ -1738,6 +1757,8 @@ abstract class _IResponse implements IResponse {
@override
bool get hasPendingReceivedFollowRequest;
@override
int? get unreadNotificationsCount;
@override
List<AnnouncementsResponse> get unreadAnnouncements;
@override
@MuteWordsConverter()
Expand Down
2 changes: 2 additions & 0 deletions lib/src/data/i_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f821ab8

Please sign in to comment.