diff --git a/build.yaml b/build.yaml new file mode 100644 index 00000000..7cb5117d --- /dev/null +++ b/build.yaml @@ -0,0 +1,6 @@ +targets: + $default: + builders: + json_serializable: + options: + explicit_to_json: true diff --git a/lib/src/data/base/clip.g.dart b/lib/src/data/base/clip.g.dart index a9a59a41..e79c8ba1 100644 --- a/lib/src/data/base/clip.g.dart +++ b/lib/src/data/base/clip.g.dart @@ -27,7 +27,7 @@ Map _$$_ClipToJson(_$_Clip instance) => { 'lastClippedAt': const NullableDateTimeConverter().toJson(instance.lastClippedAt), 'userId': instance.userId, - 'user': instance.user, + 'user': instance.user.toJson(), 'name': instance.name, 'description': instance.description, 'isPublic': instance.isPublic, diff --git a/lib/src/data/base/community_channel.g.dart b/lib/src/data/base/community_channel.g.dart index 2a855237..b015b8e3 100644 --- a/lib/src/data/base/community_channel.g.dart +++ b/lib/src/data/base/community_channel.g.dart @@ -50,7 +50,7 @@ Map _$$_CommunityChannelToJson(_$_CommunityChannel instance) => 'isFollowing': instance.isFollowing, 'isFavorited': instance.isFavorited, 'hasUnreadNote': instance.hasUnreadNote, - 'pinnedNotes': instance.pinnedNotes, + 'pinnedNotes': instance.pinnedNotes?.map((e) => e.toJson()).toList(), 'allowRenoteToExternal': instance.allowRenoteToExternal, }; diff --git a/lib/src/data/base/drive_file.g.dart b/lib/src/data/base/drive_file.g.dart index 825db699..60c4d2e0 100644 --- a/lib/src/data/base/drive_file.g.dart +++ b/lib/src/data/base/drive_file.g.dart @@ -41,5 +41,5 @@ Map _$$_DriveFileToJson(_$_DriveFile instance) => 'comment': instance.comment, 'folderId': instance.folderId, 'userId': instance.userId, - 'user': instance.user, + 'user': instance.user?.toJson(), }; diff --git a/lib/src/data/base/flash.g.dart b/lib/src/data/base/flash.g.dart index f8d22200..3a958392 100644 --- a/lib/src/data/base/flash.g.dart +++ b/lib/src/data/base/flash.g.dart @@ -29,7 +29,7 @@ Map _$$_FlashToJson(_$_Flash instance) => { 'summary': instance.summary, 'script': instance.script, 'userId': instance.userId, - 'user': instance.user, + 'user': instance.user.toJson(), 'likedCount': instance.likedCount, 'isLiked': instance.isLiked, }; diff --git a/lib/src/data/base/follow_request.g.dart b/lib/src/data/base/follow_request.g.dart index 1d3842dd..4e7c89ad 100644 --- a/lib/src/data/base/follow_request.g.dart +++ b/lib/src/data/base/follow_request.g.dart @@ -16,6 +16,6 @@ _$_FollowRequest _$$_FollowRequestFromJson(Map json) => Map _$$_FollowRequestToJson(_$_FollowRequest instance) => { 'id': instance.id, - 'followee': instance.followee, - 'follower': instance.follower, + 'followee': instance.followee.toJson(), + 'follower': instance.follower.toJson(), }; diff --git a/lib/src/data/base/following.g.dart b/lib/src/data/base/following.g.dart index 24c58c5e..d5bce4d8 100644 --- a/lib/src/data/base/following.g.dart +++ b/lib/src/data/base/following.g.dart @@ -26,6 +26,6 @@ Map _$$_FollowingToJson(_$_Following instance) => 'createdAt': const DateTimeConverter().toJson(instance.createdAt), 'followeeId': instance.followeeId, 'followerId': instance.followerId, - 'followee': instance.followee, - 'follower': instance.follower, + 'followee': instance.followee?.toJson(), + 'follower': instance.follower?.toJson(), }; diff --git a/lib/src/data/base/note.g.dart b/lib/src/data/base/note.g.dart index ed0f6354..52822b27 100644 --- a/lib/src/data/base/note.g.dart +++ b/lib/src/data/base/note.g.dart @@ -75,7 +75,7 @@ Map _$$_NoteToJson(_$_Note instance) => { 'updatedAt': const NullableDateTimeConverter().toJson(instance.updatedAt), 'text': instance.text, 'cw': instance.cw, - 'user': instance.user, + 'user': instance.user.toJson(), 'userId': instance.userId, 'visibility': const NoteVisibilityJsonConverter().toJson(instance.visibility), @@ -86,22 +86,22 @@ Map _$$_NoteToJson(_$_Note instance) => { 'reactionEmojis': const EmojisConverter().toJson(instance.reactionEmojis), 'emojis': const EmojisConverter().toJson(instance.emojis), 'fileIds': instance.fileIds, - 'files': instance.files, + 'files': instance.files.map((e) => e.toJson()).toList(), 'replyId': instance.replyId, 'renoteId': instance.renoteId, 'channelId': instance.channelId, 'reactionAcceptance': _$ReactionAcceptanceEnumMap[instance.reactionAcceptance], - 'renote': instance.renote, - 'reply': instance.reply, + 'renote': instance.renote?.toJson(), + 'reply': instance.reply?.toJson(), 'visibleUserIds': instance.visibleUserIds, 'mentions': instance.mentions, 'myReaction': instance.myReaction, - 'channel': instance.channel, + 'channel': instance.channel?.toJson(), 'uri': const NullableUriConverter().toJson(instance.uri), 'url': const NullableUriConverter().toJson(instance.url), 'reactionAndUserPairCache': instance.reactionAndUserPairCache, - 'poll': instance.poll, + 'poll': instance.poll?.toJson(), 'clippedCount': instance.clippedCount, }; @@ -151,7 +151,7 @@ Map _$$_NotePollToJson(_$_NotePoll instance) => 'multiple': instance.multiple, 'expiresAt': _$JsonConverterToJson( instance.expiresAt, const DateTimeConverter().toJson), - 'choices': instance.choices, + 'choices': instance.choices.map((e) => e.toJson()).toList(), }; Json? _$JsonConverterToJson( diff --git a/lib/src/data/base/page.g.dart b/lib/src/data/base/page.g.dart index d5da29a2..f14e1b18 100644 --- a/lib/src/data/base/page.g.dart +++ b/lib/src/data/base/page.g.dart @@ -43,7 +43,7 @@ Map _$$_PageToJson(_$_Page instance) => { 'createdAt': const DateTimeConverter().toJson(instance.createdAt), 'updatedAt': const DateTimeConverter().toJson(instance.updatedAt), 'userId': instance.userId, - 'user': instance.user, + 'user': instance.user.toJson(), 'content': const ListPageContentConverter().toJson(instance.content), 'variables': instance.variables, 'title': instance.title, @@ -54,8 +54,8 @@ Map _$$_PageToJson(_$_Page instance) => { 'font': instance.font, 'script': instance.script, 'eyeCatchingImageId': instance.eyeCatchingImageId, - 'eyeCatchingImage': instance.eyeCatchingImage, - 'attachedFiles': instance.attachedFiles, + 'eyeCatchingImage': instance.eyeCatchingImage?.toJson(), + 'attachedFiles': instance.attachedFiles.map((e) => e.toJson()).toList(), 'likedCount': instance.likedCount, 'isLiked': instance.isLiked, }; diff --git a/lib/src/data/base/user.g.dart b/lib/src/data/base/user.g.dart index 1f7558b2..aba8d9ed 100644 --- a/lib/src/data/base/user.g.dart +++ b/lib/src/data/base/user.g.dart @@ -42,14 +42,15 @@ Map _$$_UserLiteToJson(_$_UserLite instance) => 'host': instance.host, 'avatarUrl': const UriConverter().toJson(instance.avatarUrl), 'avatarBlurhash': instance.avatarBlurhash, - 'avatarDecorations': instance.avatarDecorations, + 'avatarDecorations': + instance.avatarDecorations.map((e) => e.toJson()).toList(), 'isBot': instance.isBot, 'isCat': instance.isCat, - 'instance': instance.instance, + 'instance': instance.instance?.toJson(), 'emojis': const EmojisConverter().toJson(instance.emojis), 'onlineStatus': const OnlineStatusJsonConverter().toJson(instance.onlineStatus), - 'badgeRoles': instance.badgeRoles, + 'badgeRoles': instance.badgeRoles.map((e) => e.toJson()).toList(), }; _$_UserDetailedNotMe _$$_UserDetailedNotMeFromJson(Map json) => @@ -134,14 +135,15 @@ Map _$$_UserDetailedNotMeToJson( 'host': instance.host, 'avatarUrl': const UriConverter().toJson(instance.avatarUrl), 'avatarBlurhash': instance.avatarBlurhash, - 'avatarDecorations': instance.avatarDecorations, + 'avatarDecorations': + instance.avatarDecorations.map((e) => e.toJson()).toList(), 'isBot': instance.isBot, 'isCat': instance.isCat, - 'instance': instance.instance, + 'instance': instance.instance?.toJson(), 'emojis': const EmojisConverter().toJson(instance.emojis), 'onlineStatus': const OnlineStatusJsonConverter().toJson(instance.onlineStatus), - 'badgeRoles': instance.badgeRoles, + 'badgeRoles': instance.badgeRoles.map((e) => e.toJson()).toList(), 'url': const NullableUriConverter().toJson(instance.url), 'uri': const NullableUriConverter().toJson(instance.uri), 'createdAt': const DateTimeConverter().toJson(instance.createdAt), @@ -157,12 +159,12 @@ Map _$$_UserDetailedNotMeToJson( 'location': instance.location, 'birthday': const NullableDateTimeConverter().toJson(instance.birthday), 'lang': instance.lang, - 'fields': instance.fields, + 'fields': instance.fields?.map((e) => e.toJson()).toList(), 'followersCount': instance.followersCount, 'followingCount': instance.followingCount, 'notesCount': instance.notesCount, 'pinnedNoteIds': instance.pinnedNoteIds, - 'pinnedNotes': instance.pinnedNotes, + 'pinnedNotes': instance.pinnedNotes?.map((e) => e.toJson()).toList(), 'pinnedPageId': instance.pinnedPageId, 'pinnedPage': instance.pinnedPage, 'publicReactions': instance.publicReactions, @@ -170,7 +172,7 @@ Map _$$_UserDetailedNotMeToJson( 'twoFactorEnabled': instance.twoFactorEnabled, 'usePasswordLessLogin': instance.usePasswordLessLogin, 'securityKeys': instance.securityKeys, - 'roles': instance.roles, + 'roles': instance.roles?.map((e) => e.toJson()).toList(), 'memo': instance.memo, }; @@ -279,14 +281,15 @@ Map _$$_UserDetailedNotMeWithRelationsToJson( 'host': instance.host, 'avatarUrl': const UriConverter().toJson(instance.avatarUrl), 'avatarBlurhash': instance.avatarBlurhash, - 'avatarDecorations': instance.avatarDecorations, + 'avatarDecorations': + instance.avatarDecorations.map((e) => e.toJson()).toList(), 'isBot': instance.isBot, 'isCat': instance.isCat, - 'instance': instance.instance, + 'instance': instance.instance?.toJson(), 'emojis': const EmojisConverter().toJson(instance.emojis), 'onlineStatus': const OnlineStatusJsonConverter().toJson(instance.onlineStatus), - 'badgeRoles': instance.badgeRoles, + 'badgeRoles': instance.badgeRoles.map((e) => e.toJson()).toList(), 'url': const NullableUriConverter().toJson(instance.url), 'uri': const NullableUriConverter().toJson(instance.uri), 'createdAt': const DateTimeConverter().toJson(instance.createdAt), @@ -302,12 +305,12 @@ Map _$$_UserDetailedNotMeWithRelationsToJson( 'location': instance.location, 'birthday': const NullableDateTimeConverter().toJson(instance.birthday), 'lang': instance.lang, - 'fields': instance.fields, + 'fields': instance.fields?.map((e) => e.toJson()).toList(), 'followersCount': instance.followersCount, 'followingCount': instance.followingCount, 'notesCount': instance.notesCount, 'pinnedNoteIds': instance.pinnedNoteIds, - 'pinnedNotes': instance.pinnedNotes, + 'pinnedNotes': instance.pinnedNotes?.map((e) => e.toJson()).toList(), 'pinnedPageId': instance.pinnedPageId, 'pinnedPage': instance.pinnedPage, 'publicReactions': instance.publicReactions, @@ -315,7 +318,7 @@ Map _$$_UserDetailedNotMeWithRelationsToJson( 'twoFactorEnabled': instance.twoFactorEnabled, 'usePasswordLessLogin': instance.usePasswordLessLogin, 'securityKeys': instance.securityKeys, - 'roles': instance.roles, + 'roles': instance.roles?.map((e) => e.toJson()).toList(), 'memo': instance.memo, 'isFollowing': instance.isFollowing, 'isFollowed': instance.isFollowed, @@ -454,14 +457,15 @@ Map _$$_MeDetailedToJson(_$_MeDetailed instance) => 'host': instance.host, 'avatarUrl': const UriConverter().toJson(instance.avatarUrl), 'avatarBlurhash': instance.avatarBlurhash, - 'avatarDecorations': instance.avatarDecorations, + 'avatarDecorations': + instance.avatarDecorations.map((e) => e.toJson()).toList(), 'isBot': instance.isBot, 'isCat': instance.isCat, - 'instance': instance.instance, + 'instance': instance.instance?.toJson(), 'emojis': const EmojisConverter().toJson(instance.emojis), 'onlineStatus': const OnlineStatusJsonConverter().toJson(instance.onlineStatus), - 'badgeRoles': instance.badgeRoles, + 'badgeRoles': instance.badgeRoles.map((e) => e.toJson()).toList(), 'url': const NullableUriConverter().toJson(instance.url), 'uri': const NullableUriConverter().toJson(instance.uri), 'createdAt': const DateTimeConverter().toJson(instance.createdAt), @@ -477,12 +481,12 @@ Map _$$_MeDetailedToJson(_$_MeDetailed instance) => 'location': instance.location, 'birthday': const NullableDateTimeConverter().toJson(instance.birthday), 'lang': instance.lang, - 'fields': instance.fields, + 'fields': instance.fields?.map((e) => e.toJson()).toList(), 'followersCount': instance.followersCount, 'followingCount': instance.followingCount, 'notesCount': instance.notesCount, 'pinnedNoteIds': instance.pinnedNoteIds, - 'pinnedNotes': instance.pinnedNotes, + 'pinnedNotes': instance.pinnedNotes?.map((e) => e.toJson()).toList(), 'pinnedPageId': instance.pinnedPageId, 'pinnedPage': instance.pinnedPage, 'publicReactions': instance.publicReactions, @@ -490,7 +494,7 @@ Map _$$_MeDetailedToJson(_$_MeDetailed instance) => 'twoFactorEnabled': instance.twoFactorEnabled, 'usePasswordLessLogin': instance.usePasswordLessLogin, 'securityKeys': instance.securityKeys, - 'roles': instance.roles, + 'roles': instance.roles?.map((e) => e.toJson()).toList(), 'memo': instance.memo, 'avatarId': instance.avatarId, 'bannerId': instance.bannerId, @@ -514,16 +518,17 @@ Map _$$_MeDetailedToJson(_$_MeDetailed instance) => 'hasUnreadNotification': instance.hasUnreadNotification, 'hasPendingReceivedFollowRequest': instance.hasPendingReceivedFollowRequest, - 'unreadAnnouncements': instance.unreadAnnouncements, + 'unreadAnnouncements': + instance.unreadAnnouncements.map((e) => e.toJson()).toList(), 'mutedWords': instance.mutedWords.map(const MuteWordsConverter().toJson).toList(), 'mutedInstances': instance.mutedInstances, 'mutingNotificationTypes': instance.mutingNotificationTypes, 'notificationRecieveConfig': instance.notificationRecieveConfig, 'emailNotificationTypes': instance.emailNotificationTypes, - 'achievements': instance.achievements, + 'achievements': instance.achievements.map((e) => e.toJson()).toList(), 'loggedInDays': instance.loggedInDays, - 'policies': instance.policies, + 'policies': instance.policies.toJson(), }; _$_UserAvatarDecoration _$$_UserAvatarDecorationFromJson( diff --git a/lib/src/data/emojis_response.g.dart b/lib/src/data/emojis_response.g.dart index ca20bc37..5ef499f4 100644 --- a/lib/src/data/emojis_response.g.dart +++ b/lib/src/data/emojis_response.g.dart @@ -15,7 +15,7 @@ _$_EmojisResponse _$$_EmojisResponseFromJson(Map json) => Map _$$_EmojisResponseToJson(_$_EmojisResponse instance) => { - 'emojis': instance.emojis, + 'emojis': instance.emojis.map((e) => e.toJson()).toList(), }; _$_Emoji _$$_EmojiFromJson(Map json) => _$_Emoji( diff --git a/lib/src/data/i/i_favorites_response.g.dart b/lib/src/data/i/i_favorites_response.g.dart index 28050b7a..244ffe48 100644 --- a/lib/src/data/i/i_favorites_response.g.dart +++ b/lib/src/data/i/i_favorites_response.g.dart @@ -22,5 +22,5 @@ Map _$$_IFavoritesResponseToJson( 'id': instance.id, 'createdAt': const DateTimeConverter().toJson(instance.createdAt), 'noteId': instance.noteId, - 'note': instance.note, + 'note': instance.note.toJson(), }; diff --git a/lib/src/data/i/i_notifications_response.g.dart b/lib/src/data/i/i_notifications_response.g.dart index 56e36281..3cb6519c 100644 --- a/lib/src/data/i/i_notifications_response.g.dart +++ b/lib/src/data/i/i_notifications_response.g.dart @@ -48,8 +48,8 @@ Map _$$_INotificationsResponseToJson( 'customIcon': const NullableUriConverter().toJson(instance.customIcon), 'appAccessTokenId': instance.appAccessTokenId, 'userId': instance.userId, - 'user': instance.user, - 'note': instance.note, + 'user': instance.user?.toJson(), + 'note': instance.note?.toJson(), }; const _$NotificationTypeEnumMap = { diff --git a/lib/src/data/i/i_update_request.g.dart b/lib/src/data/i/i_update_request.g.dart index 5b47c6bc..432740ef 100644 --- a/lib/src/data/i/i_update_request.g.dart +++ b/lib/src/data/i/i_update_request.g.dart @@ -61,7 +61,7 @@ Map _$$_IUpdateRequestToJson(_$_IUpdateRequest instance) => 'lang': instance.lang, 'avatarId': instance.avatarId, 'bannerId': instance.bannerId, - 'fields': instance.fields, + 'fields': instance.fields?.map((e) => e.toJson()).toList(), 'isLocked': instance.isLocked, 'isExplorable': instance.isExplorable, 'hideOnlineStatus': instance.hideOnlineStatus, diff --git a/lib/src/data/join_misskey_instances.g.dart b/lib/src/data/join_misskey_instances.g.dart index aeafa0a2..8ff94fd2 100644 --- a/lib/src/data/join_misskey_instances.g.dart +++ b/lib/src/data/join_misskey_instances.g.dart @@ -21,8 +21,8 @@ Map _$$_JoinMisskeyInstancesToJson( _$_JoinMisskeyInstances instance) => { 'date': instance.date.toIso8601String(), - 'stats': instance.stats, - 'instancesInfos': instance.instancesInfos, + 'stats': instance.stats.toJson(), + 'instancesInfos': instance.instancesInfos.map((e) => e.toJson()).toList(), }; _$_JoinMisskeyStats _$$_JoinMisskeyStatsFromJson(Map json) => @@ -71,7 +71,7 @@ Map _$$_JoinMisskeyInstanceInfoToJson( 'banner': instance.banner, 'background': instance.background, 'icon': instance.icon, - 'nodeinfo': instance.nodeInfo, + 'nodeinfo': instance.nodeInfo?.toJson(), }; _$_JoinMisskeyNodeInfo _$$_JoinMisskeyNodeInfoFromJson( @@ -92,8 +92,8 @@ Map _$$_JoinMisskeyNodeInfoToJson( _$_JoinMisskeyNodeInfo instance) => { 'version': instance.version, - 'software': instance.software, - 'usage': instance.usage, + 'software': instance.software?.toJson(), + 'usage': instance.usage?.toJson(), }; _$_JoinMisskeyNodeInfoSoftware _$$_JoinMisskeyNodeInfoSoftwareFromJson( @@ -124,7 +124,7 @@ _$_JoinMisskeyNodeInfoUsage _$$_JoinMisskeyNodeInfoUsageFromJson( Map _$$_JoinMisskeyNodeInfoUsageToJson( _$_JoinMisskeyNodeInfoUsage instance) => { - 'users': instance.users, + 'users': instance.users?.toJson(), 'localPosts': instance.localPosts, 'localComments': instance.localComments, }; diff --git a/lib/src/data/meta_response.g.dart b/lib/src/data/meta_response.g.dart index 5da6bb11..761de88c 100644 --- a/lib/src/data/meta_response.g.dart +++ b/lib/src/data/meta_response.g.dart @@ -95,7 +95,7 @@ Map _$$_MetaResponseToJson(_$_MetaResponse instance) => 'logoImageUrl': const NullableUriConverter().toJson(instance.logoImageUrl), 'maxNoteTextLength': instance.maxNoteTextLength, - 'ads': instance.ads, + 'ads': instance.ads.map((e) => e.toJson()).toList(), 'requireSetup': instance.requireSetup, 'enableEmail': instance.enableEmail, 'enableServiceWorker': instance.enableServiceWorker, @@ -103,7 +103,7 @@ Map _$$_MetaResponseToJson(_$_MetaResponse instance) => 'proxyAccountName': instance.proxyAccountName, 'mediaProxy': instance.mediaProxy, 'cacheRemoteFiles': instance.cacheRemoteFiles, - 'features': instance.features, + 'features': instance.features?.toJson(), }; Value? _$JsonConverterFromJson( diff --git a/lib/src/data/notes/notes_create_request.g.dart b/lib/src/data/notes/notes_create_request.g.dart index 3135ec67..4cdd8c79 100644 --- a/lib/src/data/notes/notes_create_request.g.dart +++ b/lib/src/data/notes/notes_create_request.g.dart @@ -55,7 +55,7 @@ Map _$$_NotesCreateRequestToJson( 'replyId': instance.replyId, 'renoteId': instance.renoteId, 'channelId': instance.channelId, - 'poll': instance.poll, + 'poll': instance.poll?.toJson(), }; Value? _$JsonConverterFromJson( diff --git a/lib/src/data/notes/notes_reactions_response.g.dart b/lib/src/data/notes/notes_reactions_response.g.dart index d029e19a..53d46a35 100644 --- a/lib/src/data/notes/notes_reactions_response.g.dart +++ b/lib/src/data/notes/notes_reactions_response.g.dart @@ -21,6 +21,6 @@ Map _$$_NotesReactionsResponseToJson( { 'id': instance.id, 'createdAt': const DateTimeConverter().toJson(instance.createdAt), - 'user': instance.user, + 'user': instance.user.toJson(), 'type': instance.type, }; diff --git a/lib/src/data/roles/roles_users_response.g.dart b/lib/src/data/roles/roles_users_response.g.dart index e27e4c15..c1a1cf48 100644 --- a/lib/src/data/roles/roles_users_response.g.dart +++ b/lib/src/data/roles/roles_users_response.g.dart @@ -17,5 +17,5 @@ Map _$$_RolesUsersResponseToJson( _$_RolesUsersResponse instance) => { 'id': instance.id, - 'user': instance.user, + 'user': instance.user.toJson(), }; diff --git a/lib/src/data/server_info_response.g.dart b/lib/src/data/server_info_response.g.dart index 94139474..651374cf 100644 --- a/lib/src/data/server_info_response.g.dart +++ b/lib/src/data/server_info_response.g.dart @@ -19,9 +19,9 @@ Map _$$_ServerInfoResponseToJson( _$_ServerInfoResponse instance) => { 'machine': instance.machine, - 'cpu': instance.cpu, - 'mem': instance.mem, - 'fs': instance.fs, + 'cpu': instance.cpu.toJson(), + 'mem': instance.mem.toJson(), + 'fs': instance.fs.toJson(), }; _$_ServerInfoCpu _$$_ServerInfoCpuFromJson(Map json) => diff --git a/lib/src/data/streaming/queue_stats_log_response.g.dart b/lib/src/data/streaming/queue_stats_log_response.g.dart index a0f5fc0c..26a31daa 100644 --- a/lib/src/data/streaming/queue_stats_log_response.g.dart +++ b/lib/src/data/streaming/queue_stats_log_response.g.dart @@ -18,8 +18,8 @@ _$_QueueStatsLogResponse _$$_QueueStatsLogResponseFromJson( Map _$$_QueueStatsLogResponseToJson( _$_QueueStatsLogResponse instance) => { - 'inbox': instance.inbox, - 'deliver': instance.deliver, + 'inbox': instance.inbox.toJson(), + 'deliver': instance.deliver.toJson(), }; _$_QueueStatsLogResponseData _$$_QueueStatsLogResponseDataFromJson( diff --git a/lib/src/data/streaming/stats_log_response.g.dart b/lib/src/data/streaming/stats_log_response.g.dart index 6429e83e..31e93972 100644 --- a/lib/src/data/streaming/stats_log_response.g.dart +++ b/lib/src/data/streaming/stats_log_response.g.dart @@ -17,9 +17,9 @@ _$_StatsLogResponse _$$_StatsLogResponseFromJson(Map json) => Map _$$_StatsLogResponseToJson(_$_StatsLogResponse instance) => { 'cpu': instance.cpu, - 'fs': instance.fs, - 'mem': instance.mem, - 'net': instance.net, + 'fs': instance.fs.toJson(), + 'mem': instance.mem.toJson(), + 'net': instance.net.toJson(), }; _$_StatsLogFs _$$_StatsLogFsFromJson(Map json) => diff --git a/lib/src/data/streaming/streaming_request.g.dart b/lib/src/data/streaming/streaming_request.g.dart index ec9746ee..bbb9c534 100644 --- a/lib/src/data/streaming/streaming_request.g.dart +++ b/lib/src/data/streaming/streaming_request.g.dart @@ -15,7 +15,7 @@ _$_StreamingRequest _$$_StreamingRequestFromJson(Map json) => Map _$$_StreamingRequestToJson(_$_StreamingRequest instance) => { 'type': _$StreamingRequestTypeEnumMap[instance.type]!, - 'body': instance.body, + 'body': instance.body.toJson(), }; const _$StreamingRequestTypeEnumMap = { diff --git a/lib/src/data/streaming/timeline_reacted.g.dart b/lib/src/data/streaming/timeline_reacted.g.dart index 2a17e13d..09ca027e 100644 --- a/lib/src/data/streaming/timeline_reacted.g.dart +++ b/lib/src/data/streaming/timeline_reacted.g.dart @@ -19,7 +19,7 @@ _$_TimelineReacted _$$_TimelineReactedFromJson(Map json) => Map _$$_TimelineReactedToJson(_$_TimelineReacted instance) => { 'reaction': instance.reaction, - 'emoji': instance.emoji, + 'emoji': instance.emoji?.toJson(), 'userId': instance.userId, }; diff --git a/lib/src/data/users/users_reactions_response.g.dart b/lib/src/data/users/users_reactions_response.g.dart index fb783194..14a91a73 100644 --- a/lib/src/data/users/users_reactions_response.g.dart +++ b/lib/src/data/users/users_reactions_response.g.dart @@ -22,7 +22,7 @@ Map _$$_UsersReactionsResponseToJson( { 'id': instance.id, 'createdAt': const DateTimeConverter().toJson(instance.createdAt), - 'user': instance.user, + 'user': instance.user.toJson(), 'type': instance.type, - 'note': instance.note, + 'note': instance.note.toJson(), };