diff --git a/packages/neon/integration_test/screenshot_test.dart b/packages/neon/integration_test/screenshot_test.dart index caa6ca32..e585df17 100644 --- a/packages/neon/integration_test/screenshot_test.dart +++ b/packages/neon/integration_test/screenshot_test.dart @@ -311,7 +311,7 @@ Future main() async { final folder = await account.client.news.createFolder(name: 'test'); await account.client.news.addFeed( url: nasaFeedURL, - folderId: folder.folders!.single.id, + folderId: folder.folders.single.id, ); await pumpAppPage( diff --git a/packages/neon/lib/src/app.dart b/packages/neon/lib/src/app.dart index ffcfea68..c277b034 100644 --- a/packages/neon/lib/src/app.dart +++ b/packages/neon/lib/src/app.dart @@ -23,7 +23,7 @@ class NeonApp extends StatefulWidget { // ignore: prefer_mixin class _NeonAppState extends State with WidgetsBindingObserver { final _navigatorKey = GlobalKey(); - CoreServerCapabilitiesOcsDataCapabilitiesTheming? _userTheme; + CoreServerCapabilities_Ocs_Data_Capabilities_Theming? _userTheme; final _platformBrightness = BehaviorSubject.seeded( WidgetsBinding.instance.window.platformBrightness, ); diff --git a/packages/neon/lib/src/apps/news/blocs/articles.dart b/packages/neon/lib/src/apps/news/blocs/articles.dart index 3979ccdf..ca5c78f2 100644 --- a/packages/neon/lib/src/apps/news/blocs/articles.dart +++ b/packages/neon/lib/src/apps/news/blocs/articles.dart @@ -70,7 +70,7 @@ class NewsArticlesBloc extends $NewsArticlesBloc { _$markArticleAsReadEvent.listen((final article) { _wrapArticleAction((final client) async { - await client.news.markArticleAsRead(itemId: article.id!); + await client.news.markArticleAsRead(itemId: article.id); // TODO //_articleUpdateController.add(article..unread = false); }); @@ -78,7 +78,7 @@ class NewsArticlesBloc extends $NewsArticlesBloc { _$markArticleAsUnreadEvent.listen((final article) { _wrapArticleAction((final client) async { - await client.news.markArticleAsUnread(itemId: article.id!); + await client.news.markArticleAsUnread(itemId: article.id); // TODO //_articleUpdateController.add(article..unread = true); }); @@ -87,7 +87,7 @@ class NewsArticlesBloc extends $NewsArticlesBloc { _$starArticleEvent.listen((final article) { _wrapArticleAction((final client) async { await client.news.starArticle( - itemId: article.id!, + itemId: article.id, ); // TODO //_articleUpdateController.add(article..starred = true); @@ -97,7 +97,7 @@ class NewsArticlesBloc extends $NewsArticlesBloc { _$unstarArticleEvent.listen((final article) { _wrapArticleAction((final client) async { await client.news.unstarArticle( - itemId: article.id!, + itemId: article.id, ); // TODO //_articleUpdateController.add(article..starred = false); @@ -165,7 +165,7 @@ class NewsArticlesBloc extends $NewsArticlesBloc { id: id ?? 0, getRead: getRead ?? true ? 1 : 0, ), - (final response) => response.items!, + (final response) => response.items, previousData: _articlesSubject.valueOrNull?.data, ) .listen(_articlesSubject.add); diff --git a/packages/neon/lib/src/apps/news/blocs/news.dart b/packages/neon/lib/src/apps/news/blocs/news.dart index 65ff0a9b..bde4d81a 100644 --- a/packages/neon/lib/src/apps/news/blocs/news.dart +++ b/packages/neon/lib/src/apps/news/blocs/news.dart @@ -140,7 +140,7 @@ class NewsBloc extends $NewsBloc { if (result.data != null) { final type = mainArticlesBloc.filterType.valueOrNull; _unreadCounterSubject - .add(result.data!.where((final a) => type == FilterType.starred ? a.starred! : a.unread!).length); + .add(result.data!.where((final a) => type == FilterType.starred ? a.starred : a.unread).length); } }); @@ -186,7 +186,7 @@ class NewsBloc extends $NewsBloc { client.id, 'news-folders', () async => client.news.listFolders(), - (final response) => response.folders!, + (final response) => response.folders, previousData: _foldersSubject.valueOrNull?.data, ) .listen(_foldersSubject.add); @@ -202,7 +202,7 @@ class NewsBloc extends $NewsBloc { if (response.newestItemId != null) { _newestItemId = response.newestItemId!; } - return response.feeds!; + return response.feeds; }, previousData: _feedsSubject.valueOrNull?.data, ).listen(_feedsSubject.add); diff --git a/packages/neon/lib/src/apps/news/dialogs/feed_show_url.dart b/packages/neon/lib/src/apps/news/dialogs/feed_show_url.dart index 27483d4f..8418b44f 100644 --- a/packages/neon/lib/src/apps/news/dialogs/feed_show_url.dart +++ b/packages/neon/lib/src/apps/news/dialogs/feed_show_url.dart @@ -15,13 +15,13 @@ class NewsFeedShowURLDialog extends StatefulWidget { class _NewsFeedShowURLDialogState extends State { @override Widget build(final BuildContext context) => AlertDialog( - title: Text(widget.feed.url!), + title: Text(widget.feed.url), actions: [ ElevatedButton( onPressed: () async { await Clipboard.setData( ClipboardData( - text: widget.feed.url!, + text: widget.feed.url, ), ); if (mounted) { diff --git a/packages/neon/lib/src/apps/news/pages/article.dart b/packages/neon/lib/src/apps/news/pages/article.dart index 2e84047d..c2a9aec5 100644 --- a/packages/neon/lib/src/apps/news/pages/article.dart +++ b/packages/neon/lib/src/apps/news/pages/article.dart @@ -56,12 +56,12 @@ class _NewsArticlePageState extends State { } void _startMarkAsReadTimer() { - if (article.unread!) { + if (article.unread) { if (widget.bloc.newsBloc.options.articleDisableMarkAsReadTimeoutOption.value) { widget.bloc.markArticleAsRead(article); } else { _markAsReadTimer = Timer(const Duration(seconds: 3), () { - if (article.unread!) { + if (article.unread) { widget.bloc.markArticleAsRead(article); } }); @@ -81,7 +81,7 @@ class _NewsArticlePageState extends State { return (await _webviewController!.currentUrl())!; } - return article.url!; + return article.url; } @override @@ -103,23 +103,23 @@ class _NewsArticlePageState extends State { actions: [ IconButton( onPressed: () async { - if (article.starred!) { + if (article.starred) { widget.bloc.unstarArticle(article); } else { widget.bloc.starArticle(article); } }, - icon: Icon(article.starred! ? Icons.star : Icons.star_outline), + icon: Icon(article.starred ? Icons.star : Icons.star_outline), ), IconButton( onPressed: () async { - if (article.unread!) { + if (article.unread) { widget.bloc.markArticleAsRead(article); } else { widget.bloc.markArticleAsUnread(article); } }, - icon: Icon(article.unread! ? MdiIcons.email : MdiIcons.emailMarkAsUnread), + icon: Icon(article.unread ? MdiIcons.email : MdiIcons.emailMarkAsUnread), ), IconButton( onPressed: () async { @@ -147,7 +147,7 @@ class _NewsArticlePageState extends State { javascriptMode: JavascriptMode.unrestricted, onWebViewCreated: (final controller) async { _webviewController = controller; - await controller.loadUrl(article.url!); + await controller.loadUrl(article.url); }, onPageStarted: (final _) { setState(() { diff --git a/packages/neon/lib/src/apps/news/pages/feed.dart b/packages/neon/lib/src/apps/news/pages/feed.dart index 37328bde..d53ecd8c 100644 --- a/packages/neon/lib/src/apps/news/pages/feed.dart +++ b/packages/neon/lib/src/apps/news/pages/feed.dart @@ -14,7 +14,7 @@ class NewsFeedPage extends StatelessWidget { Widget build(final BuildContext context) => Scaffold( resizeToAvoidBottomInset: false, appBar: AppBar( - title: Text(feed.title!), + title: Text(feed.title), ), body: NewsArticlesView( bloc: NewsArticlesBloc( diff --git a/packages/neon/lib/src/apps/news/pages/folder.dart b/packages/neon/lib/src/apps/news/pages/folder.dart index 7aa29c68..576626ab 100644 --- a/packages/neon/lib/src/apps/news/pages/folder.dart +++ b/packages/neon/lib/src/apps/news/pages/folder.dart @@ -14,7 +14,7 @@ class NewsFolderPage extends StatelessWidget { Widget build(final BuildContext context) => Scaffold( resizeToAvoidBottomInset: false, appBar: AppBar( - title: Text(folder.name!), + title: Text(folder.name), ), body: NewsFolderView( bloc: bloc, diff --git a/packages/neon/lib/src/apps/news/sort/articles.dart b/packages/neon/lib/src/apps/news/sort/articles.dart index 1c6572d4..07315dc3 100644 --- a/packages/neon/lib/src/apps/news/sort/articles.dart +++ b/packages/neon/lib/src/apps/news/sort/articles.dart @@ -2,9 +2,9 @@ part of '../app.dart'; final articlesSortBox = SortBox( { - ArticlesSortProperty.publishDate: (final article) => article.pubDate!, - ArticlesSortProperty.alphabetical: (final article) => article.title!.toLowerCase(), - ArticlesSortProperty.byFeed: (final article) => article.feedId!, + ArticlesSortProperty.publishDate: (final article) => article.pubDate, + ArticlesSortProperty.alphabetical: (final article) => article.title.toLowerCase(), + ArticlesSortProperty.byFeed: (final article) => article.feedId, }, { ArticlesSortProperty.alphabetical: Box(ArticlesSortProperty.publishDate, SortBoxOrder.descending), diff --git a/packages/neon/lib/src/apps/news/sort/feeds.dart b/packages/neon/lib/src/apps/news/sort/feeds.dart index b9c1d2d9..69e0d402 100644 --- a/packages/neon/lib/src/apps/news/sort/feeds.dart +++ b/packages/neon/lib/src/apps/news/sort/feeds.dart @@ -2,8 +2,8 @@ part of '../app.dart'; final feedsSortBox = SortBox( { - FeedsSortProperty.alphabetical: (final feed) => feed.title!.toLowerCase(), - FeedsSortProperty.unreadCount: (final feed) => feed.unreadCount!, + FeedsSortProperty.alphabetical: (final feed) => feed.title.toLowerCase(), + FeedsSortProperty.unreadCount: (final feed) => feed.unreadCount ?? 0, }, { FeedsSortProperty.alphabetical: Box(FeedsSortProperty.unreadCount, SortBoxOrder.descending), diff --git a/packages/neon/lib/src/apps/news/sort/folders.dart b/packages/neon/lib/src/apps/news/sort/folders.dart index 7eec2e42..237f0169 100644 --- a/packages/neon/lib/src/apps/news/sort/folders.dart +++ b/packages/neon/lib/src/apps/news/sort/folders.dart @@ -2,7 +2,7 @@ part of '../app.dart'; final foldersSortBox = SortBox( { - FoldersSortProperty.alphabetical: (final folderFeedsWrapper) => folderFeedsWrapper.folder.name!.toLowerCase(), + FoldersSortProperty.alphabetical: (final folderFeedsWrapper) => folderFeedsWrapper.folder.name.toLowerCase(), FoldersSortProperty.unreadCount: (final folderFeedsWrapper) => feedsUnreadCountSum(folderFeedsWrapper.feeds), }, { diff --git a/packages/neon/lib/src/apps/news/widgets/articles_view.dart b/packages/neon/lib/src/apps/news/widgets/articles_view.dart index 27466c16..f15a990e 100644 --- a/packages/neon/lib/src/apps/news/widgets/articles_view.dart +++ b/packages/neon/lib/src/apps/news/widgets/articles_view.dart @@ -139,8 +139,8 @@ class _NewsArticlesViewState extends State { children: [ Flexible( child: Text( - article.title!, - style: article.unread! + article.title, + style: article.unread ? null : Theme.of(context).textTheme.subtitle1!.copyWith(color: Theme.of(context).disabledColor), ), @@ -170,7 +170,7 @@ class _NewsArticlesViewState extends State { ), ), RelativeTime( - date: DateTime.fromMillisecondsSinceEpoch(article.pubDate! * 1000), + date: DateTime.fromMillisecondsSinceEpoch(article.pubDate * 1000), style: const TextStyle( fontWeight: FontWeight.w300, fontSize: 12, @@ -181,7 +181,7 @@ class _NewsArticlesViewState extends State { ), Flexible( child: Text( - feed.title!, + feed.title, maxLines: 1, overflow: TextOverflow.ellipsis, ), @@ -190,11 +190,11 @@ class _NewsArticlesViewState extends State { ), trailing: IconButton( icon: Icon( - article.starred! ? Icons.star : Icons.star_outline, + article.starred ? Icons.star : Icons.star_outline, color: Theme.of(context).colorScheme.primary, ), onPressed: () { - if (article.starred!) { + if (article.starred) { bloc.unstarArticle(article); } else { bloc.starArticle(article); @@ -202,7 +202,7 @@ class _NewsArticlesViewState extends State { }, ), onLongPress: () { - if (article.unread!) { + if (article.unread) { bloc.markArticleAsRead(article); } else { bloc.markArticleAsUnread(article); @@ -212,7 +212,7 @@ class _NewsArticlesViewState extends State { final viewType = bloc.newsBloc.options.articleViewTypeOption.value; String? bodyData; try { - bodyData = _fixArticleBody(article.body!); + bodyData = _fixArticleBody(article.body); } catch (e, s) { debugPrint(e.toString()); debugPrint(s.toString()); @@ -241,11 +241,11 @@ class _NewsArticlesViewState extends State { ), ); } else { - if (article.unread!) { + if (article.unread) { bloc.markArticleAsRead(article); } await launchUrlString( - article.url!, + article.url, mode: LaunchMode.externalApplication, ); } diff --git a/packages/neon/lib/src/apps/news/widgets/feed_icon.dart b/packages/neon/lib/src/apps/news/widgets/feed_icon.dart index 86127371..3ccfee36 100644 --- a/packages/neon/lib/src/apps/news/widgets/feed_icon.dart +++ b/packages/neon/lib/src/apps/news/widgets/feed_icon.dart @@ -18,9 +18,9 @@ class NewsFeedIcon extends StatelessWidget { width: size, height: size, borderRadius: borderRadius, - child: feed.faviconLink != null && feed.faviconLink != '' + child: feed.faviconLink != '' ? CachedURLImage( - url: feed.faviconLink!, + url: feed.faviconLink, height: size, width: size, iconColor: Theme.of(context).colorScheme.primary, diff --git a/packages/neon/lib/src/apps/news/widgets/feeds_view.dart b/packages/neon/lib/src/apps/news/widgets/feeds_view.dart index 40381898..b76c9d62 100644 --- a/packages/neon/lib/src/apps/news/widgets/feeds_view.dart +++ b/packages/neon/lib/src/apps/news/widgets/feeds_view.dart @@ -89,7 +89,7 @@ class NewsFeedsView extends StatelessWidget { ) => ListTile( title: Text( - feed.title!, + feed.title, style: feed.unreadCount! == 0 ? Theme.of(context).textTheme.subtitle1!.copyWith(color: Theme.of(context).disabledColor) : null, @@ -104,7 +104,7 @@ class NewsFeedsView extends StatelessWidget { trailing: Row( mainAxisSize: MainAxisSize.min, children: [ - if (feed.updateErrorCount! > 0) ...[ + if (feed.updateErrorCount > 0) ...[ IconButton( iconSize: 30, onPressed: () async { @@ -116,7 +116,7 @@ class NewsFeedsView extends StatelessWidget { ); }, icon: Text( - feed.updateErrorCount!.toString(), + feed.updateErrorCount.toString(), style: const TextStyle( color: Colors.red, ), @@ -157,19 +157,19 @@ class NewsFeedsView extends StatelessWidget { case NewsFeedAction.delete: if (await showConfirmationDialog( context, - AppLocalizations.of(context).newsRemoveFeedConfirm(feed.title!), + AppLocalizations.of(context).newsRemoveFeedConfirm(feed.title), )) { - bloc.removeFeed(feed.id!); + bloc.removeFeed(feed.id); } break; case NewsFeedAction.rename: final result = await showRenameDialog( context: context, title: AppLocalizations.of(context).newsRenameFeed, - value: feed.title!, + value: feed.title, ); if (result != null) { - bloc.renameFeed(feed.id!, result); + bloc.renameFeed(feed.id, result); } break; case NewsFeedAction.move: @@ -181,7 +181,7 @@ class NewsFeedsView extends StatelessWidget { ), ); if (result != null) { - bloc.moveFeed(feed.id!, result[0]); + bloc.moveFeed(feed.id, result[0]); } break; } @@ -191,7 +191,7 @@ class NewsFeedsView extends StatelessWidget { ), onLongPress: () { if (feed.unreadCount! > 0) { - bloc.markFeedAsRead(feed.id!); + bloc.markFeedAsRead(feed.id); } }, onTap: () async { diff --git a/packages/neon/lib/src/apps/news/widgets/folder_select.dart b/packages/neon/lib/src/apps/news/widgets/folder_select.dart index 947a36c4..74cd3a7d 100644 --- a/packages/neon/lib/src/apps/news/widgets/folder_select.dart +++ b/packages/neon/lib/src/apps/news/widgets/folder_select.dart @@ -25,7 +25,7 @@ class NewsFolderSelect extends StatelessWidget { ...folders.map( (final f) => DropdownMenuItem( value: f, - child: Text(f.name!), + child: Text(f.name), ), ), ], diff --git a/packages/neon/lib/src/apps/news/widgets/folders_view.dart b/packages/neon/lib/src/apps/news/widgets/folders_view.dart index 838024e3..10d4005d 100644 --- a/packages/neon/lib/src/apps/news/widgets/folders_view.dart +++ b/packages/neon/lib/src/apps/news/widgets/folders_view.dart @@ -87,7 +87,7 @@ class NewsFoldersView extends StatelessWidget { final unreadCount = feedsUnreadCountSum(folderFeedsWrapper.feeds); return ListTile( title: Text( - folderFeedsWrapper.folder.name!, + folderFeedsWrapper.folder.name, style: unreadCount == 0 ? Theme.of(context).textTheme.subtitle1!.copyWith(color: Theme.of(context).disabledColor) : null, @@ -129,19 +129,19 @@ class NewsFoldersView extends StatelessWidget { case NewsFolderAction.delete: if (await showConfirmationDialog( context, - AppLocalizations.of(context).newsDeleteFolderConfirm(folderFeedsWrapper.folder.name!), + AppLocalizations.of(context).newsDeleteFolderConfirm(folderFeedsWrapper.folder.name), )) { - bloc.deleteFolder(folderFeedsWrapper.folder.id!); + bloc.deleteFolder(folderFeedsWrapper.folder.id); } break; case NewsFolderAction.rename: final result = await showRenameDialog( context: context, title: AppLocalizations.of(context).newsRenameFolder, - value: folderFeedsWrapper.folder.name!, + value: folderFeedsWrapper.folder.name, ); if (result != null) { - bloc.renameFolder(folderFeedsWrapper.folder.id!, result); + bloc.renameFolder(folderFeedsWrapper.folder.id, result); } break; } @@ -149,7 +149,7 @@ class NewsFoldersView extends StatelessWidget { ), onLongPress: () { if (unreadCount > 0) { - bloc.markFolderAsRead(folderFeedsWrapper.folder.id!); + bloc.markFolderAsRead(folderFeedsWrapper.folder.id); } }, onTap: () async { diff --git a/packages/neon/lib/src/apps/notes/dialogs/create_note.dart b/packages/neon/lib/src/apps/notes/dialogs/create_note.dart index 61ab2375..774a5e4d 100644 --- a/packages/neon/lib/src/apps/notes/dialogs/create_note.dart +++ b/packages/neon/lib/src/apps/notes/dialogs/create_note.dart @@ -71,7 +71,7 @@ class _NotesCreateNoteDialogState extends State { ), if (notesData != null) ...[ NotesCategorySelect( - categories: notesData.map((final note) => note.category!).toSet().toList(), + categories: notesData.map((final note) => note.category).toSet().toList(), onChanged: (final category) { selectedCategory = category; }, diff --git a/packages/neon/lib/src/apps/notes/dialogs/select_category.dart b/packages/neon/lib/src/apps/notes/dialogs/select_category.dart index da795c68..cfcc6612 100644 --- a/packages/neon/lib/src/apps/notes/dialogs/select_category.dart +++ b/packages/neon/lib/src/apps/notes/dialogs/select_category.dart @@ -59,7 +59,7 @@ class _NotesSelectCategoryDialogState extends State { ), if (notesData != null) ...[ NotesCategorySelect( - categories: notesData.map((final note) => note.category!).toSet().toList(), + categories: notesData.map((final note) => note.category).toSet().toList(), initialValue: widget.note.category, onChanged: (final category) { selectedCategory = category; diff --git a/packages/neon/lib/src/apps/notes/pages/note.dart b/packages/neon/lib/src/apps/notes/pages/note.dart index 5a8d9c8e..ba65449a 100644 --- a/packages/neon/lib/src/apps/notes/pages/note.dart +++ b/packages/neon/lib/src/apps/notes/pages/note.dart @@ -36,8 +36,8 @@ class _NotesNotePageState extends State { if (updatedTitle != null || updatedCategory != null || updatedContent != null) { widget.bloc.updateNote( - _note.id!, - _note.etag!, + _note.id, + _note.etag, title: updatedTitle, category: updatedCategory, content: updatedContent, @@ -75,7 +75,7 @@ class _NotesNotePageState extends State { await Wakelock.enable(); } if (widget.bloc.options.defaultNoteViewTypeOption.value == DefaultNoteViewType.edit || - widget.note.content!.isEmpty) { + widget.note.content.isEmpty) { setState(() { _showEditor = true; }); @@ -157,7 +157,7 @@ class _NotesNotePageState extends State { }, icon: Icon( MdiIcons.tag, - color: _note.category!.isNotEmpty ? NotesCategoryColor.compute(_note.category!) : null, + color: _note.category.isNotEmpty ? NotesCategoryColor.compute(_note.category) : null, ), ), ], diff --git a/packages/neon/lib/src/apps/notes/sort/notes.dart b/packages/neon/lib/src/apps/notes/sort/notes.dart index 75cf55a2..469902b8 100644 --- a/packages/neon/lib/src/apps/notes/sort/notes.dart +++ b/packages/neon/lib/src/apps/notes/sort/notes.dart @@ -2,8 +2,8 @@ part of '../app.dart'; final notesSortBox = SortBox( { - NotesSortProperty.alphabetical: (final note) => note.title!.toLowerCase(), - NotesSortProperty.lastModified: (final note) => note.modified!, + NotesSortProperty.alphabetical: (final note) => note.title.toLowerCase(), + NotesSortProperty.lastModified: (final note) => note.modified, }, { NotesSortProperty.alphabetical: Box(NotesSortProperty.lastModified, SortBoxOrder.descending), diff --git a/packages/neon/lib/src/apps/notes/widgets/categories_view.dart b/packages/neon/lib/src/apps/notes/widgets/categories_view.dart index b4a6c5d5..5a1d4c34 100644 --- a/packages/neon/lib/src/apps/notes/widgets/categories_view.dart +++ b/packages/neon/lib/src/apps/notes/widgets/categories_view.dart @@ -24,7 +24,7 @@ class NotesCategoriesView extends StatelessWidget { sortPropertyOption: bloc.options.categoriesSortPropertyOption, sortBoxOrderOption: bloc.options.categoriesSortBoxOrderOption, input: notesData - ?.map((final note) => note.category!) + ?.map((final note) => note.category) .toSet() .map( (final category) => NoteCategory( diff --git a/packages/neon/lib/src/apps/notes/widgets/notes_view.dart b/packages/neon/lib/src/apps/notes/widgets/notes_view.dart index 3a8d755e..443d0fe4 100644 --- a/packages/neon/lib/src/apps/notes/widgets/notes_view.dart +++ b/packages/neon/lib/src/apps/notes/widgets/notes_view.dart @@ -46,15 +46,15 @@ class NotesView extends StatelessWidget { sortPropertyOption: bloc.options.notesSortPropertyOption, sortBoxOrderOption: bloc.options.notesSortBoxOrderOption, input: category != null - ? notesData?.where((final note) => note.favorite! && note.category == category).toList() - : notesData?.where((final note) => note.favorite!).toList(), + ? notesData?.where((final note) => note.favorite && note.category == category).toList() + : notesData?.where((final note) => note.favorite).toList(), builder: (final context, final sortedFavorites) => SortBoxBuilder( sortBox: notesSortBox, sortPropertyOption: bloc.options.notesSortPropertyOption, sortBoxOrderOption: bloc.options.notesSortBoxOrderOption, input: category != null - ? notesData?.where((final note) => !note.favorite! && note.category == category).toList() - : notesData?.where((final note) => !note.favorite!).toList(), + ? notesData?.where((final note) => !note.favorite && note.category == category).toList() + : notesData?.where((final note) => !note.favorite).toList(), builder: (final context, final sortedNonFavorites) => CustomListView( scrollKey: 'notes-notes', withFloatingActionButton: true, @@ -86,38 +86,38 @@ class NotesView extends StatelessWidget { final NotesNote note, ) => ListTile( - title: Text(note.title!), + title: Text(note.title), subtitle: Row( children: [ RelativeTime( - date: DateTime.fromMillisecondsSinceEpoch(note.modified! * 1000), + date: DateTime.fromMillisecondsSinceEpoch(note.modified * 1000), ), - if (note.category! != '') ...[ + if (note.category != '') ...[ const SizedBox( width: 8, ), Icon( MdiIcons.tag, size: 14, - color: NotesCategoryColor.compute(note.category!), + color: NotesCategoryColor.compute(note.category), ), const SizedBox( width: 2, ), - Text(note.category!), + Text(note.category), ], ], ), trailing: IconButton( icon: Icon( - note.favorite! ? Icons.star : Icons.star_outline, + note.favorite ? Icons.star : Icons.star_outline, color: Theme.of(context).colorScheme.primary, ), onPressed: () { bloc.updateNote( - note.id!, - note.etag!, - favorite: !note.favorite!, + note.id, + note.etag, + favorite: !note.favorite, ); }, ), @@ -134,10 +134,10 @@ class NotesView extends StatelessWidget { onLongPress: () async { final result = await showConfirmationDialog( context, - AppLocalizations.of(context).notesDeleteNoteConfirm(note.title!), + AppLocalizations.of(context).notesDeleteNoteConfirm(note.title), ); if (result) { - bloc.deleteNote(note.id!); + bloc.deleteNote(note.id); } }, ); diff --git a/packages/neon/lib/src/apps/notifications/blocs/notifications.dart b/packages/neon/lib/src/apps/notifications/blocs/notifications.dart index 633e1400..38ecb569 100644 --- a/packages/neon/lib/src/apps/notifications/blocs/notifications.dart +++ b/packages/neon/lib/src/apps/notifications/blocs/notifications.dart @@ -65,7 +65,7 @@ class NotificationsBloc extends $NotificationsBloc { _client.id, 'notifications-notifications', () async => _client.notifications.listNotifications(), - (final response) => response.ocs!.data!, + (final response) => response.ocs.data, previousData: _notificationsSubject.valueOrNull?.data, ) .listen(_notificationsSubject.add); diff --git a/packages/neon/lib/src/apps/notifications/pages/main.dart b/packages/neon/lib/src/apps/notifications/pages/main.dart index 84051302..0efabdeb 100644 --- a/packages/neon/lib/src/apps/notifications/pages/main.dart +++ b/packages/neon/lib/src/apps/notifications/pages/main.dart @@ -68,13 +68,13 @@ class _NotificationsMainPageState extends State { .toList(); return ListTile( - title: Text(notification.subject!), + title: Text(notification.subject), subtitle: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - if (notification.message!.isNotEmpty) ...[ + if (notification.message.isNotEmpty) ...[ Text( - notification.message!, + notification.message, overflow: TextOverflow.ellipsis, ), const SizedBox( @@ -82,7 +82,7 @@ class _NotificationsMainPageState extends State { ), ], RelativeTime( - date: DateTime.parse(notification.datetime!), + date: DateTime.parse(notification.datetime), ), ], ), @@ -96,7 +96,7 @@ class _NotificationsMainPageState extends State { width: 40, height: 40, child: CachedURLImage( - url: notification.icon!, + url: notification.icon, width: 40, height: 40, svgColor: Theme.of(context).colorScheme.primary, @@ -124,7 +124,7 @@ class _NotificationsMainPageState extends State { } }, onLongPress: () { - widget.bloc.deleteNotification(notification.notificationId!); + widget.bloc.deleteNotification(notification.notificationId); }, ); } diff --git a/packages/neon/lib/src/blocs/apps.dart b/packages/neon/lib/src/blocs/apps.dart index e80b8e61..3ac8464f 100644 --- a/packages/neon/lib/src/blocs/apps.dart +++ b/packages/neon/lib/src/blocs/apps.dart @@ -10,7 +10,7 @@ import 'package:rxdart/rxdart.dart'; part 'apps.rxb.g.dart'; -typedef NextcloudApp = CoreNavigationAppsOcsData; +typedef NextcloudApp = CoreNavigationApps_Ocs_Data; abstract class AppsBlocEvents { void refresh(); @@ -105,7 +105,7 @@ class AppsBloc extends $AppsBloc { _account.client.id, 'apps-apps', () async => _account.client.core.getNavigationApps(), - (final response) => response.ocs!.data!, + (final response) => response.ocs.data, previousData: _appsSubject.valueOrNull?.data, ) .listen(_appsSubject.add); diff --git a/packages/neon/lib/src/blocs/apps.rxb.g.dart b/packages/neon/lib/src/blocs/apps.rxb.g.dart index 7a50d934..d06734a0 100644 --- a/packages/neon/lib/src/blocs/apps.rxb.g.dart +++ b/packages/neon/lib/src/blocs/apps.rxb.g.dart @@ -25,7 +25,7 @@ abstract class $AppsBloc extends RxBlocBase implements AppsBlocEvents, AppsBlocS final _$setActiveAppEvent = PublishSubject(); /// The state of [apps] implemented in [_mapToAppsState] - late final BehaviorSubject>> _appsState = _mapToAppsState(); + late final BehaviorSubject>> _appsState = _mapToAppsState(); /// The state of [appImplementations] implemented in /// [_mapToAppImplementationsState] @@ -42,7 +42,7 @@ abstract class $AppsBloc extends RxBlocBase implements AppsBlocEvents, AppsBlocS void setActiveApp(String? appID) => _$setActiveAppEvent.add(appID); @override - BehaviorSubject>> get apps => _appsState; + BehaviorSubject>> get apps => _appsState; @override BehaviorSubject>>> get appImplementations => @@ -51,7 +51,7 @@ abstract class $AppsBloc extends RxBlocBase implements AppsBlocEvents, AppsBlocS @override BehaviorSubject get activeAppID => _activeAppIDState; - BehaviorSubject>> _mapToAppsState(); + BehaviorSubject>> _mapToAppsState(); BehaviorSubject>>> _mapToAppImplementationsState(); diff --git a/packages/neon/lib/src/blocs/capabilities.dart b/packages/neon/lib/src/blocs/capabilities.dart index bbde05d9..eb4ebf50 100644 --- a/packages/neon/lib/src/blocs/capabilities.dart +++ b/packages/neon/lib/src/blocs/capabilities.dart @@ -8,8 +8,8 @@ import 'package:rxdart/rxdart.dart'; part 'capabilities.rxb.g.dart'; -typedef Capabilities = CoreServerCapabilitiesOcsData; -typedef NextcloudTheme = CoreServerCapabilitiesOcsDataCapabilitiesTheming; +typedef Capabilities = CoreServerCapabilities_Ocs_Data; +typedef NextcloudTheme = CoreServerCapabilities_Ocs_Data_Capabilities_Theming; abstract class CapabilitiesBlocEvents { void refresh(); @@ -32,11 +32,11 @@ class CapabilitiesBloc extends $CapabilitiesBloc { void _loadCapabilities() { _requestManager - .wrapNextcloud( + .wrapNextcloud( _client.id, 'capabilities', () async => _client.core.getCapabilities(), - (final response) => response.ocs!.data!, + (final response) => response.ocs.data, previousData: _capabilitiesSubject.valueOrNull?.data, ) .listen(_capabilitiesSubject.add); diff --git a/packages/neon/lib/src/blocs/capabilities.rxb.g.dart b/packages/neon/lib/src/blocs/capabilities.rxb.g.dart index a97a50d5..f4969412 100644 --- a/packages/neon/lib/src/blocs/capabilities.rxb.g.dart +++ b/packages/neon/lib/src/blocs/capabilities.rxb.g.dart @@ -23,15 +23,15 @@ abstract class $CapabilitiesBloc extends RxBlocBase final _$refreshEvent = PublishSubject(); /// The state of [capabilities] implemented in [_mapToCapabilitiesState] - late final BehaviorSubject> _capabilitiesState = _mapToCapabilitiesState(); + late final BehaviorSubject> _capabilitiesState = _mapToCapabilitiesState(); @override void refresh() => _$refreshEvent.add(null); @override - BehaviorSubject> get capabilities => _capabilitiesState; + BehaviorSubject> get capabilities => _capabilitiesState; - BehaviorSubject> _mapToCapabilitiesState(); + BehaviorSubject> _mapToCapabilitiesState(); @override CapabilitiesBlocEvents get events => this; diff --git a/packages/neon/lib/src/blocs/login.dart b/packages/neon/lib/src/blocs/login.dart index fcd7e320..98b6f531 100644 --- a/packages/neon/lib/src/blocs/login.dart +++ b/packages/neon/lib/src/blocs/login.dart @@ -40,7 +40,7 @@ class LoginBloc extends $LoginBloc { ); final status = await client.core.getStatus(); - if (status.maintenance!) { + if (status.maintenance) { _serverConnectionStateSubject.add(ServerConnectionState.maintenanceMode); return; } @@ -53,7 +53,7 @@ class LoginBloc extends $LoginBloc { _cancelPollTimer(); _pollTimer = Timer.periodic(const Duration(seconds: 2), (final _) async { try { - final result = await client.core.getLoginFlowResult(token: init.poll!.token!); + final result = await client.core.getLoginFlowResult(token: init.poll.token); _cancelPollTimer(); _loginFlowResultSubject.add(result); } catch (e) { diff --git a/packages/neon/lib/src/blocs/push_notifications.dart b/packages/neon/lib/src/blocs/push_notifications.dart index 95595ed1..b5b72580 100644 --- a/packages/neon/lib/src/blocs/push_notifications.dart +++ b/packages/neon/lib/src/blocs/push_notifications.dart @@ -80,7 +80,7 @@ class PushNotificationsBloc extends $PushNotificationsBloc { await account.client.notifications.registerDeviceAtPushProxy( endpoint, - subscription.ocs!.data!, + subscription.ocs.data, proxyServerForClient, ); diff --git a/packages/neon/lib/src/blocs/user_details.dart b/packages/neon/lib/src/blocs/user_details.dart index 7551e66c..fa80e22d 100644 --- a/packages/neon/lib/src/blocs/user_details.dart +++ b/packages/neon/lib/src/blocs/user_details.dart @@ -33,7 +33,7 @@ class UserDetailsBloc extends $UserDetailsBloc { _client.id, 'user-details', () async => _client.provisioningApi.getCurrentUser(), - (final response) => response.ocs!.data!, + (final response) => response.ocs.data, previousData: _userDetailsSubject.valueOrNull?.data, ) .listen(_userDetailsSubject.add); diff --git a/packages/neon/lib/src/blocs/user_status.dart b/packages/neon/lib/src/blocs/user_status.dart index 07ac1ca1..833ae6d4 100644 --- a/packages/neon/lib/src/blocs/user_status.dart +++ b/packages/neon/lib/src/blocs/user_status.dart @@ -44,7 +44,7 @@ class UserStatusBloc extends $UserStatusBloc { _account.client.id, 'user-status', () async => _account.client.userStatus.getStatus(), - (final response) => response.ocs?.data?.userStatus, + (final response) => response.ocs.data.userStatus, previousData: _userStatusSubject.valueOrNull?.data, ) .listen(_userStatusSubject.add); diff --git a/packages/neon/lib/src/pages/home/home.dart b/packages/neon/lib/src/pages/home/home.dart index b88aabb6..463f300a 100644 --- a/packages/neon/lib/src/pages/home/home.dart +++ b/packages/neon/lib/src/pages/home/home.dart @@ -51,7 +51,7 @@ class _HomePageState extends State with tray.TrayListener, WindowListe ); _capabilitiesBloc.capabilities.listen((final result) async { if (result.data != null) { - widget.onThemeChanged(result.data!.capabilities!.theming!); + widget.onThemeChanged(result.data!.capabilities.theming!); // ignore cached version and prevent duplicate dialogs if (result is ResultSuccess) { @@ -161,7 +161,7 @@ class _HomePageState extends State with tray.TrayListener, WindowListe final allAppImplementations = Provider.of>(context, listen: false); final matchingAppImplementations = allAppImplementations.where((final a) => a.id == notification.app); if (matchingAppImplementations.isNotEmpty) { - _appsBloc.setActiveApp(notification.app!); + _appsBloc.setActiveApp(notification.app); return true; } @@ -183,7 +183,7 @@ class _HomePageState extends State with tray.TrayListener, WindowListe final allAppImplementations = Provider.of>(context, listen: false); final matchingAppImplementations = - allAppImplementations.where((final a) => a.id == notification.subject!.app); + allAppImplementations.where((final a) => a.id == notification.subject.app); late AppImplementation appImplementation; if (matchingAppImplementations.isNotEmpty) { @@ -193,7 +193,7 @@ class _HomePageState extends State with tray.TrayListener, WindowListe } if (appImplementation.id != 'notifications') { - _appsBloc.getAppBloc(appImplementation).deleteNotification(notification.subject!.nid!); + _appsBloc.getAppBloc(appImplementation).deleteNotification(notification.subject.nid); } await _openAppFromExternal(appImplementation.id); } @@ -435,18 +435,16 @@ class _HomePageState extends State with tray.TrayListener, WindowListe children: [ if (capabilitiesData != null) ...[ Text( - capabilitiesData.capabilities!.theming!.name!, + capabilitiesData.capabilities.theming!.name, style: DefaultTextStyle.of(context).style.copyWith( color: Theme.of(context).appBarTheme.foregroundColor, ), ), - if (capabilitiesData.capabilities!.theming!.logo != null) ...[ - Flexible( - child: CachedURLImage( - url: capabilitiesData.capabilities!.theming!.logo!, - ), + Flexible( + child: CachedURLImage( + url: capabilitiesData.capabilities.theming!.logo, ), - ], + ), ] else ...[ ExceptionWidget( capabilitiesError, @@ -626,9 +624,9 @@ class _HomePageState extends State with tray.TrayListener, WindowListe leading: isQuickBar ? Container( padding: const EdgeInsets.all(5), - child: capabilitiesData?.capabilities?.theming?.logo != null + child: capabilitiesData?.capabilities.theming?.logo != null ? CachedURLImage( - url: capabilitiesData!.capabilities!.theming!.logo!, + url: capabilitiesData!.capabilities.theming!.logo, ) : null, ) diff --git a/packages/neon/lib/src/pages/home/widgets/server_status.dart b/packages/neon/lib/src/pages/home/widgets/server_status.dart index 1baa3f1d..1d454ef4 100644 --- a/packages/neon/lib/src/pages/home/widgets/server_status.dart +++ b/packages/neon/lib/src/pages/home/widgets/server_status.dart @@ -20,7 +20,7 @@ class _ServerStatusState extends State { WidgetsBinding.instance.addPostFrameCallback((final _) async { try { final status = await widget.account.client.core.getStatus(); - if (status.maintenance! && mounted) { + if (status.maintenance && mounted) { ExceptionWidget.showSnackbar(context, AppLocalizations.of(context).errorServerInMaintenanceMode); } } catch (e) { diff --git a/packages/neon/lib/src/pages/login/login.dart b/packages/neon/lib/src/pages/login/login.dart index fd558de6..61a2a005 100644 --- a/packages/neon/lib/src/pages/login/login.dart +++ b/packages/neon/lib/src/pages/login/login.dart @@ -34,7 +34,7 @@ class _LoginPageState extends State { if (init != null && !Provider.of(context, listen: false).canUseWebView) { WidgetsBinding.instance.addPostFrameCallback((final _) async { await launchUrlString( - init.login!, + init.login, mode: LaunchMode.externalApplication, webViewConfiguration: WebViewConfiguration( headers: _buildHeaders(context, Provider.of(context, listen: false)), @@ -47,9 +47,9 @@ class _LoginPageState extends State { _loginBloc.loginFlowResult.listen((final result) async { if (result != null) { final account = Account( - serverURL: result.server!, - username: result.loginName!, - appPassword: result.appPassword!, + serverURL: result.server, + username: result.loginName, + appPassword: result.appPassword, )..setupClient(await PackageInfo.fromPlatform()); if (!mounted) { @@ -64,7 +64,7 @@ class _LoginPageState extends State { for (final a in accountsBloc.accounts.value) { if (a.id == account.id) { ExceptionWidget.showSnackbar(context, AppLocalizations.of(context).errorAccountAlreadyExists); - _loginBloc.setServerURL(result.server!); + _loginBloc.setServerURL(result.server); return; } } @@ -155,7 +155,7 @@ class _LoginPageState extends State { onWebViewCreated: (final controller) async { _webViewController = controller; final url = - (await _loginBloc.loginFlowInit.firstWhere((final init) => init != null))!.login!; + (await _loginBloc.loginFlowInit.firstWhere((final init) => init != null))!.login; if (mounted) { await _webViewController!.loadUrl( url, diff --git a/packages/neon/lib/src/pages/settings/account_specific_settings.dart b/packages/neon/lib/src/pages/settings/account_specific_settings.dart index a5cac713..513e509a 100644 --- a/packages/neon/lib/src/pages/settings/account_specific_settings.dart +++ b/packages/neon/lib/src/pages/settings/account_specific_settings.dart @@ -60,7 +60,7 @@ class AccountSpecificSettingsPage extends StatelessWidget { children: [ if (userDetailsData != null) ...[ LinearProgressIndicator( - value: userDetailsData.quota!.relative! / 100, + value: userDetailsData.quota.relative / 100, backgroundColor: Theme.of(context).colorScheme.primary.withOpacity(0.3), ), const SizedBox( @@ -68,9 +68,9 @@ class AccountSpecificSettingsPage extends StatelessWidget { ), Text( AppLocalizations.of(context).accountOptionsQuotaUsedOf( - filesize(userDetailsData.quota!.used!, 1), - filesize(userDetailsData.quota!.total!, 1), - userDetailsData.quota!.relative!.toString(), + filesize(userDetailsData.quota.used, 1), + filesize(userDetailsData.quota.total, 1), + userDetailsData.quota.relative.toString(), ), ), ], diff --git a/packages/neon/lib/src/utils/push_utils.dart b/packages/neon/lib/src/utils/push_utils.dart index e51aba22..9165b3ae 100644 --- a/packages/neon/lib/src/utils/push_utils.dart +++ b/packages/neon/lib/src/utils/push_utils.dart @@ -56,11 +56,11 @@ class PushUtils { subject: decryptPushNotificationSubject(keypair.privateKey, data['subject']! as String), ); - if (notification.subject!.delete ?? false) { + if (notification.subject.delete ?? false) { await localNotificationsPlugin.cancel(_getNotificationID(instance, notification)); return; } - if (notification.subject!.deleteAll ?? false) { + if (notification.subject.deleteAll ?? false) { await localNotificationsPlugin.cancelAll(); return; } @@ -80,7 +80,7 @@ class PushUtils { final allAppImplementations = getAppImplementations(sharedPreferences, requestManager, platform); final matchingAppImplementations = - allAppImplementations.where((final a) => a.id == notification.subject!.app!).toList(); + allAppImplementations.where((final a) => a.id == notification.subject.app).toList(); late AppImplementation app; if (matchingAppImplementations.isNotEmpty) { app = matchingAppImplementations.single; @@ -93,7 +93,7 @@ class PushUtils { await localNotificationsPlugin.show( _getNotificationID(instance, notification), appName, - notification.subject!.subject!, + notification.subject.subject, NotificationDetails( android: AndroidNotificationDetails( app.id, @@ -122,5 +122,5 @@ class PushUtils { final String instance, final NotificationsPushNotification notification, ) => - sha256.convert(utf8.encode('$instance${notification.subject!.nid!}')).bytes.reduce((final a, final b) => a + b); + sha256.convert(utf8.encode('$instance${notification.subject.nid}')).bytes.reduce((final a, final b) => a + b); } diff --git a/packages/neon/lib/src/utils/theme.dart b/packages/neon/lib/src/utils/theme.dart index a78f1221..394cb844 100644 --- a/packages/neon/lib/src/utils/theme.dart +++ b/packages/neon/lib/src/utils/theme.dart @@ -4,7 +4,7 @@ const themePrimaryColor = Color(0xFFF37736); const themeOnPrimaryColor = Color(0xFFFFFFFF); ThemeData getThemeFromNextcloudTheme( - final CoreServerCapabilitiesOcsDataCapabilitiesTheming? nextcloudTheme, + final CoreServerCapabilities_Ocs_Data_Capabilities_Theming? nextcloudTheme, final ThemeMode themeMode, final Brightness platformBrightness, { required final bool oledAsDark, @@ -12,8 +12,8 @@ ThemeData getThemeFromNextcloudTheme( var primaryColor = themePrimaryColor; var onPrimaryColor = themeOnPrimaryColor; if (nextcloudTheme != null) { - primaryColor = HexColor(nextcloudTheme.color!); - onPrimaryColor = HexColor(nextcloudTheme.colorText!); + primaryColor = HexColor(nextcloudTheme.color); + onPrimaryColor = HexColor(nextcloudTheme.colorText); } late final Brightness selectBrightness; diff --git a/packages/nextcloud/lib/src/helpers.dart b/packages/nextcloud/lib/src/helpers.dart index e8431539..2cb18cca 100644 --- a/packages/nextcloud/lib/src/helpers.dart +++ b/packages/nextcloud/lib/src/helpers.dart @@ -33,9 +33,9 @@ extension NextcloudNotificationsPushProxy on NotificationsClient { Uri( queryParameters: { 'pushToken': pushToken, - 'deviceIdentifier': subscription.deviceIdentifier!, - 'deviceIdentifierSignature': subscription.signature!, - 'userPublicKey': subscription.publicKey!, + 'deviceIdentifier': subscription.deviceIdentifier, + 'deviceIdentifierSignature': subscription.signature, + 'userPublicKey': subscription.publicKey, }, ).query, ), diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.dart b/packages/nextcloud/lib/src/nextcloud.openapi.dart index b5932631..38bd8fe3 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.dart @@ -113,33 +113,33 @@ class Client { @JsonSerializable() class CoreServerStatus { CoreServerStatus({ - this.installed, - this.maintenance, - this.needsDbUpgrade, - this.version, - this.versionstring, - this.edition, - this.productname, - this.extendedSupport, + required this.installed, + required this.maintenance, + required this.needsDbUpgrade, + required this.version, + required this.versionstring, + required this.edition, + required this.productname, + required this.extendedSupport, }); factory CoreServerStatus.fromJson(Map json) => _$CoreServerStatusFromJson(json); - final bool? installed; + final bool installed; - final bool? maintenance; + final bool maintenance; - final bool? needsDbUpgrade; + final bool needsDbUpgrade; - final String? version; + final String version; - final String? versionstring; + final String versionstring; - final String? edition; + final String edition; - final String? productname; + final String productname; - final bool? extendedSupport; + final bool extendedSupport; // coverage:ignore-start Map toJson() => _$CoreServerStatusToJson(this); @@ -149,24 +149,24 @@ class CoreServerStatus { @JsonSerializable() class OCSMeta { OCSMeta({ - this.status, - this.statuscode, + required this.status, + required this.statuscode, this.message, - this.totalitems, - this.itemsperpage, + required this.totalitems, + required this.itemsperpage, }); factory OCSMeta.fromJson(Map json) => _$OCSMetaFromJson(json); - final String? status; + final String status; - final int? statuscode; + final int statuscode; final String? message; - final String? totalitems; + final String totalitems; - final String? itemsperpage; + final String itemsperpage; // coverage:ignore-start Map toJson() => _$OCSMetaToJson(this); @@ -174,1023 +174,1035 @@ class OCSMeta { } @JsonSerializable() -class CoreServerCapabilitiesOcsDataVersion { - CoreServerCapabilitiesOcsDataVersion({ - this.major, - this.minor, - this.micro, - this.string, - this.edition, - this.extendedSupport, +class CoreServerCapabilities_Ocs_Data_Version { + CoreServerCapabilities_Ocs_Data_Version({ + required this.major, + required this.minor, + required this.micro, + required this.string, + required this.edition, + required this.extendedSupport, }); - factory CoreServerCapabilitiesOcsDataVersion.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataVersionFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Version.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_VersionFromJson(json); - final int? major; + final int major; - final int? minor; + final int minor; - final int? micro; + final int micro; - final String? string; + final String string; - final String? edition; + final String edition; - final bool? extendedSupport; + final bool extendedSupport; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataVersionToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_VersionToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesCore { - CoreServerCapabilitiesOcsDataCapabilitiesCore({ - this.pollinterval, - this.webdavRoot, +class CoreServerCapabilities_Ocs_Data_Capabilities_Core { + CoreServerCapabilities_Ocs_Data_Capabilities_Core({ + required this.pollinterval, + required this.webdavRoot, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesCore.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesCoreFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreFromJson(json); - final int? pollinterval; + final int pollinterval; @JsonKey(name: 'webdav-root') - final String? webdavRoot; + final String webdavRoot; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesCoreToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesBruteforce { - CoreServerCapabilitiesOcsDataCapabilitiesBruteforce({this.delay}); +class CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce { + CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce({required this.delay}); - factory CoreServerCapabilitiesOcsDataCapabilitiesBruteforce.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesBruteforceFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(json); - final int? delay; + final int delay; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesBruteforceToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable { - CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable({this.size}); +class CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable { + CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable({required this.size}); - factory CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailableFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(json); - final List? size; + final List size; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailableToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing { - CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing({ - this.url, - this.etag, +class CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing { + CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing({ + required this.url, + required this.etag, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditingFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(json); - final String? url; + final String url; - final String? etag; + final String etag; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditingToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFiles { - CoreServerCapabilitiesOcsDataCapabilitiesFiles({ - this.bigfilechunking, - this.blacklistedFiles, - this.directEditing, - this.comments, - this.undelete, - this.versioning, +class CoreServerCapabilities_Ocs_Data_Capabilities_Files { + CoreServerCapabilities_Ocs_Data_Capabilities_Files({ + required this.bigfilechunking, + required this.blacklistedFiles, + required this.directEditing, + required this.comments, + required this.undelete, + required this.versioning, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesFiles.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesFromJson(json); - final bool? bigfilechunking; + final bool bigfilechunking; @JsonKey(name: 'blacklisted_files') - final List? blacklistedFiles; + final List blacklistedFiles; - final CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing? directEditing; + final CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing directEditing; - final bool? comments; + final bool comments; - final bool? undelete; + final bool undelete; - final bool? versioning; + final bool versioning; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesActivity { - CoreServerCapabilitiesOcsDataCapabilitiesActivity({this.apiv2}); +class CoreServerCapabilities_Ocs_Data_Capabilities_Activity { + CoreServerCapabilities_Ocs_Data_Capabilities_Activity({required this.apiv2}); - factory CoreServerCapabilitiesOcsDataCapabilitiesActivity.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesActivityFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityFromJson(json); - final List? apiv2; + final List apiv2; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesActivityToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus { - CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus({this.globalScale}); +class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status { + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status({required this.globalScale}); - factory CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatusFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(json); - final bool? globalScale; + final bool globalScale; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatusToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings { - CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings({ - this.frontendEnabled, - this.allowedCircles, - this.allowedUserTypes, - this.membersLimit, +class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings { + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings({ + required this.frontendEnabled, + required this.allowedCircles, + required this.allowedUserTypes, + required this.membersLimit, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettingsFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(json); - final bool? frontendEnabled; + final bool frontendEnabled; - final int? allowedCircles; + final int allowedCircles; - final int? allowedUserTypes; + final int allowedUserTypes; - final int? membersLimit; + final int membersLimit; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettingsToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource { - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource({ - this.core, - this.extra, +class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source { + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source({ + required this.core, + required this.extra, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSourceFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( + Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceFromJson(json); - final dynamic? core; + final dynamic core; - final dynamic? extra; + final dynamic extra; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSourceToJson(this); + Map toJson() => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants { - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants({ - this.flags, - this.source, +class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants { + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants({ + required this.flags, + required this.source, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsFromJson(json); - final dynamic? flags; + final dynamic flags; - final CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource? source; + final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source source; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig { - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig({ - this.coreFlags, - this.systemFlags, +class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config { + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config({ + required this.coreFlags, + required this.systemFlags, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfigFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(json); - final List? coreFlags; + final List coreFlags; - final List? systemFlags; + final List systemFlags; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfigToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle { - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle({ - this.constants, - this.config, +class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle { + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle({ + required this.constants, + required this.config, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(json); - final CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants? constants; + final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants constants; - final CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig? config; + final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config config; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants { - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants({this.level}); +class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants { + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants({required this.level}); - factory CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstantsFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsFromJson(json); - final dynamic? level; + final dynamic level; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstantsToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember { - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember({ - this.constants, - this.type, +class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member { + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member({ + required this.constants, + required this.type, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(json); - final CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants? constants; + final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants constants; - final dynamic? type; + final dynamic type; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesCircles { - CoreServerCapabilitiesOcsDataCapabilitiesCircles({ - this.version, - this.status, - this.settings, - this.circle, - this.member, +class CoreServerCapabilities_Ocs_Data_Capabilities_Circles { + CoreServerCapabilities_Ocs_Data_Capabilities_Circles({ + required this.version, + required this.status, + required this.settings, + required this.circle, + required this.member, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesCircles.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson(json); - final String? version; + final String version; - final CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus? status; + final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status status; - final CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings? settings; + final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings settings; - final CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle? circle; + final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle circle; - final CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember? member; + final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member member; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols { - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols({this.webdav}); +class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols { + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols({required this.webdav}); - factory CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocolsFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( + Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson(json); - final String? webdav; + final String webdav; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocolsToJson(this); + Map toJson() => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes { - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes({ - this.name, - this.shareTypes, - this.protocols, +class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes { + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes({ + required this.name, + required this.shareTypes, + required this.protocols, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(json); - final String? name; + final String name; - final List? shareTypes; + final List shareTypes; - final CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols? protocols; + final CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols protocols; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesOcm { - CoreServerCapabilitiesOcsDataCapabilitiesOcm({ - this.enabled, - this.apiVersion, - this.endPoint, - this.resourceTypes, +class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm { + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm({ + required this.enabled, + required this.apiVersion, + required this.endPoint, + required this.resourceTypes, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesOcm.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesOcmFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson(json); - final bool? enabled; + final bool enabled; - final String? apiVersion; + final String apiVersion; - final String? endPoint; + final String endPoint; - final List? resourceTypes; + final List resourceTypes; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesOcmToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesDav { - CoreServerCapabilitiesOcsDataCapabilitiesDav({this.chunking}); +class CoreServerCapabilities_Ocs_Data_Capabilities_Dav { + CoreServerCapabilities_Ocs_Data_Capabilities_Dav({required this.chunking}); - factory CoreServerCapabilitiesOcsDataCapabilitiesDav.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesDavFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_DavFromJson(json); - final String? chunking; + final String chunking; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesDavToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_DavToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword({ - this.enforced, - this.askForOptionalPassword, +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password({ + required this.enforced, + required this.askForOptionalPassword, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPasswordFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( + Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson(json); - final bool? enforced; + final bool enforced; - final bool? askForOptionalPassword; + final bool askForOptionalPassword; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPasswordToJson(this); + Map toJson() => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate({this.enabled}); +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate({required this.enabled}); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( + Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson(json); - final bool? enabled; + final bool enabled; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateToJson(this); + Map toJson() => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal({this.enabled}); +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal({required this.enabled}); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal.fromJson( + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternalFromJson(json); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalFromJson(json); - final bool? enabled; + final bool enabled; // coverage:ignore-start Map toJson() => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternalToJson(this); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote({this.enabled}); +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote({required this.enabled}); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote.fromJson( + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemoteFromJson(json); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteFromJson(json); - final bool? enabled; + final bool enabled; // coverage:ignore-start Map toJson() => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemoteToJson(this); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic({ - this.enabled, - this.password, - this.expireDate, - this.multipleLinks, - this.expireDateInternal, - this.expireDateRemote, - this.sendMail, - this.upload, - this.uploadFilesDrop, +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public({ + required this.enabled, + required this.password, + required this.expireDate, + required this.multipleLinks, + required this.expireDateInternal, + required this.expireDateRemote, + required this.sendMail, + required this.upload, + required this.uploadFilesDrop, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(json); - final bool? enabled; + final bool enabled; - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword? password; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password password; @JsonKey(name: 'expire_date') - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate? expireDate; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate expireDate; @JsonKey(name: 'multiple_links') - final bool? multipleLinks; + final bool multipleLinks; @JsonKey(name: 'expire_date_internal') - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal? expireDateInternal; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal expireDateInternal; @JsonKey(name: 'expire_date_remote') - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote? expireDateRemote; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote expireDateRemote; @JsonKey(name: 'send_mail') - final bool? sendMail; + final bool sendMail; - final bool? upload; + final bool upload; @JsonKey(name: 'upload_files_drop') - final bool? uploadFilesDrop; + final bool uploadFilesDrop; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate({this.enabled}); +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate({required this.enabled}); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDateFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( + Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson(json); - final bool? enabled; + final bool enabled; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDateToJson(this); + Map toJson() => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser({ - this.sendMail, - this.expireDate, +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User({ + required this.sendMail, + required this.expireDate, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(json); @JsonKey(name: 'send_mail') - final bool? sendMail; + final bool sendMail; @JsonKey(name: 'expire_date') - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate? expireDate; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate expireDate; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate({this.enabled}); +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate({required this.enabled}); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDateFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( + Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson(json); - final bool? enabled; + final bool enabled; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDateToJson(this); + Map toJson() => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup({ - this.enabled, - this.expireDate, +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group({ + required this.enabled, + required this.expireDate, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(json); - final bool? enabled; + final bool enabled; @JsonKey(name: 'expire_date') - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate? expireDate; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate expireDate; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate({this.enabled}); +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate({required this.enabled}); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate.fromJson( + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateFromJson(json); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson(json); - final bool? enabled; + final bool enabled; // coverage:ignore-start Map toJson() => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateToJson(this); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported({this.enabled}); +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported({required this.enabled}); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported.fromJson( + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupportedFromJson(json); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedFromJson(json); - final bool? enabled; + final bool enabled; // coverage:ignore-start Map toJson() => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupportedToJson(this); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation({ - this.outgoing, - this.incoming, - this.expireDate, - this.expireDateSupported, +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation({ + required this.outgoing, + required this.incoming, + required this.expireDate, + required this.expireDateSupported, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson(json); - final bool? outgoing; + final bool outgoing; - final bool? incoming; + final bool incoming; @JsonKey(name: 'expire_date') - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate? expireDate; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate expireDate; @JsonKey(name: 'expire_date_supported') - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported? expireDateSupported; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported expireDateSupported; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee({ - this.queryLookupDefault, - this.alwaysShowUnique, +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee({ + required this.queryLookupDefault, + required this.alwaysShowUnique, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingShareeFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(json); @JsonKey(name: 'query_lookup_default') - final bool? queryLookupDefault; + final bool queryLookupDefault; @JsonKey(name: 'always_show_unique') - final bool? alwaysShowUnique; + final bool alwaysShowUnique; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingShareeToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop({this.enabled}); +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop({required this.enabled}); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop.fromJson( + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDropFromJson(json); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropFromJson(json); - final bool? enabled; + final bool enabled; // coverage:ignore-start Map toJson() => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDropToJson(this); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword({ - this.enabled, - this.enforced, +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password({ + required this.enabled, + required this.enforced, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword.fromJson( + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPasswordFromJson(json); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordFromJson(json); - final bool? enabled; + final bool enabled; - final bool? enforced; + final bool enforced; // coverage:ignore-start Map toJson() => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPasswordToJson(this); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate({ - this.enabled, - this.enforced, +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate({ + required this.enabled, + required this.enforced, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate.fromJson( + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDateFromJson(json); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateFromJson(json); - final bool? enabled; + final bool enabled; - final bool? enforced; + final bool enforced; // coverage:ignore-start Map toJson() => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDateToJson(this); + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail({ - this.enabled, - this.sendPasswordByMail, - this.uploadFilesDrop, - this.password, - this.expireDate, +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail({ + required this.enabled, + required this.sendPasswordByMail, + required this.uploadFilesDrop, + required this.password, + required this.expireDate, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson(json); - final bool? enabled; + final bool enabled; @JsonKey(name: 'send_password_by_mail') - final bool? sendPasswordByMail; + final bool sendPasswordByMail; @JsonKey(name: 'upload_files_drop') - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop? uploadFilesDrop; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop uploadFilesDrop; - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword? password; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password password; @JsonKey(name: 'expire_date') - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate? expireDate; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate expireDate; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing { - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing({ - this.apiEnabled, - this.public, - this.resharing, - this.user, - this.groupSharing, - this.group, - this.defaultPermissions, - this.federation, - this.sharee, - this.sharebymail, +class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing { + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing({ + required this.apiEnabled, + required this.public, + required this.resharing, + required this.user, + required this.groupSharing, + required this.group, + required this.defaultPermissions, + required this.federation, + required this.sharee, + required this.sharebymail, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(json); @JsonKey(name: 'api_enabled') - final bool? apiEnabled; + final bool apiEnabled; - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic? public; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public public; - final bool? resharing; + final bool resharing; - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser? user; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User user; @JsonKey(name: 'group_sharing') - final bool? groupSharing; + final bool groupSharing; - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup? group; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group group; @JsonKey(name: 'default_permissions') - final int? defaultPermissions; + final int defaultPermissions; - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation? federation; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation federation; - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee? sharee; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee sharee; - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail? sharebymail; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail sharebymail; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesNotes { - CoreServerCapabilitiesOcsDataCapabilitiesNotes({ - this.apiVersion, - this.version, +class CoreServerCapabilities_Ocs_Data_Capabilities_Notes { + CoreServerCapabilities_Ocs_Data_Capabilities_Notes({ + required this.apiVersion, + required this.version, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesNotes.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesNotesFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson(json); @JsonKey(name: 'api_version') - final List? apiVersion; + final List apiVersion; - final String? version; + final String version; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesNotesToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesNotifications { - CoreServerCapabilitiesOcsDataCapabilitiesNotifications({ - this.ocsEndpoints, - this.push, - this.adminNotifications, +class CoreServerCapabilities_Ocs_Data_Capabilities_Notifications { + CoreServerCapabilities_Ocs_Data_Capabilities_Notifications({ + required this.ocsEndpoints, + required this.push, + required this.adminNotifications, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesNotifications.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesNotificationsFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(json); @JsonKey(name: 'ocs-endpoints') - final List? ocsEndpoints; + final List ocsEndpoints; - final List? push; + final List push; @JsonKey(name: 'admin-notifications') - final List? adminNotifications; + final List adminNotifications; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesNotificationsToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi { - CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi({ - this.generate, - this.validate, +class CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api { + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api({ + required this.generate, + required this.validate, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApiFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(json); - final String? generate; + final String generate; - final String? validate; + final String validate; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApiToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy { - CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy({ - this.minLength, - this.enforceNonCommonPassword, - this.enforceNumericCharacters, - this.enforceSpecialCharacters, - this.enforceUpperLowerCase, - this.api, +class CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy { + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy({ + required this.minLength, + required this.enforceNonCommonPassword, + required this.enforceNumericCharacters, + required this.enforceSpecialCharacters, + required this.enforceUpperLowerCase, + required this.api, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(json); - final int? minLength; + final int minLength; - final bool? enforceNonCommonPassword; + final bool enforceNonCommonPassword; - final bool? enforceNumericCharacters; + final bool enforceNumericCharacters; - final bool? enforceSpecialCharacters; + final bool enforceSpecialCharacters; - final bool? enforceUpperLowerCase; + final bool enforceUpperLowerCase; - final CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi? api; + final CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api api; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi { - CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi({ - this.version, - this.accountPropertyScopesVersion, - this.accountPropertyScopesFederatedEnabled, - this.accountPropertyScopesPublishedEnabled, +class CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi { + CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi({ + required this.version, + required this.accountPropertyScopesVersion, + required this.accountPropertyScopesFederatedEnabled, + required this.accountPropertyScopesPublishedEnabled, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApiFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(json); - final String? version; + final String version; @JsonKey(name: 'AccountPropertyScopesVersion') - final int? accountPropertyScopesVersion; + final int accountPropertyScopesVersion; @JsonKey(name: 'AccountPropertyScopesFederatedEnabled') - final bool? accountPropertyScopesFederatedEnabled; + final bool accountPropertyScopesFederatedEnabled; @JsonKey(name: 'AccountPropertyScopesPublishedEnabled') - final bool? accountPropertyScopesPublishedEnabled; + final bool accountPropertyScopesPublishedEnabled; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApiToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesTheming { - CoreServerCapabilitiesOcsDataCapabilitiesTheming({ - this.name, - this.url, - this.slogan, - this.color, - this.colorText, - this.colorElement, - this.colorElementBright, - this.colorElementDark, - this.logo, - this.background, - this.backgroundPlain, - this.backgroundDefault, - this.logoheader, - this.favicon, +class CoreServerCapabilities_Ocs_Data_Capabilities_Theming { + CoreServerCapabilities_Ocs_Data_Capabilities_Theming({ + required this.name, + required this.url, + required this.slogan, + required this.color, + required this.colorText, + required this.colorElement, + required this.colorElementBright, + required this.colorElementDark, + required this.logo, + required this.background, + required this.backgroundPlain, + required this.backgroundDefault, + required this.logoheader, + required this.favicon, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesTheming.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesThemingFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingFromJson(json); - final String? name; + final String name; - final String? url; + final String url; - final String? slogan; + final String slogan; - final String? color; + final String color; @JsonKey(name: 'color-text') - final String? colorText; + final String colorText; @JsonKey(name: 'color-element') - final String? colorElement; + final String colorElement; @JsonKey(name: 'color-element-bright') - final String? colorElementBright; + final String colorElementBright; @JsonKey(name: 'color-element-dark') - final String? colorElementDark; + final String colorElementDark; - final String? logo; + final String logo; - final String? background; + final String background; @JsonKey(name: 'background-plain') - final bool? backgroundPlain; + final bool backgroundPlain; @JsonKey(name: 'background-default') - final bool? backgroundDefault; + final bool backgroundDefault; - final String? logoheader; + final String logoheader; - final String? favicon; + final String favicon; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesThemingToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesUserStatus { - CoreServerCapabilitiesOcsDataCapabilitiesUserStatus({ - this.enabled, - this.supportsEmoji, +class CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus { + CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus({ + required this.enabled, + required this.supportsEmoji, }); - factory CoreServerCapabilitiesOcsDataCapabilitiesUserStatus.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesUserStatusFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(json); - final bool? enabled; + final bool enabled; @JsonKey(name: 'supports_emoji') - final bool? supportsEmoji; + final bool supportsEmoji; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesUserStatusToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus { - CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus({this.enabled}); +class CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus { + CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus({required this.enabled}); - factory CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatusFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusFromJson(json); - final bool? enabled; + final bool enabled; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatusToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsDataCapabilities { - CoreServerCapabilitiesOcsDataCapabilities({ - this.core, - this.bruteforce, - this.metadataAvailable, - this.files, +class CoreServerCapabilities_Ocs_Data_Capabilities { + CoreServerCapabilities_Ocs_Data_Capabilities({ + required this.core, + required this.bruteforce, + required this.metadataAvailable, + required this.files, this.activity, this.circles, - this.ocm, - this.dav, + required this.ocm, + required this.dav, this.filesSharing, this.notes, this.notifications, @@ -1201,109 +1213,109 @@ class CoreServerCapabilitiesOcsDataCapabilities { this.weatherStatus, }); - factory CoreServerCapabilitiesOcsDataCapabilities.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataCapabilitiesFromJson(json); + factory CoreServerCapabilities_Ocs_Data_Capabilities.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_Data_CapabilitiesFromJson(json); - final CoreServerCapabilitiesOcsDataCapabilitiesCore? core; + final CoreServerCapabilities_Ocs_Data_Capabilities_Core core; - final CoreServerCapabilitiesOcsDataCapabilitiesBruteforce? bruteforce; + final CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce bruteforce; - final CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable? metadataAvailable; + final CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable metadataAvailable; - final CoreServerCapabilitiesOcsDataCapabilitiesFiles? files; + final CoreServerCapabilities_Ocs_Data_Capabilities_Files files; - final CoreServerCapabilitiesOcsDataCapabilitiesActivity? activity; + final CoreServerCapabilities_Ocs_Data_Capabilities_Activity? activity; - final CoreServerCapabilitiesOcsDataCapabilitiesCircles? circles; + final CoreServerCapabilities_Ocs_Data_Capabilities_Circles? circles; - final CoreServerCapabilitiesOcsDataCapabilitiesOcm? ocm; + final CoreServerCapabilities_Ocs_Data_Capabilities_Ocm ocm; - final CoreServerCapabilitiesOcsDataCapabilitiesDav? dav; + final CoreServerCapabilities_Ocs_Data_Capabilities_Dav dav; @JsonKey(name: 'files_sharing') - final CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing? filesSharing; + final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing? filesSharing; - final CoreServerCapabilitiesOcsDataCapabilitiesNotes? notes; + final CoreServerCapabilities_Ocs_Data_Capabilities_Notes? notes; - final CoreServerCapabilitiesOcsDataCapabilitiesNotifications? notifications; + final CoreServerCapabilities_Ocs_Data_Capabilities_Notifications? notifications; @JsonKey(name: 'password_policy') - final CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy? passwordPolicy; + final CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy? passwordPolicy; @JsonKey(name: 'provisioning_api') - final CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi? provisioningApi; + final CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi? provisioningApi; - final CoreServerCapabilitiesOcsDataCapabilitiesTheming? theming; + final CoreServerCapabilities_Ocs_Data_Capabilities_Theming? theming; @JsonKey(name: 'user_status') - final CoreServerCapabilitiesOcsDataCapabilitiesUserStatus? userStatus; + final CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus? userStatus; @JsonKey(name: 'weather_status') - final CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus? weatherStatus; + final CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus? weatherStatus; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataCapabilitiesToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_Data_CapabilitiesToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcsData { - CoreServerCapabilitiesOcsData({ - this.version, - this.capabilities, +class CoreServerCapabilities_Ocs_Data { + CoreServerCapabilities_Ocs_Data({ + required this.version, + required this.capabilities, }); - factory CoreServerCapabilitiesOcsData.fromJson(Map json) => - _$CoreServerCapabilitiesOcsDataFromJson(json); + factory CoreServerCapabilities_Ocs_Data.fromJson(Map json) => + _$CoreServerCapabilities_Ocs_DataFromJson(json); - final CoreServerCapabilitiesOcsDataVersion? version; + final CoreServerCapabilities_Ocs_Data_Version version; - final CoreServerCapabilitiesOcsDataCapabilities? capabilities; + final CoreServerCapabilities_Ocs_Data_Capabilities capabilities; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsDataToJson(this); + Map toJson() => _$CoreServerCapabilities_Ocs_DataToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreServerCapabilitiesOcs { - CoreServerCapabilitiesOcs({ - this.meta, - this.data, +class CoreServerCapabilities_Ocs { + CoreServerCapabilities_Ocs({ + required this.meta, + required this.data, }); - factory CoreServerCapabilitiesOcs.fromJson(Map json) => _$CoreServerCapabilitiesOcsFromJson(json); + factory CoreServerCapabilities_Ocs.fromJson(Map json) => _$CoreServerCapabilities_OcsFromJson(json); - final OCSMeta? meta; + final OCSMeta meta; - final CoreServerCapabilitiesOcsData? data; + final CoreServerCapabilities_Ocs_Data data; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesOcsToJson(this); + Map toJson() => _$CoreServerCapabilities_OcsToJson(this); // coverage:ignore-end } @JsonSerializable() class CoreServerCapabilities { - CoreServerCapabilities({this.ocs}); + CoreServerCapabilities({required this.ocs}); factory CoreServerCapabilities.fromJson(Map json) => _$CoreServerCapabilitiesFromJson(json); - final CoreServerCapabilitiesOcs? ocs; + final CoreServerCapabilities_Ocs ocs; // coverage:ignore-start Map toJson() => _$CoreServerCapabilitiesToJson(this); // coverage:ignore-end } -class CoreNavigationAppsOcsDataOrder { - CoreNavigationAppsOcsDataOrder( +class CoreNavigationApps_Ocs_Data_Order { + CoreNavigationApps_Ocs_Data_Order( this._data, { this.int_, this.string, }); - factory CoreNavigationAppsOcsDataOrder.fromJson(dynamic data) { + factory CoreNavigationApps_Ocs_Data_Order.fromJson(dynamic data) { int? int_; try { int_ = data as int; @@ -1313,7 +1325,7 @@ class CoreNavigationAppsOcsDataOrder { string = data as String; } catch (_) {} assert([int_, string].where((final x) => x != null).length == 1, 'Need oneOf'); - return CoreNavigationAppsOcsDataOrder( + return CoreNavigationApps_Ocs_Data_Order( data, int_: int_, string: string, @@ -1332,70 +1344,71 @@ class CoreNavigationAppsOcsDataOrder { } @JsonSerializable() -class CoreNavigationAppsOcsData { - CoreNavigationAppsOcsData({ - this.id, - this.order, - this.href, - this.icon, - this.type, - this.name, - this.active, - this.classes, - this.unread, +class CoreNavigationApps_Ocs_Data { + CoreNavigationApps_Ocs_Data({ + required this.id, + required this.order, + required this.href, + required this.icon, + required this.type, + required this.name, + required this.active, + required this.classes, + required this.unread, }); - factory CoreNavigationAppsOcsData.fromJson(Map json) => _$CoreNavigationAppsOcsDataFromJson(json); + factory CoreNavigationApps_Ocs_Data.fromJson(Map json) => + _$CoreNavigationApps_Ocs_DataFromJson(json); - final String? id; + final String id; /// Should always be an integer, but there is a bug. See https://github.com/nextcloud/server/issues/32828 - final CoreNavigationAppsOcsDataOrder? order; + final CoreNavigationApps_Ocs_Data_Order order; - final String? href; + final String href; - final String? icon; + final String icon; - final String? type; + final String type; - final String? name; + final String name; - final bool? active; + final bool active; - final String? classes; + final String classes; - final int? unread; + final int unread; // coverage:ignore-start - Map toJson() => _$CoreNavigationAppsOcsDataToJson(this); + Map toJson() => _$CoreNavigationApps_Ocs_DataToJson(this); // coverage:ignore-end } @JsonSerializable() -class CoreNavigationAppsOcs { - CoreNavigationAppsOcs({ - this.meta, - this.data, +class CoreNavigationApps_Ocs { + CoreNavigationApps_Ocs({ + required this.meta, + required this.data, }); - factory CoreNavigationAppsOcs.fromJson(Map json) => _$CoreNavigationAppsOcsFromJson(json); + factory CoreNavigationApps_Ocs.fromJson(Map json) => _$CoreNavigationApps_OcsFromJson(json); - final OCSMeta? meta; + final OCSMeta meta; - final List? data; + final List data; // coverage:ignore-start - Map toJson() => _$CoreNavigationAppsOcsToJson(this); + Map toJson() => _$CoreNavigationApps_OcsToJson(this); // coverage:ignore-end } @JsonSerializable() class CoreNavigationApps { - CoreNavigationApps({this.ocs}); + CoreNavigationApps({required this.ocs}); factory CoreNavigationApps.fromJson(Map json) => _$CoreNavigationAppsFromJson(json); - final CoreNavigationAppsOcs? ocs; + final CoreNavigationApps_Ocs ocs; // coverage:ignore-start Map toJson() => _$CoreNavigationAppsToJson(this); @@ -1403,35 +1416,35 @@ class CoreNavigationApps { } @JsonSerializable() -class CoreLoginFlowInitPoll { - CoreLoginFlowInitPoll({ - this.token, - this.endpoint, +class CoreLoginFlowInit_Poll { + CoreLoginFlowInit_Poll({ + required this.token, + required this.endpoint, }); - factory CoreLoginFlowInitPoll.fromJson(Map json) => _$CoreLoginFlowInitPollFromJson(json); + factory CoreLoginFlowInit_Poll.fromJson(Map json) => _$CoreLoginFlowInit_PollFromJson(json); - final String? token; + final String token; - final String? endpoint; + final String endpoint; // coverage:ignore-start - Map toJson() => _$CoreLoginFlowInitPollToJson(this); + Map toJson() => _$CoreLoginFlowInit_PollToJson(this); // coverage:ignore-end } @JsonSerializable() class CoreLoginFlowInit { CoreLoginFlowInit({ - this.poll, - this.login, + required this.poll, + required this.login, }); factory CoreLoginFlowInit.fromJson(Map json) => _$CoreLoginFlowInitFromJson(json); - final CoreLoginFlowInitPoll? poll; + final CoreLoginFlowInit_Poll poll; - final String? login; + final String login; // coverage:ignore-start Map toJson() => _$CoreLoginFlowInitToJson(this); @@ -1441,18 +1454,18 @@ class CoreLoginFlowInit { @JsonSerializable() class CoreLoginFlowResult { CoreLoginFlowResult({ - this.server, - this.loginName, - this.appPassword, + required this.server, + required this.loginName, + required this.appPassword, }); factory CoreLoginFlowResult.fromJson(Map json) => _$CoreLoginFlowResultFromJson(json); - final String? server; + final String server; - final String? loginName; + final String loginName; - final String? appPassword; + final String appPassword; // coverage:ignore-start Map toJson() => _$CoreLoginFlowResultToJson(this); @@ -1619,47 +1632,47 @@ class GetSupportedApiVersions { @JsonSerializable() class NewsArticle { NewsArticle({ - this.id, - this.guid, - this.guidHash, - this.url, - this.title, + required this.id, + required this.guid, + required this.guidHash, + required this.url, + required this.title, this.author, - this.pubDate, + required this.pubDate, this.updatedDate, - this.body, + required this.body, this.enclosureMime, this.enclosureLink, this.mediaThumbnail, this.mediaDescription, - this.feedId, - this.unread, - this.starred, - this.lastModified, - this.rtl, - this.fingerprint, - this.contentHash, + required this.feedId, + required this.unread, + required this.starred, + required this.lastModified, + required this.rtl, + required this.fingerprint, + required this.contentHash, }); factory NewsArticle.fromJson(Map json) => _$NewsArticleFromJson(json); - final int? id; + final int id; - final String? guid; + final String guid; - final String? guidHash; + final String guidHash; - final String? url; + final String url; - final String? title; + final String title; final String? author; - final int? pubDate; + final int pubDate; final int? updatedDate; - final String? body; + final String body; final String? enclosureMime; @@ -1669,19 +1682,19 @@ class NewsArticle { final String? mediaDescription; - final int? feedId; + final int feedId; - final bool? unread; + final bool unread; - final bool? starred; + final bool starred; - final int? lastModified; + final int lastModified; - final bool? rtl; + final bool rtl; - final String? fingerprint; + final String fingerprint; - final String? contentHash; + final String contentHash; // coverage:ignore-start Map toJson() => _$NewsArticleToJson(this); @@ -1691,48 +1704,48 @@ class NewsArticle { @JsonSerializable() class NewsFeed { NewsFeed({ - this.id, - this.url, - this.title, - this.faviconLink, - this.added, + required this.id, + required this.url, + required this.title, + required this.faviconLink, + required this.added, this.folderId, this.unreadCount, - this.ordering, + required this.ordering, this.link, - this.pinned, - this.updateErrorCount, + required this.pinned, + required this.updateErrorCount, this.lastUpdateError, - this.items, + required this.items, }); factory NewsFeed.fromJson(Map json) => _$NewsFeedFromJson(json); - final int? id; + final int id; - final String? url; + final String url; - final String? title; + final String title; - final String? faviconLink; + final String faviconLink; - final int? added; + final int added; final int? folderId; final int? unreadCount; - final int? ordering; + final int ordering; final String? link; - final bool? pinned; + final bool pinned; - final int? updateErrorCount; + final int updateErrorCount; final String? lastUpdateError; - final List? items; + final List items; // coverage:ignore-start Map toJson() => _$NewsFeedToJson(this); @@ -1742,22 +1755,22 @@ class NewsFeed { @JsonSerializable() class NewsFolder { NewsFolder({ - this.id, - this.name, - this.opened, - this.feeds, + required this.id, + required this.name, + required this.opened, + required this.feeds, }); factory NewsFolder.fromJson(Map json) => _$NewsFolderFromJson(json); - final int? id; + final int id; - final String? name; + final String name; - final bool? opened; + final bool opened; /// This seems to be broken. In testing it is always empty - final List? feeds; + final List feeds; // coverage:ignore-start Map toJson() => _$NewsFolderToJson(this); @@ -1766,11 +1779,11 @@ class NewsFolder { @JsonSerializable() class NewsListFolders { - NewsListFolders({this.folders}); + NewsListFolders({required this.folders}); factory NewsListFolders.fromJson(Map json) => _$NewsListFoldersFromJson(json); - final List? folders; + final List folders; // coverage:ignore-start Map toJson() => _$NewsListFoldersToJson(this); @@ -1782,7 +1795,7 @@ class NewsListFeeds { NewsListFeeds({ this.starredCount, this.newestItemId, - this.feeds, + required this.feeds, }); factory NewsListFeeds.fromJson(Map json) => _$NewsListFeedsFromJson(json); @@ -1791,7 +1804,7 @@ class NewsListFeeds { final int? newestItemId; - final List? feeds; + final List feeds; // coverage:ignore-start Map toJson() => _$NewsListFeedsToJson(this); @@ -1800,11 +1813,11 @@ class NewsListFeeds { @JsonSerializable() class NewsListArticles { - NewsListArticles({this.items}); + NewsListArticles({required this.items}); factory NewsListArticles.fromJson(Map json) => _$NewsListArticlesFromJson(json); - final List? items; + final List items; // coverage:ignore-start Map toJson() => _$NewsListArticlesToJson(this); @@ -2187,59 +2200,59 @@ class NewsClient { @JsonSerializable() class NotesNote { NotesNote({ - this.id, - this.etag, - this.readonly, - this.content, - this.title, - this.category, - this.favorite, - this.modified, - this.error, - this.errorType, + required this.id, + required this.etag, + required this.readonly, + required this.content, + required this.title, + required this.category, + required this.favorite, + required this.modified, + required this.error, + required this.errorType, }); factory NotesNote.fromJson(Map json) => _$NotesNoteFromJson(json); - final int? id; + final int id; - final String? etag; + final String etag; - final bool? readonly; + final bool readonly; - final String? content; + final String content; - final String? title; + final String title; - final String? category; + final String category; - final bool? favorite; + final bool favorite; - final int? modified; + final int modified; - final bool? error; + final bool error; - final String? errorType; + final String errorType; // coverage:ignore-start Map toJson() => _$NotesNoteToJson(this); // coverage:ignore-end } -enum NotesSettingsNoteMode { +enum NotesSettings_NoteMode { edit('edit'), preview('preview'); - const NotesSettingsNoteMode(this.value); + const NotesSettings_NoteMode(this.value); final String value; - static NotesSettingsNoteMode fromValue(String value) { + static NotesSettings_NoteMode fromValue(String value) { switch (value) { case 'edit': - return NotesSettingsNoteMode.edit; + return NotesSettings_NoteMode.edit; case 'preview': - return NotesSettingsNoteMode.preview; + return NotesSettings_NoteMode.preview; default: throw Exception('Can not parse UserStatusClearAtTime0 from "$value"'); } @@ -2249,18 +2262,18 @@ enum NotesSettingsNoteMode { @JsonSerializable() class NotesSettings { NotesSettings({ - this.notesPath, - this.fileSuffix, - this.noteMode, + required this.notesPath, + required this.fileSuffix, + required this.noteMode, }); factory NotesSettings.fromJson(Map json) => _$NotesSettingsFromJson(json); - final String? notesPath; + final String notesPath; - final String? fileSuffix; + final String fileSuffix; - final NotesSettingsNoteMode? noteMode; + final NotesSettings_NoteMode noteMode; // coverage:ignore-start Map toJson() => _$NotesSettingsToJson(this); @@ -2461,18 +2474,18 @@ class NotesClient { } } -class NotificationsNotificationSubjectRichParameters { - NotificationsNotificationSubjectRichParameters( +class NotificationsNotification_SubjectRichParameters { + NotificationsNotification_SubjectRichParameters( this._data, { this.mapStringDynamic, }); - factory NotificationsNotificationSubjectRichParameters.fromJson(dynamic data) { + factory NotificationsNotification_SubjectRichParameters.fromJson(dynamic data) { Map? mapStringDynamic; try { mapStringDynamic = data as Map; } catch (_) {} - return NotificationsNotificationSubjectRichParameters( + return NotificationsNotification_SubjectRichParameters( data, mapStringDynamic: mapStringDynamic, ); @@ -2487,18 +2500,18 @@ class NotificationsNotificationSubjectRichParameters { // coverage:ignore-end } -class NotificationsNotificationMessageRichParameters { - NotificationsNotificationMessageRichParameters( +class NotificationsNotification_MessageRichParameters { + NotificationsNotification_MessageRichParameters( this._data, { this.mapStringDynamic, }); - factory NotificationsNotificationMessageRichParameters.fromJson(dynamic data) { + factory NotificationsNotification_MessageRichParameters.fromJson(dynamic data) { Map? mapStringDynamic; try { mapStringDynamic = data as Map; } catch (_) {} - return NotificationsNotificationMessageRichParameters( + return NotificationsNotification_MessageRichParameters( data, mapStringDynamic: mapStringDynamic, ); @@ -2516,20 +2529,20 @@ class NotificationsNotificationMessageRichParameters { @JsonSerializable() class NotificationsNotificationAction { NotificationsNotificationAction({ - this.label, - this.link, - this.type, + required this.label, + required this.link, + required this.type, this.primary, }); factory NotificationsNotificationAction.fromJson(Map json) => _$NotificationsNotificationActionFromJson(json); - final String? label; + final String label; - final String? link; + final String link; - final String? type; + final String type; final bool? primary; @@ -2541,57 +2554,57 @@ class NotificationsNotificationAction { @JsonSerializable() class NotificationsNotification { NotificationsNotification({ - this.notificationId, - this.app, - this.user, - this.datetime, - this.objectType, - this.objectId, - this.subject, - this.message, - this.link, - this.subjectRich, - this.subjectRichParameters, - this.messageRich, - this.messageRichParameters, - this.icon, - this.actions, + required this.notificationId, + required this.app, + required this.user, + required this.datetime, + required this.objectType, + required this.objectId, + required this.subject, + required this.message, + required this.link, + required this.subjectRich, + required this.subjectRichParameters, + required this.messageRich, + required this.messageRichParameters, + required this.icon, + required this.actions, }); factory NotificationsNotification.fromJson(Map json) => _$NotificationsNotificationFromJson(json); @JsonKey(name: 'notification_id') - final int? notificationId; + final int notificationId; - final String? app; + final String app; - final String? user; + final String user; - final String? datetime; + final String datetime; @JsonKey(name: 'object_type') - final String? objectType; + final String objectType; @JsonKey(name: 'object_id') - final String? objectId; + final String objectId; - final String? subject; + final String subject; - final String? message; + final String message; - final String? link; + final String link; - final String? subjectRich; + final String subjectRich; - final NotificationsNotificationSubjectRichParameters? subjectRichParameters; + final NotificationsNotification_SubjectRichParameters subjectRichParameters; - final String? messageRich; + final String messageRich; - final NotificationsNotificationMessageRichParameters? messageRichParameters; + final NotificationsNotification_MessageRichParameters messageRichParameters; - final String? icon; + final String icon; - final List? actions; + final List actions; // coverage:ignore-start Map toJson() => _$NotificationsNotificationToJson(this); @@ -2599,32 +2612,32 @@ class NotificationsNotification { } @JsonSerializable() -class NotificationsListNotificationsOcs { - NotificationsListNotificationsOcs({ - this.meta, - this.data, +class NotificationsListNotifications_Ocs { + NotificationsListNotifications_Ocs({ + required this.meta, + required this.data, }); - factory NotificationsListNotificationsOcs.fromJson(Map json) => - _$NotificationsListNotificationsOcsFromJson(json); + factory NotificationsListNotifications_Ocs.fromJson(Map json) => + _$NotificationsListNotifications_OcsFromJson(json); - final OCSMeta? meta; + final OCSMeta meta; - final List? data; + final List data; // coverage:ignore-start - Map toJson() => _$NotificationsListNotificationsOcsToJson(this); + Map toJson() => _$NotificationsListNotifications_OcsToJson(this); // coverage:ignore-end } @JsonSerializable() class NotificationsListNotifications { - NotificationsListNotifications({this.ocs}); + NotificationsListNotifications({required this.ocs}); factory NotificationsListNotifications.fromJson(Map json) => _$NotificationsListNotificationsFromJson(json); - final NotificationsListNotificationsOcs? ocs; + final NotificationsListNotifications_Ocs ocs; // coverage:ignore-start Map toJson() => _$NotificationsListNotificationsToJson(this); @@ -2632,32 +2645,32 @@ class NotificationsListNotifications { } @JsonSerializable() -class NotificationsGetNotificationOcs { - NotificationsGetNotificationOcs({ - this.meta, - this.data, +class NotificationsGetNotification_Ocs { + NotificationsGetNotification_Ocs({ + required this.meta, + required this.data, }); - factory NotificationsGetNotificationOcs.fromJson(Map json) => - _$NotificationsGetNotificationOcsFromJson(json); + factory NotificationsGetNotification_Ocs.fromJson(Map json) => + _$NotificationsGetNotification_OcsFromJson(json); - final OCSMeta? meta; + final OCSMeta meta; - final NotificationsNotification? data; + final NotificationsNotification data; // coverage:ignore-start - Map toJson() => _$NotificationsGetNotificationOcsToJson(this); + Map toJson() => _$NotificationsGetNotification_OcsToJson(this); // coverage:ignore-end } @JsonSerializable() class NotificationsGetNotification { - NotificationsGetNotification({this.ocs}); + NotificationsGetNotification({required this.ocs}); factory NotificationsGetNotification.fromJson(Map json) => _$NotificationsGetNotificationFromJson(json); - final NotificationsGetNotificationOcs? ocs; + final NotificationsGetNotification_Ocs ocs; // coverage:ignore-start Map toJson() => _$NotificationsGetNotificationToJson(this); @@ -2665,30 +2678,30 @@ class NotificationsGetNotification { } @JsonSerializable() -class NotificationsEmptyOcs { - NotificationsEmptyOcs({ - this.meta, - this.data, +class NotificationsEmpty_Ocs { + NotificationsEmpty_Ocs({ + required this.meta, + required this.data, }); - factory NotificationsEmptyOcs.fromJson(Map json) => _$NotificationsEmptyOcsFromJson(json); + factory NotificationsEmpty_Ocs.fromJson(Map json) => _$NotificationsEmpty_OcsFromJson(json); - final OCSMeta? meta; + final OCSMeta meta; - final List? data; + final List data; // coverage:ignore-start - Map toJson() => _$NotificationsEmptyOcsToJson(this); + Map toJson() => _$NotificationsEmpty_OcsToJson(this); // coverage:ignore-end } @JsonSerializable() class NotificationsEmpty { - NotificationsEmpty({this.ocs}); + NotificationsEmpty({required this.ocs}); factory NotificationsEmpty.fromJson(Map json) => _$NotificationsEmptyFromJson(json); - final NotificationsEmptyOcs? ocs; + final NotificationsEmpty_Ocs ocs; // coverage:ignore-start Map toJson() => _$NotificationsEmptyToJson(this); @@ -2698,20 +2711,20 @@ class NotificationsEmpty { @JsonSerializable() class NotificationsPushServerSubscription { NotificationsPushServerSubscription({ - this.publicKey, - this.deviceIdentifier, - this.signature, + required this.publicKey, + required this.deviceIdentifier, + required this.signature, this.message, }); factory NotificationsPushServerSubscription.fromJson(Map json) => _$NotificationsPushServerSubscriptionFromJson(json); - final String? publicKey; + final String publicKey; - final String? deviceIdentifier; + final String deviceIdentifier; - final String? signature; + final String signature; final String? message; @@ -2721,32 +2734,32 @@ class NotificationsPushServerSubscription { } @JsonSerializable() -class NotificationsPushServerRegistrationOcs { - NotificationsPushServerRegistrationOcs({ - this.meta, - this.data, +class NotificationsPushServerRegistration_Ocs { + NotificationsPushServerRegistration_Ocs({ + required this.meta, + required this.data, }); - factory NotificationsPushServerRegistrationOcs.fromJson(Map json) => - _$NotificationsPushServerRegistrationOcsFromJson(json); + factory NotificationsPushServerRegistration_Ocs.fromJson(Map json) => + _$NotificationsPushServerRegistration_OcsFromJson(json); - final OCSMeta? meta; + final OCSMeta meta; - final NotificationsPushServerSubscription? data; + final NotificationsPushServerSubscription data; // coverage:ignore-start - Map toJson() => _$NotificationsPushServerRegistrationOcsToJson(this); + Map toJson() => _$NotificationsPushServerRegistration_OcsToJson(this); // coverage:ignore-end } @JsonSerializable() class NotificationsPushServerRegistration { - NotificationsPushServerRegistration({this.ocs}); + NotificationsPushServerRegistration({required this.ocs}); factory NotificationsPushServerRegistration.fromJson(Map json) => _$NotificationsPushServerRegistrationFromJson(json); - final NotificationsPushServerRegistrationOcs? ocs; + final NotificationsPushServerRegistration_Ocs ocs; // coverage:ignore-start Map toJson() => _$NotificationsPushServerRegistrationToJson(this); @@ -2896,49 +2909,49 @@ class NotificationsClient { } @JsonSerializable() -class ProvisioningApiUserDetailsQuota { - ProvisioningApiUserDetailsQuota({ - this.free, - this.used, - this.total, - this.relative, - this.quota, +class ProvisioningApiUserDetails_Quota { + ProvisioningApiUserDetails_Quota({ + required this.free, + required this.used, + required this.total, + required this.relative, + required this.quota, }); - factory ProvisioningApiUserDetailsQuota.fromJson(Map json) => - _$ProvisioningApiUserDetailsQuotaFromJson(json); + factory ProvisioningApiUserDetails_Quota.fromJson(Map json) => + _$ProvisioningApiUserDetails_QuotaFromJson(json); - final int? free; + final int free; - final int? used; + final int used; - final int? total; + final int total; - final num? relative; + final num relative; - final int? quota; + final int quota; // coverage:ignore-start - Map toJson() => _$ProvisioningApiUserDetailsQuotaToJson(this); + Map toJson() => _$ProvisioningApiUserDetails_QuotaToJson(this); // coverage:ignore-end } @JsonSerializable() -class ProvisioningApiUserDetailsBackendCapabilities { - ProvisioningApiUserDetailsBackendCapabilities({ - this.setDisplayName, - this.setPassword, +class ProvisioningApiUserDetails_BackendCapabilities { + ProvisioningApiUserDetails_BackendCapabilities({ + required this.setDisplayName, + required this.setPassword, }); - factory ProvisioningApiUserDetailsBackendCapabilities.fromJson(Map json) => - _$ProvisioningApiUserDetailsBackendCapabilitiesFromJson(json); + factory ProvisioningApiUserDetails_BackendCapabilities.fromJson(Map json) => + _$ProvisioningApiUserDetails_BackendCapabilitiesFromJson(json); - final bool? setDisplayName; + final bool setDisplayName; - final bool? setPassword; + final bool setPassword; // coverage:ignore-start - Map toJson() => _$ProvisioningApiUserDetailsBackendCapabilitiesToJson(this); + Map toJson() => _$ProvisioningApiUserDetails_BackendCapabilitiesToJson(this); // coverage:ignore-end } @@ -2946,42 +2959,42 @@ class ProvisioningApiUserDetailsBackendCapabilities { class ProvisioningApiUserDetails { ProvisioningApiUserDetails({ this.enabled, - this.storageLocation, - this.id, - this.lastLogin, - this.backend, - this.subadmin, - this.quota, - this.avatarScope, + required this.storageLocation, + required this.id, + required this.lastLogin, + required this.backend, + required this.subadmin, + required this.quota, + required this.avatarScope, this.email, - this.emailScope, - this.additionalMail, - this.additionalMailScope, + required this.emailScope, + required this.additionalMail, + required this.additionalMailScope, this.displayname, - this.displaynameScope, - this.phone, - this.phoneScope, - this.address, - this.addressScope, - this.website, - this.websiteScope, - this.twitter, - this.twitterScope, - this.organisation, - this.organisationScope, - this.role, - this.roleScope, - this.headline, - this.headlineScope, - this.biography, - this.biographyScope, - this.profileEnabled, - this.profileEnabledScope, - this.groups, - this.language, - this.locale, + required this.displaynameScope, + required this.phone, + required this.phoneScope, + required this.address, + required this.addressScope, + required this.website, + required this.websiteScope, + required this.twitter, + required this.twitterScope, + required this.organisation, + required this.organisationScope, + required this.role, + required this.roleScope, + required this.headline, + required this.headlineScope, + required this.biography, + required this.biographyScope, + required this.profileEnabled, + required this.profileEnabledScope, + required this.groups, + required this.language, + required this.locale, this.notifyEmail, - this.backendCapabilities, + required this.backendCapabilities, this.displayName, }); @@ -2989,82 +3002,82 @@ class ProvisioningApiUserDetails { final bool? enabled; - final String? storageLocation; + final String storageLocation; - final String? id; + final String id; - final int? lastLogin; + final int lastLogin; - final String? backend; + final String backend; - final List? subadmin; + final List subadmin; - final ProvisioningApiUserDetailsQuota? quota; + final ProvisioningApiUserDetails_Quota quota; - final String? avatarScope; + final String avatarScope; final String? email; - final String? emailScope; + final String emailScope; @JsonKey(name: 'additional_mail') - final List? additionalMail; + final List additionalMail; @JsonKey(name: 'additional_mailScope') - final List? additionalMailScope; + final List additionalMailScope; final String? displayname; - final String? displaynameScope; + final String displaynameScope; - final String? phone; + final String phone; - final String? phoneScope; + final String phoneScope; - final String? address; + final String address; - final String? addressScope; + final String addressScope; - final String? website; + final String website; - final String? websiteScope; + final String websiteScope; - final String? twitter; + final String twitter; - final String? twitterScope; + final String twitterScope; - final String? organisation; + final String organisation; - final String? organisationScope; + final String organisationScope; - final String? role; + final String role; - final String? roleScope; + final String roleScope; - final String? headline; + final String headline; - final String? headlineScope; + final String headlineScope; - final String? biography; + final String biography; - final String? biographyScope; + final String biographyScope; @JsonKey(name: 'profile_enabled') - final String? profileEnabled; + final String profileEnabled; @JsonKey(name: 'profile_enabledScope') - final String? profileEnabledScope; + final String profileEnabledScope; - final List? groups; + final List groups; - final String? language; + final String language; - final String? locale; + final String locale; @JsonKey(name: 'notify_email') final String? notifyEmail; - final ProvisioningApiUserDetailsBackendCapabilities? backendCapabilities; + final ProvisioningApiUserDetails_BackendCapabilities backendCapabilities; @JsonKey(name: 'display-name') final String? displayName; @@ -3075,30 +3088,30 @@ class ProvisioningApiUserDetails { } @JsonSerializable() -class ProvisioningApiUserOcs { - ProvisioningApiUserOcs({ - this.meta, - this.data, +class ProvisioningApiUser_Ocs { + ProvisioningApiUser_Ocs({ + required this.meta, + required this.data, }); - factory ProvisioningApiUserOcs.fromJson(Map json) => _$ProvisioningApiUserOcsFromJson(json); + factory ProvisioningApiUser_Ocs.fromJson(Map json) => _$ProvisioningApiUser_OcsFromJson(json); - final OCSMeta? meta; + final OCSMeta meta; - final ProvisioningApiUserDetails? data; + final ProvisioningApiUserDetails data; // coverage:ignore-start - Map toJson() => _$ProvisioningApiUserOcsToJson(this); + Map toJson() => _$ProvisioningApiUser_OcsToJson(this); // coverage:ignore-end } @JsonSerializable() class ProvisioningApiUser { - ProvisioningApiUser({this.ocs}); + ProvisioningApiUser({required this.ocs}); factory ProvisioningApiUser.fromJson(Map json) => _$ProvisioningApiUserFromJson(json); - final ProvisioningApiUserOcs? ocs; + final ProvisioningApiUser_Ocs ocs; // coverage:ignore-start Map toJson() => _$ProvisioningApiUserToJson(this); @@ -3146,65 +3159,65 @@ class ProvisioningApiClient { } } -enum UserStatusClearAtType { +enum UserStatusClearAt_Type { period('period'), @JsonValue('end-of') endOf('end-of'); - const UserStatusClearAtType(this.value); + const UserStatusClearAt_Type(this.value); final String value; - static UserStatusClearAtType fromValue(String value) { + static UserStatusClearAt_Type fromValue(String value) { switch (value) { case 'period': - return UserStatusClearAtType.period; + return UserStatusClearAt_Type.period; case 'end-of': - return UserStatusClearAtType.endOf; + return UserStatusClearAt_Type.endOf; default: throw Exception('Can not parse UserStatusClearAtTime0 from "$value"'); } } } -enum UserStatusClearAtTime0 { +enum UserStatusClearAt_Time0 { day('day'), week('week'); - const UserStatusClearAtTime0(this.value); + const UserStatusClearAt_Time0(this.value); final String value; - static UserStatusClearAtTime0 fromValue(String value) { + static UserStatusClearAt_Time0 fromValue(String value) { switch (value) { case 'day': - return UserStatusClearAtTime0.day; + return UserStatusClearAt_Time0.day; case 'week': - return UserStatusClearAtTime0.week; + return UserStatusClearAt_Time0.week; default: throw Exception('Can not parse UserStatusClearAtTime0 from "$value"'); } } } -class UserStatusClearAtTime { - UserStatusClearAtTime( +class UserStatusClearAt_Time { + UserStatusClearAt_Time( this._data, { this.userStatusClearAtTime0, this.int_, }); - factory UserStatusClearAtTime.fromJson(dynamic data) { - UserStatusClearAtTime0? userStatusClearAtTime0; + factory UserStatusClearAt_Time.fromJson(dynamic data) { + UserStatusClearAt_Time0? userStatusClearAtTime0; try { - userStatusClearAtTime0 = UserStatusClearAtTime0.fromValue(data as String); + userStatusClearAtTime0 = UserStatusClearAt_Time0.fromValue(data as String); } catch (_) {} int? int_; try { int_ = data as int; } catch (_) {} assert([userStatusClearAtTime0, int_].where((final x) => x != null).length == 1, 'Need oneOf'); - return UserStatusClearAtTime( + return UserStatusClearAt_Time( data, userStatusClearAtTime0: userStatusClearAtTime0, int_: int_, @@ -3213,7 +3226,7 @@ class UserStatusClearAtTime { final dynamic _data; - final UserStatusClearAtTime0? userStatusClearAtTime0; + final UserStatusClearAt_Time0? userStatusClearAtTime0; /// Time offset in seconds final int? int_; @@ -3226,29 +3239,29 @@ class UserStatusClearAtTime { @JsonSerializable(disallowUnrecognizedKeys: true) class UserStatusClearAt { UserStatusClearAt({ - this.type, - this.time, + required this.type, + required this.time, }); factory UserStatusClearAt.fromJson(Map json) => _$UserStatusClearAtFromJson(json); - final UserStatusClearAtType? type; + final UserStatusClearAt_Type type; - final UserStatusClearAtTime? time; + final UserStatusClearAt_Time time; // coverage:ignore-start Map toJson() => _$UserStatusClearAtToJson(this); // coverage:ignore-end } -class UserStatusClearAtWrap { - UserStatusClearAtWrap( +class UserStatusPublicUserStatus_ClearAt { + UserStatusPublicUserStatus_ClearAt( this._data, { this.userStatusClearAt, this.int_, }); - factory UserStatusClearAtWrap.fromJson(dynamic data) { + factory UserStatusPublicUserStatus_ClearAt.fromJson(dynamic data) { UserStatusClearAt? userStatusClearAt; try { userStatusClearAt = UserStatusClearAt.fromJson(data as Map); @@ -3257,8 +3270,7 @@ class UserStatusClearAtWrap { try { int_ = data as int; } catch (_) {} - assert([userStatusClearAt, int_].where((final x) => x != null).length == 1, 'Need oneOf'); - return UserStatusClearAtWrap( + return UserStatusPublicUserStatus_ClearAt( data, userStatusClearAt: userStatusClearAt, int_: int_, @@ -3309,24 +3321,24 @@ enum UserStatusType { @JsonSerializable() class UserStatusPublicUserStatus { UserStatusPublicUserStatus({ - this.userId, + required this.userId, this.message, this.icon, - this.clearAt, - this.status, + required this.clearAt, + required this.status, }); factory UserStatusPublicUserStatus.fromJson(Map json) => _$UserStatusPublicUserStatusFromJson(json); - final String? userId; + final String userId; final String? message; final String? icon; - final UserStatusClearAtWrap? clearAt; + final UserStatusPublicUserStatus_ClearAt clearAt; - final UserStatusType? status; + final UserStatusType status; // coverage:ignore-start Map toJson() => _$UserStatusPublicUserStatusToJson(this); @@ -3334,49 +3346,49 @@ class UserStatusPublicUserStatus { } @JsonSerializable() -class UserStatusFindAllStatusesOcs { - UserStatusFindAllStatusesOcs({ - this.meta, - this.data, +class UserStatusFindAllStatuses_Ocs { + UserStatusFindAllStatuses_Ocs({ + required this.meta, + required this.data, }); - factory UserStatusFindAllStatusesOcs.fromJson(Map json) => - _$UserStatusFindAllStatusesOcsFromJson(json); + factory UserStatusFindAllStatuses_Ocs.fromJson(Map json) => + _$UserStatusFindAllStatuses_OcsFromJson(json); - final OCSMeta? meta; + final OCSMeta meta; - final List? data; + final List data; // coverage:ignore-start - Map toJson() => _$UserStatusFindAllStatusesOcsToJson(this); + Map toJson() => _$UserStatusFindAllStatuses_OcsToJson(this); // coverage:ignore-end } @JsonSerializable() class UserStatusFindAllStatuses { - UserStatusFindAllStatuses({this.ocs}); + UserStatusFindAllStatuses({required this.ocs}); factory UserStatusFindAllStatuses.fromJson(Map json) => _$UserStatusFindAllStatusesFromJson(json); - final UserStatusFindAllStatusesOcs? ocs; + final UserStatusFindAllStatuses_Ocs ocs; // coverage:ignore-start Map toJson() => _$UserStatusFindAllStatusesToJson(this); // coverage:ignore-end } -class UserStatusFindStatusOcsData { - UserStatusFindStatusOcsData( +class UserStatusFindStatus_Ocs_Data { + UserStatusFindStatus_Ocs_Data( this._data, { this.userStatusPublicUserStatus, }); - factory UserStatusFindStatusOcsData.fromJson(dynamic data) { + factory UserStatusFindStatus_Ocs_Data.fromJson(dynamic data) { UserStatusPublicUserStatus? userStatusPublicUserStatus; try { userStatusPublicUserStatus = UserStatusPublicUserStatus.fromJson(data as Map); } catch (_) {} - return UserStatusFindStatusOcsData( + return UserStatusFindStatus_Ocs_Data( data, userStatusPublicUserStatus: userStatusPublicUserStatus, ); @@ -3392,84 +3404,119 @@ class UserStatusFindStatusOcsData { } @JsonSerializable() -class UserStatusFindStatusOcs { - UserStatusFindStatusOcs({ - this.meta, - this.data, +class UserStatusFindStatus_Ocs { + UserStatusFindStatus_Ocs({ + required this.meta, + required this.data, }); - factory UserStatusFindStatusOcs.fromJson(Map json) => _$UserStatusFindStatusOcsFromJson(json); + factory UserStatusFindStatus_Ocs.fromJson(Map json) => _$UserStatusFindStatus_OcsFromJson(json); - final OCSMeta? meta; + final OCSMeta meta; - final UserStatusFindStatusOcsData? data; + final UserStatusFindStatus_Ocs_Data data; // coverage:ignore-start - Map toJson() => _$UserStatusFindStatusOcsToJson(this); + Map toJson() => _$UserStatusFindStatus_OcsToJson(this); // coverage:ignore-end } @JsonSerializable() class UserStatusFindStatus { - UserStatusFindStatus({this.ocs}); + UserStatusFindStatus({required this.ocs}); factory UserStatusFindStatus.fromJson(Map json) => _$UserStatusFindStatusFromJson(json); - final UserStatusFindStatusOcs? ocs; + final UserStatusFindStatus_Ocs ocs; // coverage:ignore-start Map toJson() => _$UserStatusFindStatusToJson(this); // coverage:ignore-end } +class UserStatus_ClearAt { + UserStatus_ClearAt( + this._data, { + this.userStatusClearAt, + this.int_, + }); + + factory UserStatus_ClearAt.fromJson(dynamic data) { + UserStatusClearAt? userStatusClearAt; + try { + userStatusClearAt = UserStatusClearAt.fromJson(data as Map); + } catch (_) {} + int? int_; + try { + int_ = data as int; + } catch (_) {} + return UserStatus_ClearAt( + data, + userStatusClearAt: userStatusClearAt, + int_: int_, + ); + } + + final dynamic _data; + + final UserStatusClearAt? userStatusClearAt; + + /// Time as unix timestamp + final int? int_; + + // coverage:ignore-start + dynamic toJson() => _data; + // coverage:ignore-end +} + @JsonSerializable(disallowUnrecognizedKeys: true) class UserStatus { UserStatus({ - this.userId, + required this.userId, this.message, this.messageId, - this.messageIsPredefined, + required this.messageIsPredefined, this.icon, - this.clearAt, - this.status, - this.statusIsUserDefined, + required this.clearAt, + required this.status, + required this.statusIsUserDefined, }); factory UserStatus.fromJson(Map json) => _$UserStatusFromJson(json); - final String? userId; + final String userId; final String? message; final String? messageId; - final bool? messageIsPredefined; + final bool messageIsPredefined; final String? icon; - final UserStatusClearAtWrap? clearAt; + final UserStatus_ClearAt clearAt; - final UserStatusType? status; + final UserStatusType status; - final bool? statusIsUserDefined; + final bool statusIsUserDefined; // coverage:ignore-start Map toJson() => _$UserStatusToJson(this); // coverage:ignore-end } -class UserStatusGetUserStatusOcsData { - UserStatusGetUserStatusOcsData( +class UserStatusGetUserStatus_Ocs_Data { + UserStatusGetUserStatus_Ocs_Data( this._data, { this.userStatus, }); - factory UserStatusGetUserStatusOcsData.fromJson(dynamic data) { + factory UserStatusGetUserStatus_Ocs_Data.fromJson(dynamic data) { UserStatus? userStatus; try { userStatus = UserStatus.fromJson(data as Map); } catch (_) {} - return UserStatusGetUserStatusOcsData( + return UserStatusGetUserStatus_Ocs_Data( data, userStatus: userStatus, ); @@ -3485,54 +3532,90 @@ class UserStatusGetUserStatusOcsData { } @JsonSerializable() -class UserStatusGetUserStatusOcs { - UserStatusGetUserStatusOcs({ - this.meta, - this.data, +class UserStatusGetUserStatus_Ocs { + UserStatusGetUserStatus_Ocs({ + required this.meta, + required this.data, }); - factory UserStatusGetUserStatusOcs.fromJson(Map json) => _$UserStatusGetUserStatusOcsFromJson(json); + factory UserStatusGetUserStatus_Ocs.fromJson(Map json) => + _$UserStatusGetUserStatus_OcsFromJson(json); - final OCSMeta? meta; + final OCSMeta meta; - final UserStatusGetUserStatusOcsData? data; + final UserStatusGetUserStatus_Ocs_Data data; // coverage:ignore-start - Map toJson() => _$UserStatusGetUserStatusOcsToJson(this); + Map toJson() => _$UserStatusGetUserStatus_OcsToJson(this); // coverage:ignore-end } @JsonSerializable() class UserStatusGetUserStatus { - UserStatusGetUserStatus({this.ocs}); + UserStatusGetUserStatus({required this.ocs}); factory UserStatusGetUserStatus.fromJson(Map json) => _$UserStatusGetUserStatusFromJson(json); - final UserStatusGetUserStatusOcs? ocs; + final UserStatusGetUserStatus_Ocs ocs; // coverage:ignore-start Map toJson() => _$UserStatusGetUserStatusToJson(this); // coverage:ignore-end } +class UserStatusPredefinedStatus_ClearAt { + UserStatusPredefinedStatus_ClearAt( + this._data, { + this.userStatusClearAt, + this.int_, + }); + + factory UserStatusPredefinedStatus_ClearAt.fromJson(dynamic data) { + UserStatusClearAt? userStatusClearAt; + try { + userStatusClearAt = UserStatusClearAt.fromJson(data as Map); + } catch (_) {} + int? int_; + try { + int_ = data as int; + } catch (_) {} + return UserStatusPredefinedStatus_ClearAt( + data, + userStatusClearAt: userStatusClearAt, + int_: int_, + ); + } + + final dynamic _data; + + final UserStatusClearAt? userStatusClearAt; + + /// Time as unix timestamp + final int? int_; + + // coverage:ignore-start + dynamic toJson() => _data; + // coverage:ignore-end +} + @JsonSerializable() class UserStatusPredefinedStatus { UserStatusPredefinedStatus({ - this.id, - this.icon, - this.message, - this.clearAt, + required this.id, + required this.icon, + required this.message, + required this.clearAt, }); factory UserStatusPredefinedStatus.fromJson(Map json) => _$UserStatusPredefinedStatusFromJson(json); - final String? id; + final String id; - final String? icon; + final String icon; - final String? message; + final String message; - final UserStatusClearAtWrap? clearAt; + final UserStatusPredefinedStatus_ClearAt clearAt; // coverage:ignore-start Map toJson() => _$UserStatusPredefinedStatusToJson(this); @@ -3540,32 +3623,32 @@ class UserStatusPredefinedStatus { } @JsonSerializable() -class UserStatusPredefinedStatusesOcs { - UserStatusPredefinedStatusesOcs({ - this.meta, - this.data, +class UserStatusPredefinedStatuses_Ocs { + UserStatusPredefinedStatuses_Ocs({ + required this.meta, + required this.data, }); - factory UserStatusPredefinedStatusesOcs.fromJson(Map json) => - _$UserStatusPredefinedStatusesOcsFromJson(json); + factory UserStatusPredefinedStatuses_Ocs.fromJson(Map json) => + _$UserStatusPredefinedStatuses_OcsFromJson(json); - final OCSMeta? meta; + final OCSMeta meta; - final List? data; + final List data; // coverage:ignore-start - Map toJson() => _$UserStatusPredefinedStatusesOcsToJson(this); + Map toJson() => _$UserStatusPredefinedStatuses_OcsToJson(this); // coverage:ignore-end } @JsonSerializable() class UserStatusPredefinedStatuses { - UserStatusPredefinedStatuses({this.ocs}); + UserStatusPredefinedStatuses({required this.ocs}); factory UserStatusPredefinedStatuses.fromJson(Map json) => _$UserStatusPredefinedStatusesFromJson(json); - final UserStatusPredefinedStatusesOcs? ocs; + final UserStatusPredefinedStatuses_Ocs ocs; // coverage:ignore-start Map toJson() => _$UserStatusPredefinedStatusesToJson(this); @@ -3757,11 +3840,11 @@ class UserStatusClient { @JsonSerializable() class NotificationsPushNotificationDecryptedSubject { NotificationsPushNotificationDecryptedSubject({ - this.nid, - this.app, - this.subject, - this.type, - this.id, + required this.nid, + required this.app, + required this.subject, + required this.type, + required this.id, this.delete, this.deleteAll, }); @@ -3769,15 +3852,15 @@ class NotificationsPushNotificationDecryptedSubject { factory NotificationsPushNotificationDecryptedSubject.fromJson(Map json) => _$NotificationsPushNotificationDecryptedSubjectFromJson(json); - final int? nid; + final int nid; - final String? app; + final String app; - final String? subject; + final String subject; - final String? type; + final String type; - final String? id; + final String id; final bool? delete; @@ -3792,22 +3875,22 @@ class NotificationsPushNotificationDecryptedSubject { @JsonSerializable() class NotificationsPushNotification { NotificationsPushNotification({ - this.accountID, - this.priority, - this.type, - this.subject, + required this.accountID, + required this.priority, + required this.type, + required this.subject, }); factory NotificationsPushNotification.fromJson(Map json) => _$NotificationsPushNotificationFromJson(json); - final String? accountID; + final String accountID; - final String? priority; + final String priority; - final String? type; + final String type; - final NotificationsPushNotificationDecryptedSubject? subject; + final NotificationsPushNotificationDecryptedSubject subject; // coverage:ignore-start Map toJson() => _$NotificationsPushNotificationToJson(this); @@ -3823,329 +3906,343 @@ final _deserializers = { List: (final data) => (data as List) .map((final e) => CoreServerCapabilities.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcs: (final data) => CoreServerCapabilitiesOcs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => CoreServerCapabilitiesOcs.fromJson(e as Map)) + CoreServerCapabilities_Ocs: (final data) => CoreServerCapabilities_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => CoreServerCapabilities_Ocs.fromJson(e as Map)) .toList(), OCSMeta: (final data) => OCSMeta.fromJson(data as Map), List: (final data) => (data as List).map((final e) => OCSMeta.fromJson(e as Map)).toList(), - CoreServerCapabilitiesOcsData: (final data) => CoreServerCapabilitiesOcsData.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsData.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data: (final data) => + CoreServerCapabilities_Ocs_Data.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataVersion: (final data) => - CoreServerCapabilitiesOcsDataVersion.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataVersion.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Version: (final data) => + CoreServerCapabilities_Ocs_Data_Version.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Version.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilities: (final data) => - CoreServerCapabilitiesOcsDataCapabilities.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilities.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCore: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesCore.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesCore.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Core: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesBruteforce: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesBruteforce.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesBruteforce.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFiles: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFiles.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesFiles.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Files: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesActivity: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesActivity.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesActivity.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Activity: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCircles: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesCircles.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesCircles.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource.fromJson(e as Map)) - .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( + data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( + e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesOcm: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesOcm.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesOcm.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesDav: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesDav.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesDav.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Dav: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal.fromJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal.fromJson( + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote.fromJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote.fromJson( - e as Map)) - .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser.fromJson(e as Map)) + List: (final data) => + (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( + e as Map)) + .toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( + data as Map), + List: (final data) => + (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( + e as Map)) + .toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( + e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( + data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( + e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported.fromJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( data as Map), - List: (final data) => + List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported.fromJson( + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop.fromJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop.fromJson( + List: (final data) => + (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( + e as Map)) + .toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( + data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword.fromJson(e as Map)) - .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate.fromJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( + data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesNotes: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesNotes.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesNotes.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Notes: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesNotifications: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesNotifications.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesNotifications.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Notifications: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesTheming: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesTheming.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesTheming.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Theming: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesUserStatus: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesUserStatus.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesUserStatus.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson(e as Map)) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus: (final data) => - CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus: (final data) => + CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson(e as Map)) .toList(), CoreNavigationApps: (final data) => CoreNavigationApps.fromJson(data as Map), List: (final data) => (data as List) .map((final e) => CoreNavigationApps.fromJson(e as Map)) .toList(), - CoreNavigationAppsOcs: (final data) => CoreNavigationAppsOcs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => CoreNavigationAppsOcs.fromJson(e as Map)) + CoreNavigationApps_Ocs: (final data) => CoreNavigationApps_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => CoreNavigationApps_Ocs.fromJson(e as Map)) .toList(), - CoreNavigationAppsOcsData: (final data) => CoreNavigationAppsOcsData.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => CoreNavigationAppsOcsData.fromJson(e as Map)) + CoreNavigationApps_Ocs_Data: (final data) => CoreNavigationApps_Ocs_Data.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => CoreNavigationApps_Ocs_Data.fromJson(e as Map)) .toList(), CoreLoginFlowInit: (final data) => CoreLoginFlowInit.fromJson(data as Map), List: (final data) => (data as List) .map((final e) => CoreLoginFlowInit.fromJson(e as Map)) .toList(), - CoreLoginFlowInitPoll: (final data) => CoreLoginFlowInitPoll.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => CoreLoginFlowInitPoll.fromJson(e as Map)) + CoreLoginFlowInit_Poll: (final data) => CoreLoginFlowInit_Poll.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => CoreLoginFlowInit_Poll.fromJson(e as Map)) .toList(), CoreLoginFlowResult: (final data) => CoreLoginFlowResult.fromJson(data as Map), List: (final data) => (data as List) @@ -4184,11 +4281,11 @@ final _deserializers = { .map( (final e) => NotificationsListNotifications.fromJson(e as Map)) .toList(), - NotificationsListNotificationsOcs: (final data) => - NotificationsListNotificationsOcs.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => NotificationsListNotificationsOcs.fromJson(e as Map)) + NotificationsListNotifications_Ocs: (final data) => + NotificationsListNotifications_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => NotificationsListNotifications_Ocs.fromJson(e as Map)) .toList(), NotificationsNotification: (final data) => NotificationsNotification.fromJson(data as Map), List: (final data) => (data as List) @@ -4204,19 +4301,19 @@ final _deserializers = { List: (final data) => (data as List) .map((final e) => NotificationsGetNotification.fromJson(e as Map)) .toList(), - NotificationsGetNotificationOcs: (final data) => - NotificationsGetNotificationOcs.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => NotificationsGetNotificationOcs.fromJson(e as Map)) + NotificationsGetNotification_Ocs: (final data) => + NotificationsGetNotification_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => NotificationsGetNotification_Ocs.fromJson(e as Map)) .toList(), NotificationsEmpty: (final data) => NotificationsEmpty.fromJson(data as Map), List: (final data) => (data as List) .map((final e) => NotificationsEmpty.fromJson(e as Map)) .toList(), - NotificationsEmptyOcs: (final data) => NotificationsEmptyOcs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NotificationsEmptyOcs.fromJson(e as Map)) + NotificationsEmpty_Ocs: (final data) => NotificationsEmpty_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NotificationsEmpty_Ocs.fromJson(e as Map)) .toList(), NotificationsPushServerRegistration: (final data) => NotificationsPushServerRegistration.fromJson(data as Map), @@ -4224,11 +4321,11 @@ final _deserializers = { .map( (final e) => NotificationsPushServerRegistration.fromJson(e as Map)) .toList(), - NotificationsPushServerRegistrationOcs: (final data) => - NotificationsPushServerRegistrationOcs.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => NotificationsPushServerRegistrationOcs.fromJson(e as Map)) + NotificationsPushServerRegistration_Ocs: (final data) => + NotificationsPushServerRegistration_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => NotificationsPushServerRegistration_Ocs.fromJson(e as Map)) .toList(), NotificationsPushServerSubscription: (final data) => NotificationsPushServerSubscription.fromJson(data as Map), @@ -4240,33 +4337,34 @@ final _deserializers = { List: (final data) => (data as List) .map((final e) => ProvisioningApiUser.fromJson(e as Map)) .toList(), - ProvisioningApiUserOcs: (final data) => ProvisioningApiUserOcs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => ProvisioningApiUserOcs.fromJson(e as Map)) + ProvisioningApiUser_Ocs: (final data) => ProvisioningApiUser_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => ProvisioningApiUser_Ocs.fromJson(e as Map)) .toList(), ProvisioningApiUserDetails: (final data) => ProvisioningApiUserDetails.fromJson(data as Map), List: (final data) => (data as List) .map((final e) => ProvisioningApiUserDetails.fromJson(e as Map)) .toList(), - ProvisioningApiUserDetailsQuota: (final data) => - ProvisioningApiUserDetailsQuota.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => ProvisioningApiUserDetailsQuota.fromJson(e as Map)) + ProvisioningApiUserDetails_Quota: (final data) => + ProvisioningApiUserDetails_Quota.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => ProvisioningApiUserDetails_Quota.fromJson(e as Map)) .toList(), - ProvisioningApiUserDetailsBackendCapabilities: (final data) => - ProvisioningApiUserDetailsBackendCapabilities.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => ProvisioningApiUserDetailsBackendCapabilities.fromJson(e as Map)) + ProvisioningApiUserDetails_BackendCapabilities: (final data) => + ProvisioningApiUserDetails_BackendCapabilities.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => ProvisioningApiUserDetails_BackendCapabilities.fromJson(e as Map)) .toList(), UserStatusFindAllStatuses: (final data) => UserStatusFindAllStatuses.fromJson(data as Map), List: (final data) => (data as List) .map((final e) => UserStatusFindAllStatuses.fromJson(e as Map)) .toList(), - UserStatusFindAllStatusesOcs: (final data) => UserStatusFindAllStatusesOcs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => UserStatusFindAllStatusesOcs.fromJson(e as Map)) + UserStatusFindAllStatuses_Ocs: (final data) => UserStatusFindAllStatuses_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => UserStatusFindAllStatuses_Ocs.fromJson(e as Map)) .toList(), UserStatusPublicUserStatus: (final data) => UserStatusPublicUserStatus.fromJson(data as Map), List: (final data) => (data as List) @@ -4280,17 +4378,17 @@ final _deserializers = { List: (final data) => (data as List) .map((final e) => UserStatusFindStatus.fromJson(e as Map)) .toList(), - UserStatusFindStatusOcs: (final data) => UserStatusFindStatusOcs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => UserStatusFindStatusOcs.fromJson(e as Map)) + UserStatusFindStatus_Ocs: (final data) => UserStatusFindStatus_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => UserStatusFindStatus_Ocs.fromJson(e as Map)) .toList(), UserStatusGetUserStatus: (final data) => UserStatusGetUserStatus.fromJson(data as Map), List: (final data) => (data as List) .map((final e) => UserStatusGetUserStatus.fromJson(e as Map)) .toList(), - UserStatusGetUserStatusOcs: (final data) => UserStatusGetUserStatusOcs.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => UserStatusGetUserStatusOcs.fromJson(e as Map)) + UserStatusGetUserStatus_Ocs: (final data) => UserStatusGetUserStatus_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => UserStatusGetUserStatus_Ocs.fromJson(e as Map)) .toList(), UserStatus: (final data) => UserStatus.fromJson(data as Map), List: (final data) => @@ -4299,11 +4397,11 @@ final _deserializers = { List: (final data) => (data as List) .map((final e) => UserStatusPredefinedStatuses.fromJson(e as Map)) .toList(), - UserStatusPredefinedStatusesOcs: (final data) => - UserStatusPredefinedStatusesOcs.fromJson(data as Map), - List: (final data) => (data as List) - .map( - (final e) => UserStatusPredefinedStatusesOcs.fromJson(e as Map)) + UserStatusPredefinedStatuses_Ocs: (final data) => + UserStatusPredefinedStatuses_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map( + (final e) => UserStatusPredefinedStatuses_Ocs.fromJson(e as Map)) .toList(), UserStatusPredefinedStatus: (final data) => UserStatusPredefinedStatus.fromJson(data as Map), List: (final data) => (data as List) @@ -4329,311 +4427,316 @@ final _serializers = { CoreServerCapabilities: (final data) => (data as CoreServerCapabilities).toJson(), List: (final data) => (data as List).map((final e) => (e as CoreServerCapabilities).toJson()).toList(), - CoreServerCapabilitiesOcs: (final data) => (data as CoreServerCapabilitiesOcs).toJson(), - List: (final data) => - (data as List).map((final e) => (e as CoreServerCapabilitiesOcs).toJson()).toList(), + CoreServerCapabilities_Ocs: (final data) => (data as CoreServerCapabilities_Ocs).toJson(), + List: (final data) => + (data as List).map((final e) => (e as CoreServerCapabilities_Ocs).toJson()).toList(), OCSMeta: (final data) => (data as OCSMeta).toJson(), List: (final data) => (data as List).map((final e) => (e as OCSMeta).toJson()).toList(), - CoreServerCapabilitiesOcsData: (final data) => (data as CoreServerCapabilitiesOcsData).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsData).toJson()) + CoreServerCapabilities_Ocs_Data: (final data) => (data as CoreServerCapabilities_Ocs_Data).toJson(), + List: (final data) => (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data).toJson()) .toList(), - CoreServerCapabilitiesOcsDataVersion: (final data) => (data as CoreServerCapabilitiesOcsDataVersion).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataVersion).toJson()) + CoreServerCapabilities_Ocs_Data_Version: (final data) => (data as CoreServerCapabilities_Ocs_Data_Version).toJson(), + List: (final data) => (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Version).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilities: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilities).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilities).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCore: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesCore).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesCore).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Core: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Core).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Core).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesBruteforce: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesBruteforce).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesBruteforce).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFiles: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFiles).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFiles).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Files: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Files).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Files).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesActivity: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesActivity).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesActivity).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Activity: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Activity).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Activity).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCircles: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesCircles).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesCircles).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource).toJson()) - .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source).toJson(), + List: (final data) => (data + as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source).toJson()) + .toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesOcm: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesOcm).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesOcm).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Ocm).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Ocm).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesDav: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesDav).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesDav).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Dav: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Dav).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Dav).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal).toJson(), - List: (final data) => (data - as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal).toJson()) - .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal).toJson(), + List: (final data) => + (data as List) + .map((final e) => + (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote).toJson(), + List: (final data) => + (data as List) + .map((final e) => + (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported).toJson(), - List: (final data) => - (data as List) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate).toJson(), + List: (final data) => (data + as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate).toJson()) + .toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported).toJson(), + List: (final data) => + (data as List) .map((final e) => - (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported).toJson()) + (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop).toJson(), - List: (final data) => (data - as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop).toJson()) - .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword).toJson()) - .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop).toJson(), + List: (final data) => + (data as List) + .map((final e) => + (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesNotes: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesNotes).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesNotes).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password).toJson(), + List: (final data) => (data + as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password).toJson()) + .toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate).toJson(), + List: (final data) => (data + as List) + .map( + (final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate).toJson()) + .toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Notes: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Notes).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Notes).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesNotifications: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesNotifications).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesNotifications).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Notifications: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Notifications).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Notifications).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesTheming: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesTheming).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesTheming).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_Theming: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_Theming).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Theming).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesUserStatus: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesUserStatus).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesUserStatus).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus).toJson()) .toList(), - CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus: (final data) => - (data as CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus).toJson()) + CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus: (final data) => + (data as CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus).toJson()) .toList(), CoreNavigationApps: (final data) => (data as CoreNavigationApps).toJson(), List: (final data) => (data as List).map((final e) => (e as CoreNavigationApps).toJson()).toList(), - CoreNavigationAppsOcs: (final data) => (data as CoreNavigationAppsOcs).toJson(), - List: (final data) => - (data as List).map((final e) => (e as CoreNavigationAppsOcs).toJson()).toList(), - CoreNavigationAppsOcsData: (final data) => (data as CoreNavigationAppsOcsData).toJson(), - List: (final data) => - (data as List).map((final e) => (e as CoreNavigationAppsOcsData).toJson()).toList(), + CoreNavigationApps_Ocs: (final data) => (data as CoreNavigationApps_Ocs).toJson(), + List: (final data) => + (data as List).map((final e) => (e as CoreNavigationApps_Ocs).toJson()).toList(), + CoreNavigationApps_Ocs_Data: (final data) => (data as CoreNavigationApps_Ocs_Data).toJson(), + List: (final data) => (data as List) + .map((final e) => (e as CoreNavigationApps_Ocs_Data).toJson()) + .toList(), CoreLoginFlowInit: (final data) => (data as CoreLoginFlowInit).toJson(), List: (final data) => (data as List).map((final e) => (e as CoreLoginFlowInit).toJson()).toList(), - CoreLoginFlowInitPoll: (final data) => (data as CoreLoginFlowInitPoll).toJson(), - List: (final data) => - (data as List).map((final e) => (e as CoreLoginFlowInitPoll).toJson()).toList(), + CoreLoginFlowInit_Poll: (final data) => (data as CoreLoginFlowInit_Poll).toJson(), + List: (final data) => + (data as List).map((final e) => (e as CoreLoginFlowInit_Poll).toJson()).toList(), CoreLoginFlowResult: (final data) => (data as CoreLoginFlowResult).toJson(), List: (final data) => (data as List).map((final e) => (e as CoreLoginFlowResult).toJson()).toList(), @@ -4664,9 +4767,9 @@ final _serializers = { List: (final data) => (data as List) .map((final e) => (e as NotificationsListNotifications).toJson()) .toList(), - NotificationsListNotificationsOcs: (final data) => (data as NotificationsListNotificationsOcs).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as NotificationsListNotificationsOcs).toJson()) + NotificationsListNotifications_Ocs: (final data) => (data as NotificationsListNotifications_Ocs).toJson(), + List: (final data) => (data as List) + .map((final e) => (e as NotificationsListNotifications_Ocs).toJson()) .toList(), NotificationsNotification: (final data) => (data as NotificationsNotification).toJson(), List: (final data) => @@ -4679,23 +4782,23 @@ final _serializers = { List: (final data) => (data as List) .map((final e) => (e as NotificationsGetNotification).toJson()) .toList(), - NotificationsGetNotificationOcs: (final data) => (data as NotificationsGetNotificationOcs).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as NotificationsGetNotificationOcs).toJson()) + NotificationsGetNotification_Ocs: (final data) => (data as NotificationsGetNotification_Ocs).toJson(), + List: (final data) => (data as List) + .map((final e) => (e as NotificationsGetNotification_Ocs).toJson()) .toList(), NotificationsEmpty: (final data) => (data as NotificationsEmpty).toJson(), List: (final data) => (data as List).map((final e) => (e as NotificationsEmpty).toJson()).toList(), - NotificationsEmptyOcs: (final data) => (data as NotificationsEmptyOcs).toJson(), - List: (final data) => - (data as List).map((final e) => (e as NotificationsEmptyOcs).toJson()).toList(), + NotificationsEmpty_Ocs: (final data) => (data as NotificationsEmpty_Ocs).toJson(), + List: (final data) => + (data as List).map((final e) => (e as NotificationsEmpty_Ocs).toJson()).toList(), NotificationsPushServerRegistration: (final data) => (data as NotificationsPushServerRegistration).toJson(), List: (final data) => (data as List) .map((final e) => (e as NotificationsPushServerRegistration).toJson()) .toList(), - NotificationsPushServerRegistrationOcs: (final data) => (data as NotificationsPushServerRegistrationOcs).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as NotificationsPushServerRegistrationOcs).toJson()) + NotificationsPushServerRegistration_Ocs: (final data) => (data as NotificationsPushServerRegistration_Ocs).toJson(), + List: (final data) => (data as List) + .map((final e) => (e as NotificationsPushServerRegistration_Ocs).toJson()) .toList(), NotificationsPushServerSubscription: (final data) => (data as NotificationsPushServerSubscription).toJson(), List: (final data) => (data as List) @@ -4704,28 +4807,28 @@ final _serializers = { ProvisioningApiUser: (final data) => (data as ProvisioningApiUser).toJson(), List: (final data) => (data as List).map((final e) => (e as ProvisioningApiUser).toJson()).toList(), - ProvisioningApiUserOcs: (final data) => (data as ProvisioningApiUserOcs).toJson(), - List: (final data) => - (data as List).map((final e) => (e as ProvisioningApiUserOcs).toJson()).toList(), + ProvisioningApiUser_Ocs: (final data) => (data as ProvisioningApiUser_Ocs).toJson(), + List: (final data) => + (data as List).map((final e) => (e as ProvisioningApiUser_Ocs).toJson()).toList(), ProvisioningApiUserDetails: (final data) => (data as ProvisioningApiUserDetails).toJson(), List: (final data) => (data as List).map((final e) => (e as ProvisioningApiUserDetails).toJson()).toList(), - ProvisioningApiUserDetailsQuota: (final data) => (data as ProvisioningApiUserDetailsQuota).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as ProvisioningApiUserDetailsQuota).toJson()) + ProvisioningApiUserDetails_Quota: (final data) => (data as ProvisioningApiUserDetails_Quota).toJson(), + List: (final data) => (data as List) + .map((final e) => (e as ProvisioningApiUserDetails_Quota).toJson()) .toList(), - ProvisioningApiUserDetailsBackendCapabilities: (final data) => - (data as ProvisioningApiUserDetailsBackendCapabilities).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as ProvisioningApiUserDetailsBackendCapabilities).toJson()) + ProvisioningApiUserDetails_BackendCapabilities: (final data) => + (data as ProvisioningApiUserDetails_BackendCapabilities).toJson(), + List: (final data) => + (data as List) + .map((final e) => (e as ProvisioningApiUserDetails_BackendCapabilities).toJson()) .toList(), UserStatusFindAllStatuses: (final data) => (data as UserStatusFindAllStatuses).toJson(), List: (final data) => (data as List).map((final e) => (e as UserStatusFindAllStatuses).toJson()).toList(), - UserStatusFindAllStatusesOcs: (final data) => (data as UserStatusFindAllStatusesOcs).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as UserStatusFindAllStatusesOcs).toJson()) + UserStatusFindAllStatuses_Ocs: (final data) => (data as UserStatusFindAllStatuses_Ocs).toJson(), + List: (final data) => (data as List) + .map((final e) => (e as UserStatusFindAllStatuses_Ocs).toJson()) .toList(), UserStatusPublicUserStatus: (final data) => (data as UserStatusPublicUserStatus).toJson(), List: (final data) => @@ -4736,24 +4839,25 @@ final _serializers = { UserStatusFindStatus: (final data) => (data as UserStatusFindStatus).toJson(), List: (final data) => (data as List).map((final e) => (e as UserStatusFindStatus).toJson()).toList(), - UserStatusFindStatusOcs: (final data) => (data as UserStatusFindStatusOcs).toJson(), - List: (final data) => - (data as List).map((final e) => (e as UserStatusFindStatusOcs).toJson()).toList(), + UserStatusFindStatus_Ocs: (final data) => (data as UserStatusFindStatus_Ocs).toJson(), + List: (final data) => + (data as List).map((final e) => (e as UserStatusFindStatus_Ocs).toJson()).toList(), UserStatusGetUserStatus: (final data) => (data as UserStatusGetUserStatus).toJson(), List: (final data) => (data as List).map((final e) => (e as UserStatusGetUserStatus).toJson()).toList(), - UserStatusGetUserStatusOcs: (final data) => (data as UserStatusGetUserStatusOcs).toJson(), - List: (final data) => - (data as List).map((final e) => (e as UserStatusGetUserStatusOcs).toJson()).toList(), + UserStatusGetUserStatus_Ocs: (final data) => (data as UserStatusGetUserStatus_Ocs).toJson(), + List: (final data) => (data as List) + .map((final e) => (e as UserStatusGetUserStatus_Ocs).toJson()) + .toList(), UserStatus: (final data) => (data as UserStatus).toJson(), List: (final data) => (data as List).map((final e) => (e as UserStatus).toJson()).toList(), UserStatusPredefinedStatuses: (final data) => (data as UserStatusPredefinedStatuses).toJson(), List: (final data) => (data as List) .map((final e) => (e as UserStatusPredefinedStatuses).toJson()) .toList(), - UserStatusPredefinedStatusesOcs: (final data) => (data as UserStatusPredefinedStatusesOcs).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as UserStatusPredefinedStatusesOcs).toJson()) + UserStatusPredefinedStatuses_Ocs: (final data) => (data as UserStatusPredefinedStatuses_Ocs).toJson(), + List: (final data) => (data as List) + .map((final e) => (e as UserStatusPredefinedStatuses_Ocs).toJson()) .toList(), UserStatusPredefinedStatus: (final data) => (data as UserStatusPredefinedStatus).toJson(), List: (final data) => diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.g.dart b/packages/nextcloud/lib/src/nextcloud.openapi.g.dart index 4a0dd648..8ff50a00 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.g.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.g.dart @@ -7,14 +7,14 @@ part of 'nextcloud.openapi.dart'; // ************************************************************************** CoreServerStatus _$CoreServerStatusFromJson(Map json) => CoreServerStatus( - installed: json['installed'] as bool?, - maintenance: json['maintenance'] as bool?, - needsDbUpgrade: json['needsDbUpgrade'] as bool?, - version: json['version'] as String?, - versionstring: json['versionstring'] as String?, - edition: json['edition'] as String?, - productname: json['productname'] as String?, - extendedSupport: json['extendedSupport'] as bool?, + installed: json['installed'] as bool, + maintenance: json['maintenance'] as bool, + needsDbUpgrade: json['needsDbUpgrade'] as bool, + version: json['version'] as String, + versionstring: json['versionstring'] as String, + edition: json['edition'] as String, + productname: json['productname'] as String, + extendedSupport: json['extendedSupport'] as bool, ); Map _$CoreServerStatusToJson(CoreServerStatus instance) => { @@ -29,11 +29,11 @@ Map _$CoreServerStatusToJson(CoreServerStatus instance) => json) => OCSMeta( - status: json['status'] as String?, - statuscode: json['statuscode'] as int?, + status: json['status'] as String, + statuscode: json['statuscode'] as int, message: json['message'] as String?, - totalitems: json['totalitems'] as String?, - itemsperpage: json['itemsperpage'] as String?, + totalitems: json['totalitems'] as String, + itemsperpage: json['itemsperpage'] as String, ); Map _$OCSMetaToJson(OCSMeta instance) => { @@ -44,17 +44,18 @@ Map _$OCSMetaToJson(OCSMeta instance) => { 'itemsperpage': instance.itemsperpage, }; -CoreServerCapabilitiesOcsDataVersion _$CoreServerCapabilitiesOcsDataVersionFromJson(Map json) => - CoreServerCapabilitiesOcsDataVersion( - major: json['major'] as int?, - minor: json['minor'] as int?, - micro: json['micro'] as int?, - string: json['string'] as String?, - edition: json['edition'] as String?, - extendedSupport: json['extendedSupport'] as bool?, +CoreServerCapabilities_Ocs_Data_Version _$CoreServerCapabilities_Ocs_Data_VersionFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Version( + major: json['major'] as int, + minor: json['minor'] as int, + micro: json['micro'] as int, + string: json['string'] as String, + edition: json['edition'] as String, + extendedSupport: json['extendedSupport'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataVersionToJson(CoreServerCapabilitiesOcsDataVersion instance) => +Map _$CoreServerCapabilities_Ocs_Data_VersionToJson( + CoreServerCapabilities_Ocs_Data_Version instance) => { 'major': instance.major, 'minor': instance.minor, @@ -64,118 +65,116 @@ Map _$CoreServerCapabilitiesOcsDataVersionToJson(CoreServerCapa 'extendedSupport': instance.extendedSupport, }; -CoreServerCapabilitiesOcsDataCapabilitiesCore _$CoreServerCapabilitiesOcsDataCapabilitiesCoreFromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_Core _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreFromJson( Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesCore( - pollinterval: json['pollinterval'] as int?, - webdavRoot: json['webdav-root'] as String?, + CoreServerCapabilities_Ocs_Data_Capabilities_Core( + pollinterval: json['pollinterval'] as int, + webdavRoot: json['webdav-root'] as String, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesCoreToJson( - CoreServerCapabilitiesOcsDataCapabilitiesCore instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Core instance) => { 'pollinterval': instance.pollinterval, 'webdav-root': instance.webdavRoot, }; -CoreServerCapabilitiesOcsDataCapabilitiesBruteforce _$CoreServerCapabilitiesOcsDataCapabilitiesBruteforceFromJson( - Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesBruteforce( - delay: json['delay'] as int?, - ); +CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce + _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce( + delay: json['delay'] as int, + ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesBruteforceToJson( - CoreServerCapabilitiesOcsDataCapabilitiesBruteforce instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce instance) => { 'delay': instance.delay, }; -CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable - _$CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailableFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable( - size: (json['size'] as List?)?.map((e) => e as String).toList(), +CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable + _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable( + size: (json['size'] as List).map((e) => e as String).toList(), ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailableToJson( - CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable instance) => { 'size': instance.size, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditingFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing( - url: json['url'] as String?, - etag: json['etag'] as String?, +CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing + _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing( + url: json['url'] as String, + etag: json['etag'] as String, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditingToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing instance) => { 'url': instance.url, 'etag': instance.etag, }; -CoreServerCapabilitiesOcsDataCapabilitiesFiles _$CoreServerCapabilitiesOcsDataCapabilitiesFilesFromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_Files _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesFromJson( Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFiles( - bigfilechunking: json['bigfilechunking'] as bool?, - blacklistedFiles: (json['blacklisted_files'] as List?)?.map((e) => e as String).toList(), - directEditing: json['directEditing'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing.fromJson( - json['directEditing'] as Map), - comments: json['comments'] as bool?, - undelete: json['undelete'] as bool?, - versioning: json['versioning'] as bool?, - ); - -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFiles instance) => + CoreServerCapabilities_Ocs_Data_Capabilities_Files( + bigfilechunking: json['bigfilechunking'] as bool, + blacklistedFiles: (json['blacklisted_files'] as List).map((e) => e as String).toList(), + directEditing: CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson( + json['directEditing'] as Map), + comments: json['comments'] as bool, + undelete: json['undelete'] as bool, + versioning: json['versioning'] as bool, + ); + +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Files instance) => { 'bigfilechunking': instance.bigfilechunking, 'blacklisted_files': instance.blacklistedFiles, - 'directEditing': instance.directEditing?.toJson(), + 'directEditing': instance.directEditing.toJson(), 'comments': instance.comments, 'undelete': instance.undelete, 'versioning': instance.versioning, }; -CoreServerCapabilitiesOcsDataCapabilitiesActivity _$CoreServerCapabilitiesOcsDataCapabilitiesActivityFromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_Activity _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityFromJson( Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesActivity( - apiv2: (json['apiv2'] as List?)?.map((e) => e as String).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Activity( + apiv2: (json['apiv2'] as List).map((e) => e as String).toList(), ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesActivityToJson( - CoreServerCapabilitiesOcsDataCapabilitiesActivity instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Activity instance) => { 'apiv2': instance.apiv2, }; -CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatusFromJson( - Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus( - globalScale: json['globalScale'] as bool?, - ); +CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status( + globalScale: json['globalScale'] as bool, + ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatusToJson( - CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status instance) => { 'globalScale': instance.globalScale, }; -CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettingsFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings( - frontendEnabled: json['frontendEnabled'] as bool?, - allowedCircles: json['allowedCircles'] as int?, - allowedUserTypes: json['allowedUserTypes'] as int?, - membersLimit: json['membersLimit'] as int?, +CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings( + frontendEnabled: json['frontendEnabled'] as bool, + allowedCircles: json['allowedCircles'] as int, + allowedUserTypes: json['allowedUserTypes'] as int, + membersLimit: json['membersLimit'] as int, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettingsToJson( - CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings instance) => { 'frontendEnabled': instance.frontendEnabled, 'allowedCircles': instance.allowedCircles, @@ -183,599 +182,559 @@ Map _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettingsT 'membersLimit': instance.membersLimit, }; -CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSourceFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource( +CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source( core: json['core'], extra: json['extra'], ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSourceToJson( - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source instance) => { 'core': instance.core, 'extra': instance.extra, }; -CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants( +CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants( flags: json['flags'], - source: json['source'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource.fromJson( - json['source'] as Map), + source: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( + json['source'] as Map), ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsToJson( - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants instance) => { 'flags': instance.flags, - 'source': instance.source?.toJson(), + 'source': instance.source.toJson(), }; -CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfigFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig( - coreFlags: (json['coreFlags'] as List?)?.map((e) => e as int).toList(), - systemFlags: (json['systemFlags'] as List?)?.map((e) => e as int).toList(), +CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config( + coreFlags: (json['coreFlags'] as List).map((e) => e as int).toList(), + systemFlags: (json['systemFlags'] as List).map((e) => e as int).toList(), ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfigToJson( - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config instance) => { 'coreFlags': instance.coreFlags, 'systemFlags': instance.systemFlags, }; -CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleFromJson( - Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle( - constants: json['constants'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants.fromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle( + constants: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( json['constants'] as Map), - config: json['config'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConfig.fromJson( + config: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( json['config'] as Map), - ); + ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleToJson( - CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle instance) => { - 'constants': instance.constants?.toJson(), - 'config': instance.config?.toJson(), + 'constants': instance.constants.toJson(), + 'config': instance.config.toJson(), }; -CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants - _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstantsFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants( +CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants( level: json['level'], ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstantsToJson( - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants instance) => { 'level': instance.level, }; -CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberFromJson( - Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember( - constants: json['constants'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants.fromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member + _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member( + constants: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( json['constants'] as Map), - type: json['type'], - ); + type: json['type'], + ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberToJson( - CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member instance) => { - 'constants': instance.constants?.toJson(), + 'constants': instance.constants.toJson(), 'type': instance.type, }; -CoreServerCapabilitiesOcsDataCapabilitiesCircles _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesFromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_Circles _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson( Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesCircles( - version: json['version'] as String?, - status: json['status'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus.fromJson(json['status'] as Map), - settings: json['settings'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings.fromJson(json['settings'] as Map), - circle: json['circle'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle.fromJson(json['circle'] as Map), - member: json['member'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember.fromJson(json['member'] as Map), - ); - -Map _$CoreServerCapabilitiesOcsDataCapabilitiesCirclesToJson( - CoreServerCapabilitiesOcsDataCapabilitiesCircles instance) => + CoreServerCapabilities_Ocs_Data_Capabilities_Circles( + version: json['version'] as String, + status: + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(json['status'] as Map), + settings: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson( + json['settings'] as Map), + circle: + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(json['circle'] as Map), + member: + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(json['member'] as Map), + ); + +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Circles instance) => { 'version': instance.version, - 'status': instance.status?.toJson(), - 'settings': instance.settings?.toJson(), - 'circle': instance.circle?.toJson(), - 'member': instance.member?.toJson(), + 'status': instance.status.toJson(), + 'settings': instance.settings.toJson(), + 'circle': instance.circle.toJson(), + 'member': instance.member.toJson(), }; -CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols - _$CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocolsFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols( - webdav: json['webdav'] as String?, +CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols + _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols( + webdav: json['webdav'] as String, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocolsToJson( - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols instance) => { 'webdav': instance.webdav, }; -CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes - _$CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes( - name: json['name'] as String?, - shareTypes: (json['shareTypes'] as List?)?.map((e) => e as String).toList(), - protocols: json['protocols'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesProtocols.fromJson( - json['protocols'] as Map), +CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes + _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes( + name: json['name'] as String, + shareTypes: (json['shareTypes'] as List).map((e) => e as String).toList(), + protocols: CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( + json['protocols'] as Map), ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesToJson( - CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes instance) => { 'name': instance.name, 'shareTypes': instance.shareTypes, - 'protocols': instance.protocols?.toJson(), + 'protocols': instance.protocols.toJson(), }; -CoreServerCapabilitiesOcsDataCapabilitiesOcm _$CoreServerCapabilitiesOcsDataCapabilitiesOcmFromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_Ocm _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson( Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesOcm( - enabled: json['enabled'] as bool?, - apiVersion: json['apiVersion'] as String?, - endPoint: json['endPoint'] as String?, - resourceTypes: (json['resourceTypes'] as List?) - ?.map((e) => CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypes.fromJson(e as Map)) + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm( + enabled: json['enabled'] as bool, + apiVersion: json['apiVersion'] as String, + endPoint: json['endPoint'] as String, + resourceTypes: (json['resourceTypes'] as List) + .map( + (e) => CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(e as Map)) .toList(), ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesOcmToJson( - CoreServerCapabilitiesOcsDataCapabilitiesOcm instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm instance) => { 'enabled': instance.enabled, 'apiVersion': instance.apiVersion, 'endPoint': instance.endPoint, - 'resourceTypes': instance.resourceTypes?.map((e) => e.toJson()).toList(), + 'resourceTypes': instance.resourceTypes.map((e) => e.toJson()).toList(), }; -CoreServerCapabilitiesOcsDataCapabilitiesDav _$CoreServerCapabilitiesOcsDataCapabilitiesDavFromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_Dav _$CoreServerCapabilities_Ocs_Data_Capabilities_DavFromJson( Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesDav( - chunking: json['chunking'] as String?, + CoreServerCapabilities_Ocs_Data_Capabilities_Dav( + chunking: json['chunking'] as String, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesDavToJson( - CoreServerCapabilitiesOcsDataCapabilitiesDav instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_DavToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Dav instance) => { 'chunking': instance.chunking, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPasswordFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword( - enforced: json['enforced'] as bool?, - askForOptionalPassword: json['askForOptionalPassword'] as bool?, +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password( + enforced: json['enforced'] as bool, + askForOptionalPassword: json['askForOptionalPassword'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPasswordToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password instance) => { 'enforced': instance.enforced, 'askForOptionalPassword': instance.askForOptionalPassword, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate( - enabled: json['enabled'] as bool?, +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate( + enabled: json['enabled'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternalFromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalFromJson( Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal( - enabled: json['enabled'] as bool?, + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal( + enabled: json['enabled'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternalToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemoteFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote( - enabled: json['enabled'] as bool?, +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteFromJson( + Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote( + enabled: json['enabled'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemoteToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic( - enabled: json['enabled'] as bool?, - password: json['password'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword.fromJson( - json['password'] as Map), - expireDate: json['expire_date'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate.fromJson( - json['expire_date'] as Map), - multipleLinks: json['multiple_links'] as bool?, - expireDateInternal: json['expire_date_internal'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateInternal.fromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public( + enabled: json['enabled'] as bool, + password: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( + json['password'] as Map), + expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( + json['expire_date'] as Map), + multipleLinks: json['multiple_links'] as bool, + expireDateInternal: + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( json['expire_date_internal'] as Map), - expireDateRemote: json['expire_date_remote'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDateRemote.fromJson( - json['expire_date_remote'] as Map), - sendMail: json['send_mail'] as bool?, - upload: json['upload'] as bool?, - uploadFilesDrop: json['upload_files_drop'] as bool?, + expireDateRemote: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( + json['expire_date_remote'] as Map), + sendMail: json['send_mail'] as bool, + upload: json['upload'] as bool, + uploadFilesDrop: json['upload_files_drop'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public instance) => { 'enabled': instance.enabled, - 'password': instance.password?.toJson(), - 'expire_date': instance.expireDate?.toJson(), + 'password': instance.password.toJson(), + 'expire_date': instance.expireDate.toJson(), 'multiple_links': instance.multipleLinks, - 'expire_date_internal': instance.expireDateInternal?.toJson(), - 'expire_date_remote': instance.expireDateRemote?.toJson(), + 'expire_date_internal': instance.expireDateInternal.toJson(), + 'expire_date_remote': instance.expireDateRemote.toJson(), 'send_mail': instance.sendMail, 'upload': instance.upload, 'upload_files_drop': instance.uploadFilesDrop, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDateFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate( - enabled: json['enabled'] as bool?, +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate( + enabled: json['enabled'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDateToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser( - sendMail: json['send_mail'] as bool?, - expireDate: json['expire_date'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserExpireDate.fromJson( - json['expire_date'] as Map), +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User( + sendMail: json['send_mail'] as bool, + expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( + json['expire_date'] as Map), ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUserToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User instance) => { 'send_mail': instance.sendMail, - 'expire_date': instance.expireDate?.toJson(), + 'expire_date': instance.expireDate.toJson(), }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDateFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate( - enabled: json['enabled'] as bool?, +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate( + enabled: json['enabled'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDateToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup( - enabled: json['enabled'] as bool?, - expireDate: json['expire_date'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupExpireDate.fromJson( - json['expire_date'] as Map), +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group( + enabled: json['enabled'] as bool, + expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( + json['expire_date'] as Map), ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroupToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group instance) => { 'enabled': instance.enabled, - 'expire_date': instance.expireDate?.toJson(), + 'expire_date': instance.expireDate.toJson(), }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate( - enabled: json['enabled'] as bool?, +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson( + Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate( + enabled: json['enabled'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupportedFromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedFromJson( Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported( - enabled: json['enabled'] as bool?, + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported( + enabled: json['enabled'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupportedToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation( - outgoing: json['outgoing'] as bool?, - incoming: json['incoming'] as bool?, - expireDate: json['expire_date'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDate.fromJson( - json['expire_date'] as Map), - expireDateSupported: json['expire_date_supported'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationExpireDateSupported.fromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation( + outgoing: json['outgoing'] as bool, + incoming: json['incoming'] as bool, + expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( + json['expire_date'] as Map), + expireDateSupported: + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( json['expire_date_supported'] as Map), ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederationToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation instance) => { 'outgoing': instance.outgoing, 'incoming': instance.incoming, - 'expire_date': instance.expireDate?.toJson(), - 'expire_date_supported': instance.expireDateSupported?.toJson(), + 'expire_date': instance.expireDate.toJson(), + 'expire_date_supported': instance.expireDateSupported.toJson(), }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingShareeFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee( - queryLookupDefault: json['query_lookup_default'] as bool?, - alwaysShowUnique: json['always_show_unique'] as bool?, +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee( + queryLookupDefault: json['query_lookup_default'] as bool, + alwaysShowUnique: json['always_show_unique'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingShareeToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee instance) => { 'query_lookup_default': instance.queryLookupDefault, 'always_show_unique': instance.alwaysShowUnique, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDropFromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropFromJson( Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop( - enabled: json['enabled'] as bool?, + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop( + enabled: json['enabled'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDropToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPasswordFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword( - enabled: json['enabled'] as bool?, - enforced: json['enforced'] as bool?, +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordFromJson( + Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password( + enabled: json['enabled'] as bool, + enforced: json['enforced'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPasswordToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password instance) => { 'enabled': instance.enabled, 'enforced': instance.enforced, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDateFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate( - enabled: json['enabled'] as bool?, - enforced: json['enforced'] as bool?, +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateFromJson( + Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate( + enabled: json['enabled'] as bool, + enforced: json['enforced'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDateToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate instance) => { 'enabled': instance.enabled, 'enforced': instance.enforced, }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail - _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail( - enabled: json['enabled'] as bool?, - sendPasswordByMail: json['send_password_by_mail'] as bool?, - uploadFilesDrop: json['upload_files_drop'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailUploadFilesDrop.fromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail( + enabled: json['enabled'] as bool, + sendPasswordByMail: json['send_password_by_mail'] as bool, + uploadFilesDrop: + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( json['upload_files_drop'] as Map), - password: json['password'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword.fromJson( - json['password'] as Map), - expireDate: json['expire_date'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailExpireDate.fromJson( - json['expire_date'] as Map), + password: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( + json['password'] as Map), + expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( + json['expire_date'] as Map), ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail instance) => { 'enabled': instance.enabled, 'send_password_by_mail': instance.sendPasswordByMail, - 'upload_files_drop': instance.uploadFilesDrop?.toJson(), - 'password': instance.password?.toJson(), - 'expire_date': instance.expireDate?.toJson(), + 'upload_files_drop': instance.uploadFilesDrop.toJson(), + 'password': instance.password.toJson(), + 'expire_date': instance.expireDate.toJson(), }; -CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFromJson( - Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing( - apiEnabled: json['api_enabled'] as bool?, - public: json['public'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic.fromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing + _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing( + apiEnabled: json['api_enabled'] as bool, + public: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson( json['public'] as Map), - resharing: json['resharing'] as bool?, - user: json['user'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser.fromJson(json['user'] as Map), - groupSharing: json['group_sharing'] as bool?, - group: json['group'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup.fromJson(json['group'] as Map), - defaultPermissions: json['default_permissions'] as int?, - federation: json['federation'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation.fromJson( + resharing: json['resharing'] as bool, + user: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson( + json['user'] as Map), + groupSharing: json['group_sharing'] as bool, + group: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson( + json['group'] as Map), + defaultPermissions: json['default_permissions'] as int, + federation: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( json['federation'] as Map), - sharee: json['sharee'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee.fromJson( + sharee: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( json['sharee'] as Map), - sharebymail: json['sharebymail'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail.fromJson( + sharebymail: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( json['sharebymail'] as Map), - ); + ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingToJson( - CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing instance) => { 'api_enabled': instance.apiEnabled, - 'public': instance.public?.toJson(), + 'public': instance.public.toJson(), 'resharing': instance.resharing, - 'user': instance.user?.toJson(), + 'user': instance.user.toJson(), 'group_sharing': instance.groupSharing, - 'group': instance.group?.toJson(), + 'group': instance.group.toJson(), 'default_permissions': instance.defaultPermissions, - 'federation': instance.federation?.toJson(), - 'sharee': instance.sharee?.toJson(), - 'sharebymail': instance.sharebymail?.toJson(), + 'federation': instance.federation.toJson(), + 'sharee': instance.sharee.toJson(), + 'sharebymail': instance.sharebymail.toJson(), }; -CoreServerCapabilitiesOcsDataCapabilitiesNotes _$CoreServerCapabilitiesOcsDataCapabilitiesNotesFromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_Notes _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson( Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesNotes( - apiVersion: (json['api_version'] as List?)?.map((e) => e as String).toList(), - version: json['version'] as String?, + CoreServerCapabilities_Ocs_Data_Capabilities_Notes( + apiVersion: (json['api_version'] as List).map((e) => e as String).toList(), + version: json['version'] as String, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesNotesToJson( - CoreServerCapabilitiesOcsDataCapabilitiesNotes instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Notes instance) => { 'api_version': instance.apiVersion, 'version': instance.version, }; -CoreServerCapabilitiesOcsDataCapabilitiesNotifications _$CoreServerCapabilitiesOcsDataCapabilitiesNotificationsFromJson( - Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesNotifications( - ocsEndpoints: (json['ocs-endpoints'] as List?)?.map((e) => e as String).toList(), - push: (json['push'] as List?)?.map((e) => e as String).toList(), - adminNotifications: (json['admin-notifications'] as List?)?.map((e) => e as String).toList(), - ); +CoreServerCapabilities_Ocs_Data_Capabilities_Notifications + _$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_Notifications( + ocsEndpoints: (json['ocs-endpoints'] as List).map((e) => e as String).toList(), + push: (json['push'] as List).map((e) => e as String).toList(), + adminNotifications: (json['admin-notifications'] as List).map((e) => e as String).toList(), + ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesNotificationsToJson( - CoreServerCapabilitiesOcsDataCapabilitiesNotifications instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Notifications instance) => { 'ocs-endpoints': instance.ocsEndpoints, 'push': instance.push, 'admin-notifications': instance.adminNotifications, }; -CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi - _$CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApiFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi( - generate: json['generate'] as String?, - validate: json['validate'] as String?, +CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api + _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api( + generate: json['generate'] as String, + validate: json['validate'] as String, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApiToJson( - CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api instance) => { 'generate': instance.generate, 'validate': instance.validate, }; -CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy - _$CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy( - minLength: json['minLength'] as int?, - enforceNonCommonPassword: json['enforceNonCommonPassword'] as bool?, - enforceNumericCharacters: json['enforceNumericCharacters'] as bool?, - enforceSpecialCharacters: json['enforceSpecialCharacters'] as bool?, - enforceUpperLowerCase: json['enforceUpperLowerCase'] as bool?, - api: json['api'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi.fromJson( - json['api'] as Map), +CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy + _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy( + minLength: json['minLength'] as int, + enforceNonCommonPassword: json['enforceNonCommonPassword'] as bool, + enforceNumericCharacters: json['enforceNumericCharacters'] as bool, + enforceSpecialCharacters: json['enforceSpecialCharacters'] as bool, + enforceUpperLowerCase: json['enforceUpperLowerCase'] as bool, + api: CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson( + json['api'] as Map), ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyToJson( - CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy instance) => { 'minLength': instance.minLength, 'enforceNonCommonPassword': instance.enforceNonCommonPassword, 'enforceNumericCharacters': instance.enforceNumericCharacters, 'enforceSpecialCharacters': instance.enforceSpecialCharacters, 'enforceUpperLowerCase': instance.enforceUpperLowerCase, - 'api': instance.api?.toJson(), + 'api': instance.api.toJson(), }; -CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi - _$CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApiFromJson(Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi( - version: json['version'] as String?, - accountPropertyScopesVersion: json['AccountPropertyScopesVersion'] as int?, - accountPropertyScopesFederatedEnabled: json['AccountPropertyScopesFederatedEnabled'] as bool?, - accountPropertyScopesPublishedEnabled: json['AccountPropertyScopesPublishedEnabled'] as bool?, +CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi + _$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi( + version: json['version'] as String, + accountPropertyScopesVersion: json['AccountPropertyScopesVersion'] as int, + accountPropertyScopesFederatedEnabled: json['AccountPropertyScopesFederatedEnabled'] as bool, + accountPropertyScopesPublishedEnabled: json['AccountPropertyScopesPublishedEnabled'] as bool, ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApiToJson( - CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi instance) => { 'version': instance.version, 'AccountPropertyScopesVersion': instance.accountPropertyScopesVersion, @@ -783,27 +742,27 @@ Map _$CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApiT 'AccountPropertyScopesPublishedEnabled': instance.accountPropertyScopesPublishedEnabled, }; -CoreServerCapabilitiesOcsDataCapabilitiesTheming _$CoreServerCapabilitiesOcsDataCapabilitiesThemingFromJson( +CoreServerCapabilities_Ocs_Data_Capabilities_Theming _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingFromJson( Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesTheming( - name: json['name'] as String?, - url: json['url'] as String?, - slogan: json['slogan'] as String?, - color: json['color'] as String?, - colorText: json['color-text'] as String?, - colorElement: json['color-element'] as String?, - colorElementBright: json['color-element-bright'] as String?, - colorElementDark: json['color-element-dark'] as String?, - logo: json['logo'] as String?, - background: json['background'] as String?, - backgroundPlain: json['background-plain'] as bool?, - backgroundDefault: json['background-default'] as bool?, - logoheader: json['logoheader'] as String?, - favicon: json['favicon'] as String?, - ); - -Map _$CoreServerCapabilitiesOcsDataCapabilitiesThemingToJson( - CoreServerCapabilitiesOcsDataCapabilitiesTheming instance) => + CoreServerCapabilities_Ocs_Data_Capabilities_Theming( + name: json['name'] as String, + url: json['url'] as String, + slogan: json['slogan'] as String, + color: json['color'] as String, + colorText: json['color-text'] as String, + colorElement: json['color-element'] as String, + colorElementBright: json['color-element-bright'] as String, + colorElementDark: json['color-element-dark'] as String, + logo: json['logo'] as String, + background: json['background'] as String, + backgroundPlain: json['background-plain'] as bool, + backgroundDefault: json['background-default'] as bool, + logoheader: json['logoheader'] as String, + favicon: json['favicon'] as String, + ); + +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_Theming instance) => { 'name': instance.name, 'url': instance.url, @@ -821,102 +780,92 @@ Map _$CoreServerCapabilitiesOcsDataCapabilitiesThemingToJson( 'favicon': instance.favicon, }; -CoreServerCapabilitiesOcsDataCapabilitiesUserStatus _$CoreServerCapabilitiesOcsDataCapabilitiesUserStatusFromJson( - Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesUserStatus( - enabled: json['enabled'] as bool?, - supportsEmoji: json['supports_emoji'] as bool?, - ); +CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus + _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus( + enabled: json['enabled'] as bool, + supportsEmoji: json['supports_emoji'] as bool, + ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesUserStatusToJson( - CoreServerCapabilitiesOcsDataCapabilitiesUserStatus instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus instance) => { 'enabled': instance.enabled, 'supports_emoji': instance.supportsEmoji, }; -CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus _$CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatusFromJson( - Map json) => - CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus( - enabled: json['enabled'] as bool?, - ); +CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus + _$CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusFromJson(Map json) => + CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus( + enabled: json['enabled'] as bool, + ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatusToJson( - CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus instance) => +Map _$CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusToJson( + CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilitiesOcsDataCapabilities _$CoreServerCapabilitiesOcsDataCapabilitiesFromJson( +CoreServerCapabilities_Ocs_Data_Capabilities _$CoreServerCapabilities_Ocs_Data_CapabilitiesFromJson( Map json) => - CoreServerCapabilitiesOcsDataCapabilities( - core: json['core'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesCore.fromJson(json['core'] as Map), - bruteforce: json['bruteforce'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesBruteforce.fromJson(json['bruteforce'] as Map), - metadataAvailable: json['metadataAvailable'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesMetadataAvailable.fromJson( - json['metadataAvailable'] as Map), - files: json['files'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFiles.fromJson(json['files'] as Map), + CoreServerCapabilities_Ocs_Data_Capabilities( + core: CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json['core'] as Map), + bruteforce: + CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(json['bruteforce'] as Map), + metadataAvailable: CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson( + json['metadataAvailable'] as Map), + files: CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(json['files'] as Map), activity: json['activity'] == null ? null - : CoreServerCapabilitiesOcsDataCapabilitiesActivity.fromJson(json['activity'] as Map), + : CoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(json['activity'] as Map), circles: json['circles'] == null ? null - : CoreServerCapabilitiesOcsDataCapabilitiesCircles.fromJson(json['circles'] as Map), - ocm: json['ocm'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesOcm.fromJson(json['ocm'] as Map), - dav: json['dav'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilitiesDav.fromJson(json['dav'] as Map), + : CoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(json['circles'] as Map), + ocm: CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(json['ocm'] as Map), + dav: CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(json['dav'] as Map), filesSharing: json['files_sharing'] == null ? null - : CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing.fromJson( + : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson( json['files_sharing'] as Map), notes: json['notes'] == null ? null - : CoreServerCapabilitiesOcsDataCapabilitiesNotes.fromJson(json['notes'] as Map), + : CoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(json['notes'] as Map), notifications: json['notifications'] == null ? null - : CoreServerCapabilitiesOcsDataCapabilitiesNotifications.fromJson( + : CoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson( json['notifications'] as Map), passwordPolicy: json['password_policy'] == null ? null - : CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy.fromJson( + : CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson( json['password_policy'] as Map), provisioningApi: json['provisioning_api'] == null ? null - : CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi.fromJson( + : CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson( json['provisioning_api'] as Map), theming: json['theming'] == null ? null - : CoreServerCapabilitiesOcsDataCapabilitiesTheming.fromJson(json['theming'] as Map), + : CoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(json['theming'] as Map), userStatus: json['user_status'] == null ? null - : CoreServerCapabilitiesOcsDataCapabilitiesUserStatus.fromJson(json['user_status'] as Map), + : CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson( + json['user_status'] as Map), weatherStatus: json['weather_status'] == null ? null - : CoreServerCapabilitiesOcsDataCapabilitiesWeatherStatus.fromJson( + : CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson( json['weather_status'] as Map), ); -Map _$CoreServerCapabilitiesOcsDataCapabilitiesToJson( - CoreServerCapabilitiesOcsDataCapabilities instance) => +Map _$CoreServerCapabilities_Ocs_Data_CapabilitiesToJson( + CoreServerCapabilities_Ocs_Data_Capabilities instance) => { - 'core': instance.core?.toJson(), - 'bruteforce': instance.bruteforce?.toJson(), - 'metadataAvailable': instance.metadataAvailable?.toJson(), - 'files': instance.files?.toJson(), + 'core': instance.core.toJson(), + 'bruteforce': instance.bruteforce.toJson(), + 'metadataAvailable': instance.metadataAvailable.toJson(), + 'files': instance.files.toJson(), 'activity': instance.activity?.toJson(), 'circles': instance.circles?.toJson(), - 'ocm': instance.ocm?.toJson(), - 'dav': instance.dav?.toJson(), + 'ocm': instance.ocm.toJson(), + 'dav': instance.dav.toJson(), 'files_sharing': instance.filesSharing?.toJson(), 'notes': instance.notes?.toJson(), 'notifications': instance.notifications?.toJson(), @@ -927,54 +876,53 @@ Map _$CoreServerCapabilitiesOcsDataCapabilitiesToJson( 'weather_status': instance.weatherStatus?.toJson(), }; -CoreServerCapabilitiesOcsData _$CoreServerCapabilitiesOcsDataFromJson(Map json) => - CoreServerCapabilitiesOcsData( - version: json['version'] == null - ? null - : CoreServerCapabilitiesOcsDataVersion.fromJson(json['version'] as Map), - capabilities: json['capabilities'] == null - ? null - : CoreServerCapabilitiesOcsDataCapabilities.fromJson(json['capabilities'] as Map), +CoreServerCapabilities_Ocs_Data _$CoreServerCapabilities_Ocs_DataFromJson(Map json) => + CoreServerCapabilities_Ocs_Data( + version: CoreServerCapabilities_Ocs_Data_Version.fromJson(json['version'] as Map), + capabilities: CoreServerCapabilities_Ocs_Data_Capabilities.fromJson(json['capabilities'] as Map), ); -Map _$CoreServerCapabilitiesOcsDataToJson(CoreServerCapabilitiesOcsData instance) => { - 'version': instance.version?.toJson(), - 'capabilities': instance.capabilities?.toJson(), +Map _$CoreServerCapabilities_Ocs_DataToJson(CoreServerCapabilities_Ocs_Data instance) => + { + 'version': instance.version.toJson(), + 'capabilities': instance.capabilities.toJson(), }; -CoreServerCapabilitiesOcs _$CoreServerCapabilitiesOcsFromJson(Map json) => CoreServerCapabilitiesOcs( - meta: json['meta'] == null ? null : OCSMeta.fromJson(json['meta'] as Map), - data: json['data'] == null ? null : CoreServerCapabilitiesOcsData.fromJson(json['data'] as Map), +CoreServerCapabilities_Ocs _$CoreServerCapabilities_OcsFromJson(Map json) => + CoreServerCapabilities_Ocs( + meta: OCSMeta.fromJson(json['meta'] as Map), + data: CoreServerCapabilities_Ocs_Data.fromJson(json['data'] as Map), ); -Map _$CoreServerCapabilitiesOcsToJson(CoreServerCapabilitiesOcs instance) => { - 'meta': instance.meta?.toJson(), - 'data': instance.data?.toJson(), +Map _$CoreServerCapabilities_OcsToJson(CoreServerCapabilities_Ocs instance) => { + 'meta': instance.meta.toJson(), + 'data': instance.data.toJson(), }; CoreServerCapabilities _$CoreServerCapabilitiesFromJson(Map json) => CoreServerCapabilities( - ocs: json['ocs'] == null ? null : CoreServerCapabilitiesOcs.fromJson(json['ocs'] as Map), + ocs: CoreServerCapabilities_Ocs.fromJson(json['ocs'] as Map), ); Map _$CoreServerCapabilitiesToJson(CoreServerCapabilities instance) => { - 'ocs': instance.ocs?.toJson(), + 'ocs': instance.ocs.toJson(), }; -CoreNavigationAppsOcsData _$CoreNavigationAppsOcsDataFromJson(Map json) => CoreNavigationAppsOcsData( - id: json['id'] as String?, - order: json['order'] == null ? null : CoreNavigationAppsOcsDataOrder.fromJson(json['order']), - href: json['href'] as String?, - icon: json['icon'] as String?, - type: json['type'] as String?, - name: json['name'] as String?, - active: json['active'] as bool?, - classes: json['classes'] as String?, - unread: json['unread'] as int?, +CoreNavigationApps_Ocs_Data _$CoreNavigationApps_Ocs_DataFromJson(Map json) => + CoreNavigationApps_Ocs_Data( + id: json['id'] as String, + order: CoreNavigationApps_Ocs_Data_Order.fromJson(json['order']), + href: json['href'] as String, + icon: json['icon'] as String, + type: json['type'] as String, + name: json['name'] as String, + active: json['active'] as bool, + classes: json['classes'] as String, + unread: json['unread'] as int, ); -Map _$CoreNavigationAppsOcsDataToJson(CoreNavigationAppsOcsData instance) => { +Map _$CoreNavigationApps_Ocs_DataToJson(CoreNavigationApps_Ocs_Data instance) => { 'id': instance.id, - 'order': instance.order?.toJson(), + 'order': instance.order.toJson(), 'href': instance.href, 'icon': instance.icon, 'type': instance.type, @@ -984,50 +932,50 @@ Map _$CoreNavigationAppsOcsDataToJson(CoreNavigationAppsOcsData 'unread': instance.unread, }; -CoreNavigationAppsOcs _$CoreNavigationAppsOcsFromJson(Map json) => CoreNavigationAppsOcs( - meta: json['meta'] == null ? null : OCSMeta.fromJson(json['meta'] as Map), - data: (json['data'] as List?) - ?.map((e) => CoreNavigationAppsOcsData.fromJson(e as Map)) +CoreNavigationApps_Ocs _$CoreNavigationApps_OcsFromJson(Map json) => CoreNavigationApps_Ocs( + meta: OCSMeta.fromJson(json['meta'] as Map), + data: (json['data'] as List) + .map((e) => CoreNavigationApps_Ocs_Data.fromJson(e as Map)) .toList(), ); -Map _$CoreNavigationAppsOcsToJson(CoreNavigationAppsOcs instance) => { - 'meta': instance.meta?.toJson(), - 'data': instance.data?.map((e) => e.toJson()).toList(), +Map _$CoreNavigationApps_OcsToJson(CoreNavigationApps_Ocs instance) => { + 'meta': instance.meta.toJson(), + 'data': instance.data.map((e) => e.toJson()).toList(), }; CoreNavigationApps _$CoreNavigationAppsFromJson(Map json) => CoreNavigationApps( - ocs: json['ocs'] == null ? null : CoreNavigationAppsOcs.fromJson(json['ocs'] as Map), + ocs: CoreNavigationApps_Ocs.fromJson(json['ocs'] as Map), ); Map _$CoreNavigationAppsToJson(CoreNavigationApps instance) => { - 'ocs': instance.ocs?.toJson(), + 'ocs': instance.ocs.toJson(), }; -CoreLoginFlowInitPoll _$CoreLoginFlowInitPollFromJson(Map json) => CoreLoginFlowInitPoll( - token: json['token'] as String?, - endpoint: json['endpoint'] as String?, +CoreLoginFlowInit_Poll _$CoreLoginFlowInit_PollFromJson(Map json) => CoreLoginFlowInit_Poll( + token: json['token'] as String, + endpoint: json['endpoint'] as String, ); -Map _$CoreLoginFlowInitPollToJson(CoreLoginFlowInitPoll instance) => { +Map _$CoreLoginFlowInit_PollToJson(CoreLoginFlowInit_Poll instance) => { 'token': instance.token, 'endpoint': instance.endpoint, }; CoreLoginFlowInit _$CoreLoginFlowInitFromJson(Map json) => CoreLoginFlowInit( - poll: json['poll'] == null ? null : CoreLoginFlowInitPoll.fromJson(json['poll'] as Map), - login: json['login'] as String?, + poll: CoreLoginFlowInit_Poll.fromJson(json['poll'] as Map), + login: json['login'] as String, ); Map _$CoreLoginFlowInitToJson(CoreLoginFlowInit instance) => { - 'poll': instance.poll?.toJson(), + 'poll': instance.poll.toJson(), 'login': instance.login, }; CoreLoginFlowResult _$CoreLoginFlowResultFromJson(Map json) => CoreLoginFlowResult( - server: json['server'] as String?, - loginName: json['loginName'] as String?, - appPassword: json['appPassword'] as String?, + server: json['server'] as String, + loginName: json['loginName'] as String, + appPassword: json['appPassword'] as String, ); Map _$CoreLoginFlowResultToJson(CoreLoginFlowResult instance) => { @@ -1045,26 +993,26 @@ Map _$GetSupportedApiVersionsToJson(GetSupportedApiVersions ins }; NewsArticle _$NewsArticleFromJson(Map json) => NewsArticle( - id: json['id'] as int?, - guid: json['guid'] as String?, - guidHash: json['guidHash'] as String?, - url: json['url'] as String?, - title: json['title'] as String?, + id: json['id'] as int, + guid: json['guid'] as String, + guidHash: json['guidHash'] as String, + url: json['url'] as String, + title: json['title'] as String, author: json['author'] as String?, - pubDate: json['pubDate'] as int?, + pubDate: json['pubDate'] as int, updatedDate: json['updatedDate'] as int?, - body: json['body'] as String?, + body: json['body'] as String, enclosureMime: json['enclosureMime'] as String?, enclosureLink: json['enclosureLink'] as String?, mediaThumbnail: json['mediaThumbnail'] as String?, mediaDescription: json['mediaDescription'] as String?, - feedId: json['feedId'] as int?, - unread: json['unread'] as bool?, - starred: json['starred'] as bool?, - lastModified: json['lastModified'] as int?, - rtl: json['rtl'] as bool?, - fingerprint: json['fingerprint'] as String?, - contentHash: json['contentHash'] as String?, + feedId: json['feedId'] as int, + unread: json['unread'] as bool, + starred: json['starred'] as bool, + lastModified: json['lastModified'] as int, + rtl: json['rtl'] as bool, + fingerprint: json['fingerprint'] as String, + contentHash: json['contentHash'] as String, ); Map _$NewsArticleToJson(NewsArticle instance) => { @@ -1091,19 +1039,19 @@ Map _$NewsArticleToJson(NewsArticle instance) => json) => NewsFeed( - id: json['id'] as int?, - url: json['url'] as String?, - title: json['title'] as String?, - faviconLink: json['faviconLink'] as String?, - added: json['added'] as int?, + id: json['id'] as int, + url: json['url'] as String, + title: json['title'] as String, + faviconLink: json['faviconLink'] as String, + added: json['added'] as int, folderId: json['folderId'] as int?, unreadCount: json['unreadCount'] as int?, - ordering: json['ordering'] as int?, + ordering: json['ordering'] as int, link: json['link'] as String?, - pinned: json['pinned'] as bool?, - updateErrorCount: json['updateErrorCount'] as int?, + pinned: json['pinned'] as bool, + updateErrorCount: json['updateErrorCount'] as int, lastUpdateError: json['lastUpdateError'] as String?, - items: (json['items'] as List?)?.map((e) => NewsArticle.fromJson(e as Map)).toList(), + items: (json['items'] as List).map((e) => NewsArticle.fromJson(e as Map)).toList(), ); Map _$NewsFeedToJson(NewsFeed instance) => { @@ -1119,62 +1067,62 @@ Map _$NewsFeedToJson(NewsFeed instance) => { 'pinned': instance.pinned, 'updateErrorCount': instance.updateErrorCount, 'lastUpdateError': instance.lastUpdateError, - 'items': instance.items?.map((e) => e.toJson()).toList(), + 'items': instance.items.map((e) => e.toJson()).toList(), }; NewsFolder _$NewsFolderFromJson(Map json) => NewsFolder( - id: json['id'] as int?, - name: json['name'] as String?, - opened: json['opened'] as bool?, - feeds: (json['feeds'] as List?)?.map((e) => NewsFeed.fromJson(e as Map)).toList(), + id: json['id'] as int, + name: json['name'] as String, + opened: json['opened'] as bool, + feeds: (json['feeds'] as List).map((e) => NewsFeed.fromJson(e as Map)).toList(), ); Map _$NewsFolderToJson(NewsFolder instance) => { 'id': instance.id, 'name': instance.name, 'opened': instance.opened, - 'feeds': instance.feeds?.map((e) => e.toJson()).toList(), + 'feeds': instance.feeds.map((e) => e.toJson()).toList(), }; NewsListFolders _$NewsListFoldersFromJson(Map json) => NewsListFolders( - folders: (json['folders'] as List?)?.map((e) => NewsFolder.fromJson(e as Map)).toList(), + folders: (json['folders'] as List).map((e) => NewsFolder.fromJson(e as Map)).toList(), ); Map _$NewsListFoldersToJson(NewsListFolders instance) => { - 'folders': instance.folders?.map((e) => e.toJson()).toList(), + 'folders': instance.folders.map((e) => e.toJson()).toList(), }; NewsListFeeds _$NewsListFeedsFromJson(Map json) => NewsListFeeds( starredCount: json['starredCount'] as int?, newestItemId: json['newestItemId'] as int?, - feeds: (json['feeds'] as List?)?.map((e) => NewsFeed.fromJson(e as Map)).toList(), + feeds: (json['feeds'] as List).map((e) => NewsFeed.fromJson(e as Map)).toList(), ); Map _$NewsListFeedsToJson(NewsListFeeds instance) => { 'starredCount': instance.starredCount, 'newestItemId': instance.newestItemId, - 'feeds': instance.feeds?.map((e) => e.toJson()).toList(), + 'feeds': instance.feeds.map((e) => e.toJson()).toList(), }; NewsListArticles _$NewsListArticlesFromJson(Map json) => NewsListArticles( - items: (json['items'] as List?)?.map((e) => NewsArticle.fromJson(e as Map)).toList(), + items: (json['items'] as List).map((e) => NewsArticle.fromJson(e as Map)).toList(), ); Map _$NewsListArticlesToJson(NewsListArticles instance) => { - 'items': instance.items?.map((e) => e.toJson()).toList(), + 'items': instance.items.map((e) => e.toJson()).toList(), }; NotesNote _$NotesNoteFromJson(Map json) => NotesNote( - id: json['id'] as int?, - etag: json['etag'] as String?, - readonly: json['readonly'] as bool?, - content: json['content'] as String?, - title: json['title'] as String?, - category: json['category'] as String?, - favorite: json['favorite'] as bool?, - modified: json['modified'] as int?, - error: json['error'] as bool?, - errorType: json['errorType'] as String?, + id: json['id'] as int, + etag: json['etag'] as String, + readonly: json['readonly'] as bool, + content: json['content'] as String, + title: json['title'] as String, + category: json['category'] as String, + favorite: json['favorite'] as bool, + modified: json['modified'] as int, + error: json['error'] as bool, + errorType: json['errorType'] as String, ); Map _$NotesNoteToJson(NotesNote instance) => { @@ -1191,27 +1139,27 @@ Map _$NotesNoteToJson(NotesNote instance) => { }; NotesSettings _$NotesSettingsFromJson(Map json) => NotesSettings( - notesPath: json['notesPath'] as String?, - fileSuffix: json['fileSuffix'] as String?, - noteMode: $enumDecodeNullable(_$NotesSettingsNoteModeEnumMap, json['noteMode']), + notesPath: json['notesPath'] as String, + fileSuffix: json['fileSuffix'] as String, + noteMode: $enumDecode(_$NotesSettings_NoteModeEnumMap, json['noteMode']), ); Map _$NotesSettingsToJson(NotesSettings instance) => { 'notesPath': instance.notesPath, 'fileSuffix': instance.fileSuffix, - 'noteMode': _$NotesSettingsNoteModeEnumMap[instance.noteMode], + 'noteMode': _$NotesSettings_NoteModeEnumMap[instance.noteMode]!, }; -const _$NotesSettingsNoteModeEnumMap = { - NotesSettingsNoteMode.edit: 'edit', - NotesSettingsNoteMode.preview: 'preview', +const _$NotesSettings_NoteModeEnumMap = { + NotesSettings_NoteMode.edit: 'edit', + NotesSettings_NoteMode.preview: 'preview', }; NotificationsNotificationAction _$NotificationsNotificationActionFromJson(Map json) => NotificationsNotificationAction( - label: json['label'] as String?, - link: json['link'] as String?, - type: json['type'] as String?, + label: json['label'] as String, + link: json['link'] as String, + type: json['type'] as String, primary: json['primary'] as bool?, ); @@ -1224,26 +1172,22 @@ Map _$NotificationsNotificationActionToJson(NotificationsNotifi }; NotificationsNotification _$NotificationsNotificationFromJson(Map json) => NotificationsNotification( - notificationId: json['notification_id'] as int?, - app: json['app'] as String?, - user: json['user'] as String?, - datetime: json['datetime'] as String?, - objectType: json['object_type'] as String?, - objectId: json['object_id'] as String?, - subject: json['subject'] as String?, - message: json['message'] as String?, - link: json['link'] as String?, - subjectRich: json['subjectRich'] as String?, - subjectRichParameters: json['subjectRichParameters'] == null - ? null - : NotificationsNotificationSubjectRichParameters.fromJson(json['subjectRichParameters']), - messageRich: json['messageRich'] as String?, - messageRichParameters: json['messageRichParameters'] == null - ? null - : NotificationsNotificationMessageRichParameters.fromJson(json['messageRichParameters']), - icon: json['icon'] as String?, - actions: (json['actions'] as List?) - ?.map((e) => NotificationsNotificationAction.fromJson(e as Map)) + notificationId: json['notification_id'] as int, + app: json['app'] as String, + user: json['user'] as String, + datetime: json['datetime'] as String, + objectType: json['object_type'] as String, + objectId: json['object_id'] as String, + subject: json['subject'] as String, + message: json['message'] as String, + link: json['link'] as String, + subjectRich: json['subjectRich'] as String, + subjectRichParameters: NotificationsNotification_SubjectRichParameters.fromJson(json['subjectRichParameters']), + messageRich: json['messageRich'] as String, + messageRichParameters: NotificationsNotification_MessageRichParameters.fromJson(json['messageRichParameters']), + icon: json['icon'] as String, + actions: (json['actions'] as List) + .map((e) => NotificationsNotificationAction.fromJson(e as Map)) .toList(), ); @@ -1258,81 +1202,81 @@ Map _$NotificationsNotificationToJson(NotificationsNotification 'message': instance.message, 'link': instance.link, 'subjectRich': instance.subjectRich, - 'subjectRichParameters': instance.subjectRichParameters?.toJson(), + 'subjectRichParameters': instance.subjectRichParameters.toJson(), 'messageRich': instance.messageRich, - 'messageRichParameters': instance.messageRichParameters?.toJson(), + 'messageRichParameters': instance.messageRichParameters.toJson(), 'icon': instance.icon, - 'actions': instance.actions?.map((e) => e.toJson()).toList(), + 'actions': instance.actions.map((e) => e.toJson()).toList(), }; -NotificationsListNotificationsOcs _$NotificationsListNotificationsOcsFromJson(Map json) => - NotificationsListNotificationsOcs( - meta: json['meta'] == null ? null : OCSMeta.fromJson(json['meta'] as Map), - data: (json['data'] as List?) - ?.map((e) => NotificationsNotification.fromJson(e as Map)) +NotificationsListNotifications_Ocs _$NotificationsListNotifications_OcsFromJson(Map json) => + NotificationsListNotifications_Ocs( + meta: OCSMeta.fromJson(json['meta'] as Map), + data: (json['data'] as List) + .map((e) => NotificationsNotification.fromJson(e as Map)) .toList(), ); -Map _$NotificationsListNotificationsOcsToJson(NotificationsListNotificationsOcs instance) => +Map _$NotificationsListNotifications_OcsToJson(NotificationsListNotifications_Ocs instance) => { - 'meta': instance.meta?.toJson(), - 'data': instance.data?.map((e) => e.toJson()).toList(), + 'meta': instance.meta.toJson(), + 'data': instance.data.map((e) => e.toJson()).toList(), }; NotificationsListNotifications _$NotificationsListNotificationsFromJson(Map json) => NotificationsListNotifications( - ocs: json['ocs'] == null ? null : NotificationsListNotificationsOcs.fromJson(json['ocs'] as Map), + ocs: NotificationsListNotifications_Ocs.fromJson(json['ocs'] as Map), ); Map _$NotificationsListNotificationsToJson(NotificationsListNotifications instance) => { - 'ocs': instance.ocs?.toJson(), + 'ocs': instance.ocs.toJson(), }; -NotificationsGetNotificationOcs _$NotificationsGetNotificationOcsFromJson(Map json) => - NotificationsGetNotificationOcs( - meta: json['meta'] == null ? null : OCSMeta.fromJson(json['meta'] as Map), - data: json['data'] == null ? null : NotificationsNotification.fromJson(json['data'] as Map), +NotificationsGetNotification_Ocs _$NotificationsGetNotification_OcsFromJson(Map json) => + NotificationsGetNotification_Ocs( + meta: OCSMeta.fromJson(json['meta'] as Map), + data: NotificationsNotification.fromJson(json['data'] as Map), ); -Map _$NotificationsGetNotificationOcsToJson(NotificationsGetNotificationOcs instance) => +Map _$NotificationsGetNotification_OcsToJson(NotificationsGetNotification_Ocs instance) => { - 'meta': instance.meta?.toJson(), - 'data': instance.data?.toJson(), + 'meta': instance.meta.toJson(), + 'data': instance.data.toJson(), }; NotificationsGetNotification _$NotificationsGetNotificationFromJson(Map json) => NotificationsGetNotification( - ocs: json['ocs'] == null ? null : NotificationsGetNotificationOcs.fromJson(json['ocs'] as Map), + ocs: NotificationsGetNotification_Ocs.fromJson(json['ocs'] as Map), ); Map _$NotificationsGetNotificationToJson(NotificationsGetNotification instance) => { - 'ocs': instance.ocs?.toJson(), + 'ocs': instance.ocs.toJson(), }; -NotificationsEmptyOcs _$NotificationsEmptyOcsFromJson(Map json) => NotificationsEmptyOcs( - meta: json['meta'] == null ? null : OCSMeta.fromJson(json['meta'] as Map), - data: (json['data'] as List?)?.map((e) => e as String).toList(), +NotificationsEmpty_Ocs _$NotificationsEmpty_OcsFromJson(Map json) => NotificationsEmpty_Ocs( + meta: OCSMeta.fromJson(json['meta'] as Map), + data: (json['data'] as List).map((e) => e as String).toList(), ); -Map _$NotificationsEmptyOcsToJson(NotificationsEmptyOcs instance) => { - 'meta': instance.meta?.toJson(), +Map _$NotificationsEmpty_OcsToJson(NotificationsEmpty_Ocs instance) => { + 'meta': instance.meta.toJson(), 'data': instance.data, }; NotificationsEmpty _$NotificationsEmptyFromJson(Map json) => NotificationsEmpty( - ocs: json['ocs'] == null ? null : NotificationsEmptyOcs.fromJson(json['ocs'] as Map), + ocs: NotificationsEmpty_Ocs.fromJson(json['ocs'] as Map), ); Map _$NotificationsEmptyToJson(NotificationsEmpty instance) => { - 'ocs': instance.ocs?.toJson(), + 'ocs': instance.ocs.toJson(), }; NotificationsPushServerSubscription _$NotificationsPushServerSubscriptionFromJson(Map json) => NotificationsPushServerSubscription( - publicKey: json['publicKey'] as String?, - deviceIdentifier: json['deviceIdentifier'] as String?, - signature: json['signature'] as String?, + publicKey: json['publicKey'] as String, + deviceIdentifier: json['deviceIdentifier'] as String, + signature: json['signature'] as String, message: json['message'] as String?, ); @@ -1344,42 +1288,39 @@ Map _$NotificationsPushServerSubscriptionToJson(NotificationsPu 'message': instance.message, }; -NotificationsPushServerRegistrationOcs _$NotificationsPushServerRegistrationOcsFromJson(Map json) => - NotificationsPushServerRegistrationOcs( - meta: json['meta'] == null ? null : OCSMeta.fromJson(json['meta'] as Map), - data: json['data'] == null - ? null - : NotificationsPushServerSubscription.fromJson(json['data'] as Map), +NotificationsPushServerRegistration_Ocs _$NotificationsPushServerRegistration_OcsFromJson(Map json) => + NotificationsPushServerRegistration_Ocs( + meta: OCSMeta.fromJson(json['meta'] as Map), + data: NotificationsPushServerSubscription.fromJson(json['data'] as Map), ); -Map _$NotificationsPushServerRegistrationOcsToJson(NotificationsPushServerRegistrationOcs instance) => +Map _$NotificationsPushServerRegistration_OcsToJson( + NotificationsPushServerRegistration_Ocs instance) => { - 'meta': instance.meta?.toJson(), - 'data': instance.data?.toJson(), + 'meta': instance.meta.toJson(), + 'data': instance.data.toJson(), }; NotificationsPushServerRegistration _$NotificationsPushServerRegistrationFromJson(Map json) => NotificationsPushServerRegistration( - ocs: json['ocs'] == null - ? null - : NotificationsPushServerRegistrationOcs.fromJson(json['ocs'] as Map), + ocs: NotificationsPushServerRegistration_Ocs.fromJson(json['ocs'] as Map), ); Map _$NotificationsPushServerRegistrationToJson(NotificationsPushServerRegistration instance) => { - 'ocs': instance.ocs?.toJson(), + 'ocs': instance.ocs.toJson(), }; -ProvisioningApiUserDetailsQuota _$ProvisioningApiUserDetailsQuotaFromJson(Map json) => - ProvisioningApiUserDetailsQuota( - free: json['free'] as int?, - used: json['used'] as int?, - total: json['total'] as int?, - relative: json['relative'] as num?, - quota: json['quota'] as int?, +ProvisioningApiUserDetails_Quota _$ProvisioningApiUserDetails_QuotaFromJson(Map json) => + ProvisioningApiUserDetails_Quota( + free: json['free'] as int, + used: json['used'] as int, + total: json['total'] as int, + relative: json['relative'] as num, + quota: json['quota'] as int, ); -Map _$ProvisioningApiUserDetailsQuotaToJson(ProvisioningApiUserDetailsQuota instance) => +Map _$ProvisioningApiUserDetails_QuotaToJson(ProvisioningApiUserDetails_Quota instance) => { 'free': instance.free, 'used': instance.used, @@ -1388,15 +1329,15 @@ Map _$ProvisioningApiUserDetailsQuotaToJson(ProvisioningApiUser 'quota': instance.quota, }; -ProvisioningApiUserDetailsBackendCapabilities _$ProvisioningApiUserDetailsBackendCapabilitiesFromJson( +ProvisioningApiUserDetails_BackendCapabilities _$ProvisioningApiUserDetails_BackendCapabilitiesFromJson( Map json) => - ProvisioningApiUserDetailsBackendCapabilities( - setDisplayName: json['setDisplayName'] as bool?, - setPassword: json['setPassword'] as bool?, + ProvisioningApiUserDetails_BackendCapabilities( + setDisplayName: json['setDisplayName'] as bool, + setPassword: json['setPassword'] as bool, ); -Map _$ProvisioningApiUserDetailsBackendCapabilitiesToJson( - ProvisioningApiUserDetailsBackendCapabilities instance) => +Map _$ProvisioningApiUserDetails_BackendCapabilitiesToJson( + ProvisioningApiUserDetails_BackendCapabilities instance) => { 'setDisplayName': instance.setDisplayName, 'setPassword': instance.setPassword, @@ -1405,46 +1346,43 @@ Map _$ProvisioningApiUserDetailsBackendCapabilitiesToJson( ProvisioningApiUserDetails _$ProvisioningApiUserDetailsFromJson(Map json) => ProvisioningApiUserDetails( enabled: json['enabled'] as bool?, - storageLocation: json['storageLocation'] as String?, - id: json['id'] as String?, - lastLogin: json['lastLogin'] as int?, - backend: json['backend'] as String?, - subadmin: (json['subadmin'] as List?)?.map((e) => e as String).toList(), - quota: json['quota'] == null - ? null - : ProvisioningApiUserDetailsQuota.fromJson(json['quota'] as Map), - avatarScope: json['avatarScope'] as String?, + storageLocation: json['storageLocation'] as String, + id: json['id'] as String, + lastLogin: json['lastLogin'] as int, + backend: json['backend'] as String, + subadmin: (json['subadmin'] as List).map((e) => e as String).toList(), + quota: ProvisioningApiUserDetails_Quota.fromJson(json['quota'] as Map), + avatarScope: json['avatarScope'] as String, email: json['email'] as String?, - emailScope: json['emailScope'] as String?, - additionalMail: (json['additional_mail'] as List?)?.map((e) => e as String).toList(), - additionalMailScope: (json['additional_mailScope'] as List?)?.map((e) => e as String).toList(), + emailScope: json['emailScope'] as String, + additionalMail: (json['additional_mail'] as List).map((e) => e as String).toList(), + additionalMailScope: (json['additional_mailScope'] as List).map((e) => e as String).toList(), displayname: json['displayname'] as String?, - displaynameScope: json['displaynameScope'] as String?, - phone: json['phone'] as String?, - phoneScope: json['phoneScope'] as String?, - address: json['address'] as String?, - addressScope: json['addressScope'] as String?, - website: json['website'] as String?, - websiteScope: json['websiteScope'] as String?, - twitter: json['twitter'] as String?, - twitterScope: json['twitterScope'] as String?, - organisation: json['organisation'] as String?, - organisationScope: json['organisationScope'] as String?, - role: json['role'] as String?, - roleScope: json['roleScope'] as String?, - headline: json['headline'] as String?, - headlineScope: json['headlineScope'] as String?, - biography: json['biography'] as String?, - biographyScope: json['biographyScope'] as String?, - profileEnabled: json['profile_enabled'] as String?, - profileEnabledScope: json['profile_enabledScope'] as String?, - groups: (json['groups'] as List?)?.map((e) => e as String).toList(), - language: json['language'] as String?, - locale: json['locale'] as String?, + displaynameScope: json['displaynameScope'] as String, + phone: json['phone'] as String, + phoneScope: json['phoneScope'] as String, + address: json['address'] as String, + addressScope: json['addressScope'] as String, + website: json['website'] as String, + websiteScope: json['websiteScope'] as String, + twitter: json['twitter'] as String, + twitterScope: json['twitterScope'] as String, + organisation: json['organisation'] as String, + organisationScope: json['organisationScope'] as String, + role: json['role'] as String, + roleScope: json['roleScope'] as String, + headline: json['headline'] as String, + headlineScope: json['headlineScope'] as String, + biography: json['biography'] as String, + biographyScope: json['biographyScope'] as String, + profileEnabled: json['profile_enabled'] as String, + profileEnabledScope: json['profile_enabledScope'] as String, + groups: (json['groups'] as List).map((e) => e as String).toList(), + language: json['language'] as String, + locale: json['locale'] as String, notifyEmail: json['notify_email'] as String?, - backendCapabilities: json['backendCapabilities'] == null - ? null - : ProvisioningApiUserDetailsBackendCapabilities.fromJson(json['backendCapabilities'] as Map), + backendCapabilities: + ProvisioningApiUserDetails_BackendCapabilities.fromJson(json['backendCapabilities'] as Map), displayName: json['display-name'] as String?, ); @@ -1455,7 +1393,7 @@ Map _$ProvisioningApiUserDetailsToJson(ProvisioningApiUserDetai 'lastLogin': instance.lastLogin, 'backend': instance.backend, 'subadmin': instance.subadmin, - 'quota': instance.quota?.toJson(), + 'quota': instance.quota.toJson(), 'avatarScope': instance.avatarScope, 'email': instance.email, 'emailScope': instance.emailScope, @@ -1485,26 +1423,26 @@ Map _$ProvisioningApiUserDetailsToJson(ProvisioningApiUserDetai 'language': instance.language, 'locale': instance.locale, 'notify_email': instance.notifyEmail, - 'backendCapabilities': instance.backendCapabilities?.toJson(), + 'backendCapabilities': instance.backendCapabilities.toJson(), 'display-name': instance.displayName, }; -ProvisioningApiUserOcs _$ProvisioningApiUserOcsFromJson(Map json) => ProvisioningApiUserOcs( - meta: json['meta'] == null ? null : OCSMeta.fromJson(json['meta'] as Map), - data: json['data'] == null ? null : ProvisioningApiUserDetails.fromJson(json['data'] as Map), +ProvisioningApiUser_Ocs _$ProvisioningApiUser_OcsFromJson(Map json) => ProvisioningApiUser_Ocs( + meta: OCSMeta.fromJson(json['meta'] as Map), + data: ProvisioningApiUserDetails.fromJson(json['data'] as Map), ); -Map _$ProvisioningApiUserOcsToJson(ProvisioningApiUserOcs instance) => { - 'meta': instance.meta?.toJson(), - 'data': instance.data?.toJson(), +Map _$ProvisioningApiUser_OcsToJson(ProvisioningApiUser_Ocs instance) => { + 'meta': instance.meta.toJson(), + 'data': instance.data.toJson(), }; ProvisioningApiUser _$ProvisioningApiUserFromJson(Map json) => ProvisioningApiUser( - ocs: json['ocs'] == null ? null : ProvisioningApiUserOcs.fromJson(json['ocs'] as Map), + ocs: ProvisioningApiUser_Ocs.fromJson(json['ocs'] as Map), ); Map _$ProvisioningApiUserToJson(ProvisioningApiUser instance) => { - 'ocs': instance.ocs?.toJson(), + 'ocs': instance.ocs.toJson(), }; UserStatusClearAt _$UserStatusClearAtFromJson(Map json) { @@ -1513,36 +1451,36 @@ UserStatusClearAt _$UserStatusClearAtFromJson(Map json) { allowedKeys: const ['type', 'time'], ); return UserStatusClearAt( - type: $enumDecodeNullable(_$UserStatusClearAtTypeEnumMap, json['type']), - time: json['time'] == null ? null : UserStatusClearAtTime.fromJson(json['time']), + type: $enumDecode(_$UserStatusClearAt_TypeEnumMap, json['type']), + time: UserStatusClearAt_Time.fromJson(json['time']), ); } Map _$UserStatusClearAtToJson(UserStatusClearAt instance) => { - 'type': _$UserStatusClearAtTypeEnumMap[instance.type], - 'time': instance.time?.toJson(), + 'type': _$UserStatusClearAt_TypeEnumMap[instance.type]!, + 'time': instance.time.toJson(), }; -const _$UserStatusClearAtTypeEnumMap = { - UserStatusClearAtType.period: 'period', - UserStatusClearAtType.endOf: 'end-of', +const _$UserStatusClearAt_TypeEnumMap = { + UserStatusClearAt_Type.period: 'period', + UserStatusClearAt_Type.endOf: 'end-of', }; UserStatusPublicUserStatus _$UserStatusPublicUserStatusFromJson(Map json) => UserStatusPublicUserStatus( - userId: json['userId'] as String?, + userId: json['userId'] as String, message: json['message'] as String?, icon: json['icon'] as String?, - clearAt: json['clearAt'] == null ? null : UserStatusClearAtWrap.fromJson(json['clearAt']), - status: $enumDecodeNullable(_$UserStatusTypeEnumMap, json['status']), + clearAt: UserStatusPublicUserStatus_ClearAt.fromJson(json['clearAt']), + status: $enumDecode(_$UserStatusTypeEnumMap, json['status']), ); Map _$UserStatusPublicUserStatusToJson(UserStatusPublicUserStatus instance) => { 'userId': instance.userId, 'message': instance.message, 'icon': instance.icon, - 'clearAt': instance.clearAt?.toJson(), - 'status': _$UserStatusTypeEnumMap[instance.status], + 'clearAt': instance.clearAt.toJson(), + 'status': _$UserStatusTypeEnumMap[instance.status]!, }; const _$UserStatusTypeEnumMap = { @@ -1553,43 +1491,43 @@ const _$UserStatusTypeEnumMap = { UserStatusType.invisible: 'invisible', }; -UserStatusFindAllStatusesOcs _$UserStatusFindAllStatusesOcsFromJson(Map json) => - UserStatusFindAllStatusesOcs( - meta: json['meta'] == null ? null : OCSMeta.fromJson(json['meta'] as Map), - data: (json['data'] as List?) - ?.map((e) => UserStatusPublicUserStatus.fromJson(e as Map)) +UserStatusFindAllStatuses_Ocs _$UserStatusFindAllStatuses_OcsFromJson(Map json) => + UserStatusFindAllStatuses_Ocs( + meta: OCSMeta.fromJson(json['meta'] as Map), + data: (json['data'] as List) + .map((e) => UserStatusPublicUserStatus.fromJson(e as Map)) .toList(), ); -Map _$UserStatusFindAllStatusesOcsToJson(UserStatusFindAllStatusesOcs instance) => { - 'meta': instance.meta?.toJson(), - 'data': instance.data?.map((e) => e.toJson()).toList(), +Map _$UserStatusFindAllStatuses_OcsToJson(UserStatusFindAllStatuses_Ocs instance) => { + 'meta': instance.meta.toJson(), + 'data': instance.data.map((e) => e.toJson()).toList(), }; UserStatusFindAllStatuses _$UserStatusFindAllStatusesFromJson(Map json) => UserStatusFindAllStatuses( - ocs: json['ocs'] == null ? null : UserStatusFindAllStatusesOcs.fromJson(json['ocs'] as Map), + ocs: UserStatusFindAllStatuses_Ocs.fromJson(json['ocs'] as Map), ); Map _$UserStatusFindAllStatusesToJson(UserStatusFindAllStatuses instance) => { - 'ocs': instance.ocs?.toJson(), + 'ocs': instance.ocs.toJson(), }; -UserStatusFindStatusOcs _$UserStatusFindStatusOcsFromJson(Map json) => UserStatusFindStatusOcs( - meta: json['meta'] == null ? null : OCSMeta.fromJson(json['meta'] as Map), - data: json['data'] == null ? null : UserStatusFindStatusOcsData.fromJson(json['data']), +UserStatusFindStatus_Ocs _$UserStatusFindStatus_OcsFromJson(Map json) => UserStatusFindStatus_Ocs( + meta: OCSMeta.fromJson(json['meta'] as Map), + data: UserStatusFindStatus_Ocs_Data.fromJson(json['data']), ); -Map _$UserStatusFindStatusOcsToJson(UserStatusFindStatusOcs instance) => { - 'meta': instance.meta?.toJson(), - 'data': instance.data?.toJson(), +Map _$UserStatusFindStatus_OcsToJson(UserStatusFindStatus_Ocs instance) => { + 'meta': instance.meta.toJson(), + 'data': instance.data.toJson(), }; UserStatusFindStatus _$UserStatusFindStatusFromJson(Map json) => UserStatusFindStatus( - ocs: json['ocs'] == null ? null : UserStatusFindStatusOcs.fromJson(json['ocs'] as Map), + ocs: UserStatusFindStatus_Ocs.fromJson(json['ocs'] as Map), ); Map _$UserStatusFindStatusToJson(UserStatusFindStatus instance) => { - 'ocs': instance.ocs?.toJson(), + 'ocs': instance.ocs.toJson(), }; UserStatus _$UserStatusFromJson(Map json) { @@ -1607,14 +1545,14 @@ UserStatus _$UserStatusFromJson(Map json) { ], ); return UserStatus( - userId: json['userId'] as String?, + userId: json['userId'] as String, message: json['message'] as String?, messageId: json['messageId'] as String?, - messageIsPredefined: json['messageIsPredefined'] as bool?, + messageIsPredefined: json['messageIsPredefined'] as bool, icon: json['icon'] as String?, - clearAt: json['clearAt'] == null ? null : UserStatusClearAtWrap.fromJson(json['clearAt']), - status: $enumDecodeNullable(_$UserStatusTypeEnumMap, json['status']), - statusIsUserDefined: json['statusIsUserDefined'] as bool?, + clearAt: UserStatus_ClearAt.fromJson(json['clearAt']), + status: $enumDecode(_$UserStatusTypeEnumMap, json['status']), + statusIsUserDefined: json['statusIsUserDefined'] as bool, ); } @@ -1624,76 +1562,76 @@ Map _$UserStatusToJson(UserStatus instance) => json) => - UserStatusGetUserStatusOcs( - meta: json['meta'] == null ? null : OCSMeta.fromJson(json['meta'] as Map), - data: json['data'] == null ? null : UserStatusGetUserStatusOcsData.fromJson(json['data']), +UserStatusGetUserStatus_Ocs _$UserStatusGetUserStatus_OcsFromJson(Map json) => + UserStatusGetUserStatus_Ocs( + meta: OCSMeta.fromJson(json['meta'] as Map), + data: UserStatusGetUserStatus_Ocs_Data.fromJson(json['data']), ); -Map _$UserStatusGetUserStatusOcsToJson(UserStatusGetUserStatusOcs instance) => { - 'meta': instance.meta?.toJson(), - 'data': instance.data?.toJson(), +Map _$UserStatusGetUserStatus_OcsToJson(UserStatusGetUserStatus_Ocs instance) => { + 'meta': instance.meta.toJson(), + 'data': instance.data.toJson(), }; UserStatusGetUserStatus _$UserStatusGetUserStatusFromJson(Map json) => UserStatusGetUserStatus( - ocs: json['ocs'] == null ? null : UserStatusGetUserStatusOcs.fromJson(json['ocs'] as Map), + ocs: UserStatusGetUserStatus_Ocs.fromJson(json['ocs'] as Map), ); Map _$UserStatusGetUserStatusToJson(UserStatusGetUserStatus instance) => { - 'ocs': instance.ocs?.toJson(), + 'ocs': instance.ocs.toJson(), }; UserStatusPredefinedStatus _$UserStatusPredefinedStatusFromJson(Map json) => UserStatusPredefinedStatus( - id: json['id'] as String?, - icon: json['icon'] as String?, - message: json['message'] as String?, - clearAt: json['clearAt'] == null ? null : UserStatusClearAtWrap.fromJson(json['clearAt']), + id: json['id'] as String, + icon: json['icon'] as String, + message: json['message'] as String, + clearAt: UserStatusPredefinedStatus_ClearAt.fromJson(json['clearAt']), ); Map _$UserStatusPredefinedStatusToJson(UserStatusPredefinedStatus instance) => { 'id': instance.id, 'icon': instance.icon, 'message': instance.message, - 'clearAt': instance.clearAt?.toJson(), + 'clearAt': instance.clearAt.toJson(), }; -UserStatusPredefinedStatusesOcs _$UserStatusPredefinedStatusesOcsFromJson(Map json) => - UserStatusPredefinedStatusesOcs( - meta: json['meta'] == null ? null : OCSMeta.fromJson(json['meta'] as Map), - data: (json['data'] as List?) - ?.map((e) => UserStatusPredefinedStatus.fromJson(e as Map)) +UserStatusPredefinedStatuses_Ocs _$UserStatusPredefinedStatuses_OcsFromJson(Map json) => + UserStatusPredefinedStatuses_Ocs( + meta: OCSMeta.fromJson(json['meta'] as Map), + data: (json['data'] as List) + .map((e) => UserStatusPredefinedStatus.fromJson(e as Map)) .toList(), ); -Map _$UserStatusPredefinedStatusesOcsToJson(UserStatusPredefinedStatusesOcs instance) => +Map _$UserStatusPredefinedStatuses_OcsToJson(UserStatusPredefinedStatuses_Ocs instance) => { - 'meta': instance.meta?.toJson(), - 'data': instance.data?.map((e) => e.toJson()).toList(), + 'meta': instance.meta.toJson(), + 'data': instance.data.map((e) => e.toJson()).toList(), }; UserStatusPredefinedStatuses _$UserStatusPredefinedStatusesFromJson(Map json) => UserStatusPredefinedStatuses( - ocs: json['ocs'] == null ? null : UserStatusPredefinedStatusesOcs.fromJson(json['ocs'] as Map), + ocs: UserStatusPredefinedStatuses_Ocs.fromJson(json['ocs'] as Map), ); Map _$UserStatusPredefinedStatusesToJson(UserStatusPredefinedStatuses instance) => { - 'ocs': instance.ocs?.toJson(), + 'ocs': instance.ocs.toJson(), }; NotificationsPushNotificationDecryptedSubject _$NotificationsPushNotificationDecryptedSubjectFromJson( Map json) => NotificationsPushNotificationDecryptedSubject( - nid: json['nid'] as int?, - app: json['app'] as String?, - subject: json['subject'] as String?, - type: json['type'] as String?, - id: json['id'] as String?, + nid: json['nid'] as int, + app: json['app'] as String, + subject: json['subject'] as String, + type: json['type'] as String, + id: json['id'] as String, delete: json['delete'] as bool?, deleteAll: json['delete-all'] as bool?, ); @@ -1712,17 +1650,15 @@ Map _$NotificationsPushNotificationDecryptedSubjectToJson( NotificationsPushNotification _$NotificationsPushNotificationFromJson(Map json) => NotificationsPushNotification( - accountID: json['accountID'] as String?, - priority: json['priority'] as String?, - type: json['type'] as String?, - subject: json['subject'] == null - ? null - : NotificationsPushNotificationDecryptedSubject.fromJson(json['subject'] as Map), + accountID: json['accountID'] as String, + priority: json['priority'] as String, + type: json['type'] as String, + subject: NotificationsPushNotificationDecryptedSubject.fromJson(json['subject'] as Map), ); Map _$NotificationsPushNotificationToJson(NotificationsPushNotification instance) => { 'accountID': instance.accountID, 'priority': instance.priority, 'type': instance.type, - 'subject': instance.subject?.toJson(), + 'subject': instance.subject.toJson(), }; diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.json b/packages/nextcloud/lib/src/nextcloud.openapi.json index 10bbc25c..30b87fad 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.json +++ b/packages/nextcloud/lib/src/nextcloud.openapi.json @@ -50,6 +50,12 @@ "schemas": { "OCSMeta": { "type": "object", + "required": [ + "status", + "statuscode", + "totalitems", + "itemsperpage" + ], "properties": { "status": { "type": "string" @@ -70,6 +76,16 @@ }, "CoreServerStatus": { "type": "object", + "required": [ + "installed", + "maintenance", + "needsDbUpgrade", + "version", + "versionstring", + "edition", + "productname", + "extendedSupport" + ], "properties": { "installed": { "type": "boolean" @@ -99,18 +115,37 @@ }, "CoreServerCapabilities": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" }, "data": { "type": "object", + "required": [ + "version", + "capabilities" + ], "properties": { "version": { "type": "object", + "required": [ + "major", + "minor", + "micro", + "string", + "edition", + "extendedSupport" + ], "properties": { "major": { "type": "integer" @@ -134,9 +169,21 @@ }, "capabilities": { "type": "object", + "required": [ + "core", + "bruteforce", + "metadataAvailable", + "files", + "ocm", + "dav" + ], "properties": { "core": { "type": "object", + "required": [ + "pollinterval", + "webdav-root" + ], "properties": { "pollinterval": { "type": "integer" @@ -148,6 +195,9 @@ }, "bruteforce": { "type": "object", + "required": [ + "delay" + ], "properties": { "delay": { "type": "integer" @@ -156,6 +206,9 @@ }, "metadataAvailable": { "type": "object", + "required": [ + "size" + ], "properties": { "size": { "type": "array", @@ -167,6 +220,14 @@ }, "files": { "type": "object", + "required": [ + "bigfilechunking", + "blacklisted_files", + "directEditing", + "comments", + "undelete", + "versioning" + ], "properties": { "bigfilechunking": { "type": "boolean" @@ -179,6 +240,10 @@ }, "directEditing": { "type": "object", + "required": [ + "url", + "etag" + ], "properties": { "url": { "type": "string" @@ -201,6 +266,9 @@ }, "activity": { "type": "object", + "required": [ + "apiv2" + ], "properties": { "apiv2": { "type": "array", @@ -212,12 +280,22 @@ }, "circles": { "type": "object", + "required": [ + "version", + "status", + "settings", + "circle", + "member" + ], "properties": { "version": { "type": "string" }, "status": { "type": "object", + "required": [ + "globalScale" + ], "properties": { "globalScale": { "type": "boolean" @@ -226,6 +304,12 @@ }, "settings": { "type": "object", + "required": [ + "frontendEnabled", + "allowedCircles", + "allowedUserTypes", + "membersLimit" + ], "properties": { "frontendEnabled": { "type": "boolean" @@ -243,15 +327,27 @@ }, "circle": { "type": "object", + "required": [ + "constants", + "config" + ], "properties": { "constants": { "type": "object", + "required": [ + "flags", + "source" + ], "properties": { "flags": { "type": "object" }, "source": { "type": "object", + "required": [ + "core", + "extra" + ], "properties": { "core": { "type": "object" @@ -265,6 +361,10 @@ }, "config": { "type": "object", + "required": [ + "coreFlags", + "systemFlags" + ], "properties": { "coreFlags": { "type": "array", @@ -284,9 +384,16 @@ }, "member": { "type": "object", + "required": [ + "constants", + "type" + ], "properties": { "constants": { "type": "object", + "required": [ + "level" + ], "properties": { "level": { "type": "object" @@ -302,6 +409,12 @@ }, "ocm": { "type": "object", + "required": [ + "enabled", + "apiVersion", + "endPoint", + "resourceTypes" + ], "properties": { "enabled": { "type": "boolean" @@ -316,6 +429,11 @@ "type": "array", "items": { "type": "object", + "required": [ + "name", + "shareTypes", + "protocols" + ], "properties": { "name": { "type": "string" @@ -328,6 +446,9 @@ }, "protocols": { "type": "object", + "required": [ + "webdav" + ], "properties": { "webdav": { "type": "string" @@ -341,6 +462,9 @@ }, "dav": { "type": "object", + "required": [ + "chunking" + ], "properties": { "chunking": { "type": "string" @@ -349,18 +473,45 @@ }, "files_sharing": { "type": "object", + "required": [ + "api_enabled", + "public", + "resharing", + "user", + "group_sharing", + "group", + "default_permissions", + "federation", + "sharee", + "sharebymail" + ], "properties": { "api_enabled": { "type": "boolean" }, "public": { "type": "object", + "required": [ + "enabled", + "password", + "expire_date", + "multiple_links", + "expire_date_internal", + "expire_date_remote", + "send_mail", + "upload", + "upload_files_drop" + ], "properties": { "enabled": { "type": "boolean" }, "password": { "type": "object", + "required": [ + "enforced", + "askForOptionalPassword" + ], "properties": { "enforced": { "type": "boolean" @@ -372,6 +523,9 @@ }, "expire_date": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -383,6 +537,9 @@ }, "expire_date_internal": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -391,6 +548,9 @@ }, "expire_date_remote": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -413,12 +573,19 @@ }, "user": { "type": "object", + "required": [ + "send_mail", + "expire_date" + ], "properties": { "send_mail": { "type": "boolean" }, "expire_date": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -432,12 +599,19 @@ }, "group": { "type": "object", + "required": [ + "enabled", + "expire_date" + ], "properties": { "enabled": { "type": "boolean" }, "expire_date": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -451,6 +625,12 @@ }, "federation": { "type": "object", + "required": [ + "outgoing", + "incoming", + "expire_date", + "expire_date_supported" + ], "properties": { "outgoing": { "type": "boolean" @@ -460,6 +640,9 @@ }, "expire_date": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -468,6 +651,9 @@ }, "expire_date_supported": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -478,6 +664,10 @@ }, "sharee": { "type": "object", + "required": [ + "query_lookup_default", + "always_show_unique" + ], "properties": { "query_lookup_default": { "type": "boolean" @@ -489,6 +679,13 @@ }, "sharebymail": { "type": "object", + "required": [ + "enabled", + "send_password_by_mail", + "upload_files_drop", + "password", + "expire_date" + ], "properties": { "enabled": { "type": "boolean" @@ -498,6 +695,9 @@ }, "upload_files_drop": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -506,6 +706,10 @@ }, "password": { "type": "object", + "required": [ + "enabled", + "enforced" + ], "properties": { "enabled": { "type": "boolean" @@ -517,6 +721,10 @@ }, "expire_date": { "type": "object", + "required": [ + "enabled", + "enforced" + ], "properties": { "enabled": { "type": "boolean" @@ -532,6 +740,10 @@ }, "notes": { "type": "object", + "required": [ + "api_version", + "version" + ], "properties": { "api_version": { "type": "array", @@ -546,6 +758,11 @@ }, "notifications": { "type": "object", + "required": [ + "ocs-endpoints", + "push", + "admin-notifications" + ], "properties": { "ocs-endpoints": { "type": "array", @@ -569,6 +786,14 @@ }, "password_policy": { "type": "object", + "required": [ + "minLength", + "enforceNonCommonPassword", + "enforceNumericCharacters", + "enforceSpecialCharacters", + "enforceUpperLowerCase", + "api" + ], "properties": { "minLength": { "type": "integer" @@ -587,6 +812,10 @@ }, "api": { "type": "object", + "required": [ + "generate", + "validate" + ], "properties": { "generate": { "type": "string" @@ -600,6 +829,12 @@ }, "provisioning_api": { "type": "object", + "required": [ + "version", + "AccountPropertyScopesVersion", + "AccountPropertyScopesFederatedEnabled", + "AccountPropertyScopesPublishedEnabled" + ], "properties": { "version": { "type": "string" @@ -617,6 +852,22 @@ }, "theming": { "type": "object", + "required": [ + "name", + "url", + "slogan", + "color", + "color-text", + "color-element", + "color-element-bright", + "color-element-dark", + "logo", + "background", + "background-plain", + "background-default", + "logoheader", + "favicon" + ], "properties": { "name": { "type": "string" @@ -664,6 +915,10 @@ }, "user_status": { "type": "object", + "required": [ + "enabled", + "supports_emoji" + ], "properties": { "enabled": { "type": "boolean" @@ -675,6 +930,9 @@ }, "weather_status": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -691,9 +949,16 @@ }, "CoreNavigationApps": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -702,6 +967,17 @@ "type": "array", "items": { "type": "object", + "required": [ + "id", + "order", + "href", + "icon", + "type", + "name", + "active", + "classes", + "unread" + ], "properties": { "id": { "type": "string" @@ -747,9 +1023,17 @@ }, "CoreLoginFlowInit": { "type": "object", + "required": [ + "poll", + "login" + ], "properties": { "poll": { "type": "object", + "required": [ + "token", + "endpoint" + ], "properties": { "token": { "type": "string" @@ -766,6 +1050,11 @@ }, "CoreLoginFlowResult": { "type": "object", + "required": [ + "server", + "loginName", + "appPassword" + ], "properties": { "server": { "type": "string" @@ -780,6 +1069,9 @@ }, "NewsListFeeds": { "type": "object", + "required": [ + "feeds" + ], "properties": { "starredCount": { "type": "integer" @@ -797,6 +1089,17 @@ }, "NewsFeed": { "type": "object", + "required": [ + "id", + "url", + "title", + "faviconLink", + "added", + "ordering", + "pinned", + "updateErrorCount", + "items" + ], "properties": { "id": { "type": "integer" @@ -844,6 +1147,22 @@ }, "NewsArticle": { "type": "object", + "required": [ + "id", + "guid", + "guidHash", + "url", + "title", + "pubDate", + "body", + "feedId", + "unread", + "starred", + "lastModified", + "rtl", + "fingerprint", + "contentHash" + ], "properties": { "id": { "type": "integer" @@ -909,6 +1228,9 @@ }, "NewsListArticles": { "type": "object", + "required": [ + "items" + ], "properties": { "items": { "type": "array", @@ -920,6 +1242,9 @@ }, "NewsListFolders": { "type": "object", + "required": [ + "folders" + ], "properties": { "folders": { "type": "array", @@ -931,6 +1256,12 @@ }, "NewsFolder": { "type": "object", + "required": [ + "id", + "name", + "opened", + "feeds" + ], "properties": { "id": { "type": "integer" @@ -953,6 +1284,18 @@ }, "NotesNote": { "type": "object", + "required": [ + "id", + "etag", + "readonly", + "content", + "title", + "category", + "favorite", + "modified", + "error", + "errorType" + ], "properties": { "id": { "type": "integer" @@ -988,6 +1331,11 @@ }, "NotesSettings": { "type": "object", + "required": [ + "notesPath", + "fileSuffix", + "noteMode" + ], "properties": { "notesPath": { "type": "string" @@ -1006,9 +1354,16 @@ }, "NotificationsEmpty": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -1025,6 +1380,23 @@ }, "NotificationsNotification": { "type": "object", + "required": [ + "notification_id", + "app", + "user", + "datetime", + "object_type", + "object_id", + "subject", + "message", + "link", + "subjectRich", + "subjectRichParameters", + "messageRich", + "messageRichParameters", + "icon", + "actions" + ], "properties": { "notification_id": { "type": "integer" @@ -1088,6 +1460,11 @@ }, "NotificationsNotificationAction": { "type": "object", + "required": [ + "label", + "link", + "type" + ], "properties": { "label": { "type": "string" @@ -1105,9 +1482,16 @@ }, "NotificationsListNotifications": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -1124,9 +1508,16 @@ }, "NotificationsGetNotification": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -1140,6 +1531,11 @@ }, "NotificationsPushServerSubscription": { "type": "object", + "required": [ + "publicKey", + "deviceIdentifier", + "signature" + ], "properties": { "publicKey": { "type": "string" @@ -1157,9 +1553,16 @@ }, "NotificationsPushServerRegistration": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -1173,6 +1576,12 @@ }, "NotificationsPushNotification": { "type": "object", + "required": [ + "accountID", + "priority", + "type", + "subject" + ], "properties": { "accountID": { "type": "string" @@ -1190,6 +1599,13 @@ }, "NotificationsPushNotificationDecryptedSubject": { "type": "object", + "required": [ + "nid", + "app", + "subject", + "type", + "id" + ], "properties": { "nid": { "type": "integer" @@ -1216,9 +1632,16 @@ }, "ProvisioningApiUser": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -1232,6 +1655,41 @@ }, "ProvisioningApiUserDetails": { "type": "object", + "required": [ + "storageLocation", + "id", + "lastLogin", + "backend", + "subadmin", + "quota", + "avatarScope", + "emailScope", + "additional_mail", + "additional_mailScope", + "displaynameScope", + "phone", + "phoneScope", + "address", + "addressScope", + "website", + "websiteScope", + "twitter", + "twitterScope", + "organisation", + "organisationScope", + "role", + "roleScope", + "headline", + "headlineScope", + "biography", + "biographyScope", + "profile_enabled", + "profile_enabledScope", + "groups", + "language", + "locale", + "backendCapabilities" + ], "properties": { "enabled": { "type": "boolean" @@ -1256,6 +1714,13 @@ }, "quota": { "type": "object", + "required": [ + "free", + "used", + "total", + "relative", + "quota" + ], "properties": { "free": { "type": "integer" @@ -1372,6 +1837,10 @@ }, "backendCapabilities": { "type": "object", + "required": [ + "setDisplayName", + "setPassword" + ], "properties": { "setDisplayName": { "type": "boolean" @@ -1388,9 +1857,16 @@ }, "UserStatusPredefinedStatuses": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -1407,6 +1883,12 @@ }, "UserStatusPredefinedStatus": { "type": "object", + "required": [ + "id", + "icon", + "message", + "clearAt" + ], "properties": { "id": { "type": "string" @@ -1418,23 +1900,24 @@ "type": "string" }, "clearAt": { - "$ref": "#/components/schemas/UserStatusClearAtWrap" + "anyOf": [ + { + "$ref": "#/components/schemas/UserStatusClearAt" + }, + { + "type": "integer", + "description": "Time as unix timestamp" + } + ] } } }, - "UserStatusClearAtWrap": { - "oneOf": [ - { - "$ref": "#/components/schemas/UserStatusClearAt" - }, - { - "type": "integer", - "description": "Time as unix timestamp" - } - ] - }, "UserStatusClearAt": { "type": "object", + "required": [ + "type", + "time" + ], "properties": { "type": { "type": "string", @@ -1472,9 +1955,16 @@ }, "UserStatusGetUserStatus": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -1492,9 +1982,16 @@ }, "UserStatusFindAllStatuses": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -1511,9 +2008,16 @@ }, "UserStatusFindStatus": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -1531,6 +2035,13 @@ }, "UserStatus": { "type": "object", + "required": [ + "userId", + "messageIsPredefined", + "clearAt", + "status", + "statusIsUserDefined" + ], "properties": { "userId": { "type": "string" @@ -1548,7 +2059,15 @@ "type": "string" }, "clearAt": { - "$ref": "#/components/schemas/UserStatusClearAtWrap" + "anyOf": [ + { + "$ref": "#/components/schemas/UserStatusClearAt" + }, + { + "type": "integer", + "description": "Time as unix timestamp" + } + ] }, "status": { "$ref": "#/components/schemas/UserStatusType" @@ -1560,6 +2079,11 @@ }, "UserStatusPublicUserStatus": { "type": "object", + "required": [ + "userId", + "clearAt", + "status" + ], "properties": { "userId": { "type": "string" @@ -1571,7 +2095,15 @@ "type": "string" }, "clearAt": { - "$ref": "#/components/schemas/UserStatusClearAtWrap" + "anyOf": [ + { + "$ref": "#/components/schemas/UserStatusClearAt" + }, + { + "type": "integer", + "description": "Time as unix timestamp" + } + ] }, "status": { "$ref": "#/components/schemas/UserStatusType" diff --git a/packages/nextcloud/lib/src/version_supported.dart b/packages/nextcloud/lib/src/version_supported.dart index 9917d409..f0455193 100644 --- a/packages/nextcloud/lib/src/version_supported.dart +++ b/packages/nextcloud/lib/src/version_supported.dart @@ -3,8 +3,8 @@ part of '../nextcloud.dart'; // ignore: public_member_api_docs extension CoreVersionSupported on CoreClient { /// Checks if the app on the server is supported by the client - Future isSupported([final CoreServerCapabilitiesOcsData? capabilities]) async => - (capabilities ?? (await getCapabilities()).ocs!.data!).version!.major! == 24; + Future isSupported([final CoreServerCapabilities_Ocs_Data? capabilities]) async => + (capabilities ?? (await getCapabilities()).ocs.data).version.major == 24; } // ignore: public_member_api_docs @@ -19,11 +19,11 @@ extension NewsVersionSupported on NewsClient { // ignore: public_member_api_docs extension NotesVersionSupported on NotesClient { /// Checks if the app on the server is supported by the client - Future isSupported([final CoreServerCapabilitiesOcsData? capabilities]) async => - (capabilities ?? (await rootClient.core.getCapabilities()).ocs!.data!) - .capabilities! + Future isSupported([final CoreServerCapabilities_Ocs_Data? capabilities]) async => + (capabilities ?? (await rootClient.core.getCapabilities()).ocs.data) + .capabilities .notes! - .apiVersion! + .apiVersion .map(Version.parse) .where((final version) => version.major == 1) .isNotEmpty; diff --git a/packages/nextcloud/test/core_test.dart b/packages/nextcloud/test/core_test.dart index 6a06fe62..e94829b9 100644 --- a/packages/nextcloud/test/core_test.dart +++ b/packages/nextcloud/test/core_test.dart @@ -35,30 +35,30 @@ Future main() async { test('Get capabilities', () async { final capabilities = await client.core.getCapabilities(); - expect(capabilities.ocs!.data!.version!.major.toString(), nextcloudVersion.split('.')[0]); - expect(capabilities.ocs!.data!.version!.string, nextcloudVersion); - expect(capabilities.ocs!.data!.capabilities!.theming!.name, 'Nextcloud'); - expect(capabilities.ocs!.data!.capabilities!.theming!.url, 'https://nextcloud.com'); - expect(capabilities.ocs!.data!.capabilities!.theming!.slogan, 'a safe home for all your data'); - expect(capabilities.ocs!.data!.capabilities!.theming!.color, '#0082c9'); - expect(capabilities.ocs!.data!.capabilities!.theming!.colorText, '#ffffff'); - expect(capabilities.ocs!.data!.capabilities!.theming!.logo, isNotEmpty); - expect(capabilities.ocs!.data!.capabilities!.theming!.background, isNotEmpty); - expect(capabilities.ocs!.data!.capabilities!.theming!.backgroundPlain, false); - expect(capabilities.ocs!.data!.capabilities!.theming!.backgroundDefault, true); - expect(capabilities.ocs!.data!.capabilities!.theming!.logoheader, isNotEmpty); - expect(capabilities.ocs!.data!.capabilities!.theming!.favicon, isNotEmpty); + expect(capabilities.ocs.data.version.major.toString(), nextcloudVersion.split('.')[0]); + expect(capabilities.ocs.data.version.string, nextcloudVersion); + expect(capabilities.ocs.data.capabilities.theming!.name, 'Nextcloud'); + expect(capabilities.ocs.data.capabilities.theming!.url, 'https://nextcloud.com'); + expect(capabilities.ocs.data.capabilities.theming!.slogan, 'a safe home for all your data'); + expect(capabilities.ocs.data.capabilities.theming!.color, '#0082c9'); + expect(capabilities.ocs.data.capabilities.theming!.colorText, '#ffffff'); + expect(capabilities.ocs.data.capabilities.theming!.logo, isNotEmpty); + expect(capabilities.ocs.data.capabilities.theming!.background, isNotEmpty); + expect(capabilities.ocs.data.capabilities.theming!.backgroundPlain, false); + expect(capabilities.ocs.data.capabilities.theming!.backgroundDefault, true); + expect(capabilities.ocs.data.capabilities.theming!.logoheader, isNotEmpty); + expect(capabilities.ocs.data.capabilities.theming!.favicon, isNotEmpty); }); test('Get navigation apps', () async { final navigationApps = await client.core.getNavigationApps(); - expect(navigationApps.ocs!.data, hasLength(6)); - expect(navigationApps.ocs!.data![0].id, 'dashboard'); - expect(navigationApps.ocs!.data![1].id, 'files'); - expect(navigationApps.ocs!.data![2].id, 'photos'); - expect(navigationApps.ocs!.data![3].id, 'activity'); - expect(navigationApps.ocs!.data![4].id, 'notes'); - expect(navigationApps.ocs!.data![5].id, 'news'); + expect(navigationApps.ocs.data, hasLength(6)); + expect(navigationApps.ocs.data[0].id, 'dashboard'); + expect(navigationApps.ocs.data[1].id, 'files'); + expect(navigationApps.ocs.data[2].id, 'photos'); + expect(navigationApps.ocs.data[3].id, 'activity'); + expect(navigationApps.ocs.data[4].id, 'notes'); + expect(navigationApps.ocs.data[5].id, 'news'); }); }); } diff --git a/packages/nextcloud/test/news_test.dart b/packages/nextcloud/test/news_test.dart index 6e26efc0..dd5a88bd 100644 --- a/packages/nextcloud/test/news_test.dart +++ b/packages/nextcloud/test/news_test.dart @@ -38,18 +38,18 @@ Future main() async { expect(response.starredCount, null); expect(response.newestItemId, isNotNull); expect(response.feeds, hasLength(1)); - expect(response.feeds![0].url, wikipediaFeedURL); + expect(response.feeds[0].url, wikipediaFeedURL); response = await client.news.listFeeds(); expect(response.starredCount, 0); expect(response.newestItemId, isNotNull); expect(response.feeds, hasLength(1)); - expect(response.feeds![0].url, wikipediaFeedURL); + expect(response.feeds[0].url, wikipediaFeedURL); }); test('Rename feed', () async { var response = await addWikipediaFeed(); - expect(response.feeds![0].title, 'Wikipedia featured articles feed'); + expect(response.feeds[0].title, 'Wikipedia featured articles feed'); await client.news.renameFeed( feedId: 1, @@ -57,7 +57,7 @@ Future main() async { ); response = await client.news.listFeeds(); - expect(response.feeds![0].title, 'test1'); + expect(response.feeds[0].title, 'test1'); }); test('Move feed to folder', () async { @@ -70,20 +70,20 @@ Future main() async { final response = await client.news.listFolders(); expect(response.folders, hasLength(1)); - expect(response.folders![0].id, 1); - expect(response.folders![0].name, 'test1'); - expect(response.folders![0].opened, true); - expect(response.folders![0].feeds, hasLength(0)); + expect(response.folders[0].id, 1); + expect(response.folders[0].name, 'test1'); + expect(response.folders[0].opened, true); + expect(response.folders[0].feeds, hasLength(0)); }); test('Mark feed as read', () async { final feedsResponse = await addWikipediaFeed(); var articlesResponse = await client.news.listArticles(type: NewsListType.unread.code); - expect(articlesResponse.items!.length, greaterThan(0)); + expect(articlesResponse.items.length, greaterThan(0)); await client.news.markFeedAsRead( - feedId: feedsResponse.feeds![0].id!, + feedId: feedsResponse.feeds[0].id, newestItemId: feedsResponse.newestItemId!, ); @@ -98,11 +98,11 @@ Future main() async { await addWikipediaFeed(); response = await client.news.listArticles(); - expect(response.items!.length, greaterThan(0)); - expect(response.items![0].body, isNotNull); - expect(response.items![0].feedId, 1); - expect(response.items![0].unread, true); - expect(response.items![0].starred, false); + expect(response.items.length, greaterThan(0)); + expect(response.items[0].body, isNotNull); + expect(response.items[0].feedId, 1); + expect(response.items[0].unread, true); + expect(response.items[0].starred, false); }); test('List updated articles', () async { @@ -114,17 +114,17 @@ Future main() async { await addWikipediaFeed(); var response = await client.news.listArticles(); - final wikipediaArticles = response.items!.length; + final wikipediaArticles = response.items.length; expect(wikipediaArticles, greaterThan(0)); await addNasaFeed(); response = await client.news.listArticles(); - final nasaArticles = response.items!.length - wikipediaArticles; + final nasaArticles = response.items.length - wikipediaArticles; expect(nasaArticles, greaterThan(0)); response = await client.news.listUpdatedArticles( - lastModified: response.items![response.items!.length - 1 - nasaArticles].lastModified!, + lastModified: response.items[response.items.length - 1 - nasaArticles].lastModified, ); expect(response.items, hasLength(nasaArticles)); }); @@ -133,11 +133,11 @@ Future main() async { await addWikipediaFeed(); var response = await client.news.listArticles(type: NewsListType.unread.code); - final unreadArticles = response.items!.length; + final unreadArticles = response.items.length; expect(unreadArticles, greaterThan(0)); await client.news.markArticleAsRead( - itemId: response.items![0].id!, + itemId: response.items[0].id, ); response = await client.news.listArticles(type: NewsListType.unread.code); expect(response.items, hasLength(unreadArticles - 1)); @@ -147,13 +147,13 @@ Future main() async { await addWikipediaFeed(); var response = await client.news.listArticles(type: NewsListType.unread.code); - final readArticle = response.items![0]; - await client.news.markArticleAsRead(itemId: readArticle.id!); + final readArticle = response.items[0]; + await client.news.markArticleAsRead(itemId: readArticle.id); response = await client.news.listArticles(type: NewsListType.unread.code); - final unreadArticles = response.items!.length; + final unreadArticles = response.items.length; expect(unreadArticles, greaterThan(0)); - await client.news.markArticleAsUnread(itemId: readArticle.id!); + await client.news.markArticleAsUnread(itemId: readArticle.id); response = await client.news.listArticles(type: NewsListType.unread.code); expect(response.items, hasLength(unreadArticles + 1)); }); @@ -162,12 +162,12 @@ Future main() async { await addWikipediaFeed(); var response = await client.news.listArticles(type: NewsListType.starred.code); - final starredArticles = response.items!.length; + final starredArticles = response.items.length; expect(starredArticles, 0); response = await client.news.listArticles(); await client.news.starArticle( - itemId: response.items![0].id!, + itemId: response.items[0].id, ); response = await client.news.listArticles(type: NewsListType.starred.code); expect(response.items, hasLength(1)); @@ -177,16 +177,16 @@ Future main() async { await addWikipediaFeed(); var response = await client.news.listArticles(); - final item = response.items![0]; + final item = response.items[0]; await client.news.starArticle( - itemId: item.id!, + itemId: item.id, ); response = await client.news.listArticles(type: NewsListType.starred.code); expect(response.items, hasLength(1)); await client.news.unstarArticle( - itemId: item.id!, + itemId: item.id, ); response = await client.news.listArticles(type: NewsListType.starred.code); expect(response.items, hasLength(0)); @@ -198,17 +198,17 @@ Future main() async { response = await client.news.createFolder(name: 'test1'); expect(response.folders, hasLength(1)); - expect(response.folders![0].id, 1); - expect(response.folders![0].name, 'test1'); - expect(response.folders![0].opened, true); - expect(response.folders![0].feeds, hasLength(0)); + expect(response.folders[0].id, 1); + expect(response.folders[0].name, 'test1'); + expect(response.folders[0].opened, true); + expect(response.folders[0].feeds, hasLength(0)); response = await client.news.listFolders(); expect(response.folders, hasLength(1)); - expect(response.folders![0].id, 1); - expect(response.folders![0].name, 'test1'); - expect(response.folders![0].opened, true); - expect(response.folders![0].feeds, hasLength(0)); + expect(response.folders[0].id, 1); + expect(response.folders[0].name, 'test1'); + expect(response.folders[0].opened, true); + expect(response.folders[0].feeds, hasLength(0)); }); test('List folders', () async { @@ -220,14 +220,14 @@ Future main() async { response = response = await client.news.listFolders(); expect(response.folders, hasLength(2)); - expect(response.folders![0].id, 1); - expect(response.folders![0].name, 'test1'); - expect(response.folders![0].opened, true); - expect(response.folders![0].feeds, hasLength(0)); - expect(response.folders![1].id, 2); - expect(response.folders![1].name, 'test2'); - expect(response.folders![1].opened, true); - expect(response.folders![1].feeds, hasLength(0)); + expect(response.folders[0].id, 1); + expect(response.folders[0].name, 'test1'); + expect(response.folders[0].opened, true); + expect(response.folders[0].feeds, hasLength(0)); + expect(response.folders[1].id, 2); + expect(response.folders[1].name, 'test2'); + expect(response.folders[1].opened, true); + expect(response.folders[1].feeds, hasLength(0)); }); test('Add feed to folder', () async { @@ -236,8 +236,8 @@ Future main() async { expect(response.starredCount, null); expect(response.newestItemId, isNotNull); expect(response.feeds, hasLength(1)); - expect(response.feeds![0].folderId, 1); - expect(response.feeds![0].url, wikipediaFeedURL); + expect(response.feeds[0].folderId, 1); + expect(response.feeds[0].url, wikipediaFeedURL); }); test('Mark folder as read', () async { @@ -245,10 +245,10 @@ Future main() async { final feedsResponse = await addWikipediaFeed(1); var articlesResponse = await client.news.listArticles(type: NewsListType.unread.code); - expect(articlesResponse.items!.length, greaterThan(0)); + expect(articlesResponse.items.length, greaterThan(0)); await client.news.markFolderAsRead( - folderId: foldersResponse.folders![0].id!, + folderId: foldersResponse.folders[0].id, newestItemId: feedsResponse.newestItemId!, ); diff --git a/packages/nextcloud/test/notes_test.dart b/packages/nextcloud/test/notes_test.dart index 9cf4145d..a585bb41 100644 --- a/packages/nextcloud/test/notes_test.dart +++ b/packages/nextcloud/test/notes_test.dart @@ -61,13 +61,13 @@ Future main() async { test('Get note', () async { final response = await client.notes.getNote( - id: (await client.notes.createNote(title: 'a')).id!, + id: (await client.notes.createNote(title: 'a')).id, ); expect(response.title, 'a'); }); test('Update note', () async { - final id = (await client.notes.createNote(title: 'a')).id!; + final id = (await client.notes.createNote(title: 'a')).id; await client.notes.updateNote( id: id, title: 'b', @@ -80,13 +80,13 @@ Future main() async { test('Update note fail changed on server', () async { final response = await client.notes.createNote(title: 'a'); await client.notes.updateNote( - id: response.id!, + id: response.id, title: 'b', ifMatch: '"${response.etag}"', ); expect( () => client.notes.updateNote( - id: response.id!, + id: response.id, title: 'c', ifMatch: '"${response.etag}"', ), @@ -95,7 +95,7 @@ Future main() async { }); test('Delete note', () async { - final id = (await client.notes.createNote(title: 'a')).id!; + final id = (await client.notes.createNote(title: 'a')).id; var response = await client.notes.getNotes(); expect(response, hasLength(1)); @@ -110,7 +110,7 @@ Future main() async { final response = await client.notes.getSettings(); expect(response.notesPath, 'Notes'); expect(response.fileSuffix, '.txt'); - expect(response.noteMode, NotesSettingsNoteMode.edit); + expect(response.noteMode, NotesSettings_NoteMode.edit); }); test('Update settings', () async { @@ -118,17 +118,17 @@ Future main() async { notesSettings: NotesSettings( notesPath: 'Test Notes', fileSuffix: '.md', - noteMode: NotesSettingsNoteMode.preview, + noteMode: NotesSettings_NoteMode.preview, ), ); expect(response.notesPath, 'Test Notes'); expect(response.fileSuffix, '.md'); - expect(response.noteMode, NotesSettingsNoteMode.preview); + expect(response.noteMode, NotesSettings_NoteMode.preview); response = await client.notes.getSettings(); expect(response.notesPath, 'Test Notes'); expect(response.fileSuffix, '.md'); - expect(response.noteMode, NotesSettingsNoteMode.preview); + expect(response.noteMode, NotesSettings_NoteMode.preview); }); }); } diff --git a/packages/nextcloud/test/notifications_test.dart b/packages/nextcloud/test/notifications_test.dart index 00d85500..2f4d4cc7 100644 --- a/packages/nextcloud/test/notifications_test.dart +++ b/packages/nextcloud/test/notifications_test.dart @@ -38,22 +38,22 @@ Future main() async { final startTime = DateTime.now().toUtc(); final response = await client.notifications.listNotifications(); - expect(response.ocs!.data, hasLength(1)); - expect(response.ocs!.data![0].notificationId, 1); - expect(response.ocs!.data![0].app, 'admin_notifications'); - expect(response.ocs!.data![0].user, 'admin'); - expectDateInReasonableTimeRange(DateTime.parse(response.ocs!.data![0].datetime!), startTime); - expect(response.ocs!.data![0].objectType, 'admin_notifications'); - expect(response.ocs!.data![0].objectId, isNotNull); - expect(response.ocs!.data![0].subject, '123'); - expect(response.ocs!.data![0].message, '456'); - expect(response.ocs!.data![0].link, ''); - expect(response.ocs!.data![0].subjectRich, ''); - expect(response.ocs!.data![0].subjectRichParameters!.mapStringDynamic, null); - expect(response.ocs!.data![0].messageRich, ''); - expect(response.ocs!.data![0].messageRichParameters!.mapStringDynamic, null); - expect(response.ocs!.data![0].icon, isNotEmpty); - expect(response.ocs!.data![0].actions, hasLength(0)); + expect(response.ocs.data, hasLength(1)); + expect(response.ocs.data[0].notificationId, 1); + expect(response.ocs.data[0].app, 'admin_notifications'); + expect(response.ocs.data[0].user, 'admin'); + expectDateInReasonableTimeRange(DateTime.parse(response.ocs.data[0].datetime), startTime); + expect(response.ocs.data[0].objectType, 'admin_notifications'); + expect(response.ocs.data[0].objectId, isNotNull); + expect(response.ocs.data[0].subject, '123'); + expect(response.ocs.data[0].message, '456'); + expect(response.ocs.data[0].link, ''); + expect(response.ocs.data[0].subjectRich, ''); + expect(response.ocs.data[0].subjectRichParameters.mapStringDynamic, null); + expect(response.ocs.data[0].messageRich, ''); + expect(response.ocs.data[0].messageRichParameters.mapStringDynamic, null); + expect(response.ocs.data[0].icon, isNotEmpty); + expect(response.ocs.data[0].actions, hasLength(0)); }); test('Get notification', () async { @@ -61,21 +61,21 @@ Future main() async { final startTime = DateTime.now().toUtc(); final response = await client.notifications.getNotification(id: 1); - expect(response.ocs!.data!.notificationId, 1); - expect(response.ocs!.data!.app, 'admin_notifications'); - expect(response.ocs!.data!.user, 'admin'); - expectDateInReasonableTimeRange(DateTime.parse(response.ocs!.data!.datetime!), startTime); - expect(response.ocs!.data!.objectType, 'admin_notifications'); - expect(response.ocs!.data!.objectId, isNotNull); - expect(response.ocs!.data!.subject, '123'); - expect(response.ocs!.data!.message, '456'); - expect(response.ocs!.data!.link, ''); - expect(response.ocs!.data!.subjectRich, ''); - expect(response.ocs!.data!.subjectRichParameters!.mapStringDynamic, null); - expect(response.ocs!.data!.messageRich, ''); - expect(response.ocs!.data!.messageRichParameters!.mapStringDynamic, null); - expect(response.ocs!.data!.icon, isNotEmpty); - expect(response.ocs!.data!.actions, hasLength(0)); + expect(response.ocs.data.notificationId, 1); + expect(response.ocs.data.app, 'admin_notifications'); + expect(response.ocs.data.user, 'admin'); + expectDateInReasonableTimeRange(DateTime.parse(response.ocs.data.datetime), startTime); + expect(response.ocs.data.objectType, 'admin_notifications'); + expect(response.ocs.data.objectId, isNotNull); + expect(response.ocs.data.subject, '123'); + expect(response.ocs.data.message, '456'); + expect(response.ocs.data.link, ''); + expect(response.ocs.data.subjectRich, ''); + expect(response.ocs.data.subjectRichParameters.mapStringDynamic, null); + expect(response.ocs.data.messageRich, ''); + expect(response.ocs.data.messageRichParameters.mapStringDynamic, null); + expect(response.ocs.data.icon, isNotEmpty); + expect(response.ocs.data.actions, hasLength(0)); }); test('Delete notification', () async { @@ -83,7 +83,7 @@ Future main() async { await client.notifications.deleteNotification(id: 1); final response = await client.notifications.listNotifications(); - expect(response.ocs!.data, hasLength(0)); + expect(response.ocs.data, hasLength(0)); }); test('Delete all notifications', () async { @@ -92,7 +92,7 @@ Future main() async { await client.notifications.deleteAllNotifications(); final response = await client.notifications.listNotifications(); - expect(response.ocs!.data, hasLength(0)); + expect(response.ocs.data, hasLength(0)); }); }); @@ -139,12 +139,13 @@ Future main() async { devicePublicKey: keypair.publicKey.toFormattedPEM(), proxyServer: 'http://host.docker.internal:$port/', )) - .ocs! - .data!; + .ocs + .data; expect(subscription.publicKey, hasLength(451)); - RSAPublicKey.fromPEM(subscription.publicKey!); + RSAPublicKey.fromPEM(subscription.publicKey); expect(subscription.deviceIdentifier, isNotEmpty); expect(subscription.signature, isNotEmpty); + expect(subscription.message, isNull); final deviceCompleter = Completer(); final notificationCompleter = Completer(); @@ -195,11 +196,21 @@ Future main() async { }); test('Remove push device', () async { - await client.notifications.registerDevice( - pushTokenHash: '789', - devicePublicKey: generateKeypair().publicKey.toFormattedPEM(), + const pushToken = '789'; + final keypair = generateKeypair(); + + final subscription = (await client.notifications.registerDevice( + pushTokenHash: client.notifications.generatePushTokenHash(pushToken), + devicePublicKey: keypair.publicKey.toFormattedPEM(), proxyServer: 'https://example.com/', - ); + )) + .ocs + .data; + expect(subscription.publicKey, hasLength(451)); + RSAPublicKey.fromPEM(subscription.publicKey); + expect(subscription.deviceIdentifier, isNotEmpty); + expect(subscription.signature, isNotEmpty); + expect(subscription.message, isNull); await client.notifications.removeDevice(); }); diff --git a/packages/nextcloud/test/provisioning_api_test.dart b/packages/nextcloud/test/provisioning_api_test.dart index 6fc1f109..87442d5c 100644 --- a/packages/nextcloud/test/provisioning_api_test.dart +++ b/packages/nextcloud/test/provisioning_api_test.dart @@ -13,18 +13,18 @@ Future main() async { test('Get current user', () async { final user = await client.provisioningApi.getCurrentUser(); - expect(user.ocs!.data!.id, 'user1'); - expect(user.ocs!.data!.getDisplayName(), 'User One'); - expect(user.ocs!.data!.displaynameScope, 'v2-federated'); - expect(user.ocs!.data!.language, 'en'); + expect(user.ocs.data.id, 'user1'); + expect(user.ocs.data.getDisplayName(), 'User One'); + expect(user.ocs.data.displaynameScope, 'v2-federated'); + expect(user.ocs.data.language, 'en'); }); test('Get user by username', () async { final user = await client.provisioningApi.getUser(userId: 'user1'); - expect(user.ocs!.data!.id, 'user1'); - expect(user.ocs!.data!.getDisplayName(), 'User One'); - expect(user.ocs!.data!.displaynameScope, 'v2-federated'); - expect(user.ocs!.data!.language, 'en'); + expect(user.ocs.data.id, 'user1'); + expect(user.ocs.data.getDisplayName(), 'User One'); + expect(user.ocs.data.displaynameScope, 'v2-federated'); + expect(user.ocs.data.language, 'en'); }); }); } diff --git a/packages/nextcloud/test/user_status_test.dart b/packages/nextcloud/test/user_status_test.dart index 458165c7..05271727 100644 --- a/packages/nextcloud/test/user_status_test.dart +++ b/packages/nextcloud/test/user_status_test.dart @@ -14,45 +14,47 @@ Future main() async { test('Find all predefined statuses', () async { final expectedStatusIDs = ['meeting', 'commuting', 'remote-work', 'sick-leave', 'vacationing']; final response = await client.userStatus.findAllPredefinedStatuses(); - expect(response.ocs!.data, hasLength(5)); - final responseIDs = response.ocs!.data!.map((final status) => status.id!); + expect(response.ocs.data, hasLength(5)); + final responseIDs = response.ocs.data.map((final status) => status.id); expect(expectedStatusIDs.map(responseIDs.contains).contains(false), false); - for (final status in response.ocs!.data!) { + for (final status in response.ocs.data) { expect(status.icon, isNotNull); expect(status.message, isNotNull); } - final meeting = response.ocs!.data!.singleWhere((final s) => s.id == 'meeting').clearAt!.userStatusClearAt!; - expect(meeting.type, UserStatusClearAtType.period); - expect(meeting.time!.int_, 3600); + final meeting = response.ocs.data.singleWhere((final s) => s.id == 'meeting').clearAt.userStatusClearAt!; + expect(meeting.type, UserStatusClearAt_Type.period); + expect(meeting.time.int_, 3600); - final commuting = response.ocs!.data!.singleWhere((final s) => s.id == 'commuting').clearAt!.userStatusClearAt!; - expect(commuting.type, UserStatusClearAtType.period); - expect(commuting.time!.int_, 1800); + final commuting = response.ocs.data.singleWhere((final s) => s.id == 'commuting').clearAt.userStatusClearAt!; + expect(commuting.type, UserStatusClearAt_Type.period); + expect(commuting.time.int_, 1800); - final remoteWork = - response.ocs!.data!.singleWhere((final s) => s.id == 'remote-work').clearAt!.userStatusClearAt!; - expect(remoteWork.type, UserStatusClearAtType.endOf); - expect(remoteWork.time!.userStatusClearAtTime0, UserStatusClearAtTime0.day); + final remoteWork = response.ocs.data.singleWhere((final s) => s.id == 'remote-work').clearAt.userStatusClearAt!; + expect(remoteWork.type, UserStatusClearAt_Type.endOf); + expect(remoteWork.time.userStatusClearAtTime0, UserStatusClearAt_Time0.day); - final sickLeave = response.ocs!.data!.singleWhere((final s) => s.id == 'sick-leave').clearAt!.userStatusClearAt!; - expect(sickLeave.type, UserStatusClearAtType.endOf); - expect(sickLeave.time!.userStatusClearAtTime0, UserStatusClearAtTime0.day); + final sickLeave = response.ocs.data.singleWhere((final s) => s.id == 'sick-leave').clearAt.userStatusClearAt!; + expect(sickLeave.type, UserStatusClearAt_Type.endOf); + expect(sickLeave.time.userStatusClearAtTime0, UserStatusClearAt_Time0.day); - expect(response.ocs!.data!.singleWhere((final s) => s.id == 'vacationing').clearAt, null); + final vacationing = response.ocs.data.singleWhere((final s) => s.id == 'vacationing').clearAt; + expect(vacationing.userStatusClearAt, null); + expect(vacationing.int_, null); }); test('Set status', () async { final response = await client.userStatus.setStatus(statusType: UserStatusType.online); - expect(response.ocs!.data!.userStatus!.userId, 'user1'); - expect(response.ocs!.data!.userStatus!.message, null); - expect(response.ocs!.data!.userStatus!.messageId, null); - expect(response.ocs!.data!.userStatus!.messageIsPredefined, false); - expect(response.ocs!.data!.userStatus!.icon, null); - expect(response.ocs!.data!.userStatus!.clearAt, null); - expect(response.ocs!.data!.userStatus!.status, UserStatusType.online); - expect(response.ocs!.data!.userStatus!.statusIsUserDefined, true); + expect(response.ocs.data.userStatus!.userId, 'user1'); + expect(response.ocs.data.userStatus!.message, null); + expect(response.ocs.data.userStatus!.messageId, null); + expect(response.ocs.data.userStatus!.messageIsPredefined, false); + expect(response.ocs.data.userStatus!.icon, null); + expect(response.ocs.data.userStatus!.clearAt.userStatusClearAt, null); + expect(response.ocs.data.userStatus!.clearAt.int_, null); + expect(response.ocs.data.userStatus!.status, UserStatusType.online); + expect(response.ocs.data.userStatus!.statusIsUserDefined, true); }); test('Get status', () async { @@ -61,29 +63,31 @@ Future main() async { await client.userStatus.setStatus(statusType: UserStatusType.online); final response = await client.userStatus.getStatus(); - expect(response.ocs!.data!.userStatus!.userId, 'user1'); - expect(response.ocs!.data!.userStatus!.message, null); - expect(response.ocs!.data!.userStatus!.messageId, null); - expect(response.ocs!.data!.userStatus!.messageIsPredefined, false); - expect(response.ocs!.data!.userStatus!.icon, null); - expect(response.ocs!.data!.userStatus!.clearAt, null); - expect(response.ocs!.data!.userStatus!.status, UserStatusType.online); - expect(response.ocs!.data!.userStatus!.statusIsUserDefined, true); + expect(response.ocs.data.userStatus!.userId, 'user1'); + expect(response.ocs.data.userStatus!.message, null); + expect(response.ocs.data.userStatus!.messageId, null); + expect(response.ocs.data.userStatus!.messageIsPredefined, false); + expect(response.ocs.data.userStatus!.icon, null); + expect(response.ocs.data.userStatus!.clearAt.userStatusClearAt, null); + expect(response.ocs.data.userStatus!.clearAt.int_, null); + expect(response.ocs.data.userStatus!.status, UserStatusType.online); + expect(response.ocs.data.userStatus!.statusIsUserDefined, true); }); test('Find all statuses', () async { var response = await client.userStatus.findAllStatuses(); - expect(response.ocs!.data, hasLength(0)); + expect(response.ocs.data, hasLength(0)); await client.userStatus.setStatus(statusType: UserStatusType.online); response = await client.userStatus.findAllStatuses(); - expect(response.ocs!.data, hasLength(1)); - expect(response.ocs!.data![0].userId, 'user1'); - expect(response.ocs!.data![0].message, null); - expect(response.ocs!.data![0].icon, null); - expect(response.ocs!.data![0].clearAt, null); - expect(response.ocs!.data![0].status, UserStatusType.online); + expect(response.ocs.data, hasLength(1)); + expect(response.ocs.data[0].userId, 'user1'); + expect(response.ocs.data[0].message, null); + expect(response.ocs.data[0].icon, null); + expect(response.ocs.data[0].clearAt.userStatusClearAt, null); + expect(response.ocs.data[0].clearAt.int_, null); + expect(response.ocs.data[0].status, UserStatusType.online); }); test('Find status', () async { @@ -91,11 +95,12 @@ Future main() async { await client.userStatus.setStatus(statusType: UserStatusType.online); final response = await client.userStatus.findStatus(userId: 'user1'); - expect(response.ocs!.data!.userStatusPublicUserStatus!.userId, 'user1'); - expect(response.ocs!.data!.userStatusPublicUserStatus!.message, null); - expect(response.ocs!.data!.userStatusPublicUserStatus!.icon, null); - expect(response.ocs!.data!.userStatusPublicUserStatus!.clearAt, null); - expect(response.ocs!.data!.userStatusPublicUserStatus!.status, UserStatusType.online); + expect(response.ocs.data.userStatusPublicUserStatus!.userId, 'user1'); + expect(response.ocs.data.userStatusPublicUserStatus!.message, null); + expect(response.ocs.data.userStatusPublicUserStatus!.icon, null); + expect(response.ocs.data.userStatusPublicUserStatus!.clearAt.userStatusClearAt, null); + expect(response.ocs.data.userStatusPublicUserStatus!.clearAt.int_, null); + expect(response.ocs.data.userStatusPublicUserStatus!.status, UserStatusType.online); }); test('Set predefined message', () async { @@ -104,14 +109,14 @@ Future main() async { messageId: 'meeting', clearAt: clearAt, ); - expect(response.ocs!.data!.userStatus!.userId, 'user1'); - expect(response.ocs!.data!.userStatus!.message, null); - expect(response.ocs!.data!.userStatus!.messageId, 'meeting'); - expect(response.ocs!.data!.userStatus!.messageIsPredefined, true); - expect(response.ocs!.data!.userStatus!.icon, null); - expect(response.ocs!.data!.userStatus!.clearAt!.int_, clearAt); - expect(response.ocs!.data!.userStatus!.status, UserStatusType.offline); - expect(response.ocs!.data!.userStatus!.statusIsUserDefined, false); + expect(response.ocs.data.userStatus!.userId, 'user1'); + expect(response.ocs.data.userStatus!.message, null); + expect(response.ocs.data.userStatus!.messageId, 'meeting'); + expect(response.ocs.data.userStatus!.messageIsPredefined, true); + expect(response.ocs.data.userStatus!.icon, null); + expect(response.ocs.data.userStatus!.clearAt.int_, clearAt); + expect(response.ocs.data.userStatus!.status, UserStatusType.offline); + expect(response.ocs.data.userStatus!.statusIsUserDefined, false); }); test('Set custom message', () async { @@ -121,14 +126,14 @@ Future main() async { message: 'bla', clearAt: clearAt, ); - expect(response.ocs!.data!.userStatus!.userId, 'user1'); - expect(response.ocs!.data!.userStatus!.message, 'bla'); - expect(response.ocs!.data!.userStatus!.messageId, null); - expect(response.ocs!.data!.userStatus!.messageIsPredefined, false); - expect(response.ocs!.data!.userStatus!.icon, '😀'); - expect(response.ocs!.data!.userStatus!.clearAt!.int_, clearAt); - expect(response.ocs!.data!.userStatus!.status, UserStatusType.offline); - expect(response.ocs!.data!.userStatus!.statusIsUserDefined, false); + expect(response.ocs.data.userStatus!.userId, 'user1'); + expect(response.ocs.data.userStatus!.message, 'bla'); + expect(response.ocs.data.userStatus!.messageId, null); + expect(response.ocs.data.userStatus!.messageIsPredefined, false); + expect(response.ocs.data.userStatus!.icon, '😀'); + expect(response.ocs.data.userStatus!.clearAt.int_, clearAt); + expect(response.ocs.data.userStatus!.status, UserStatusType.offline); + expect(response.ocs.data.userStatus!.statusIsUserDefined, false); }); test('Clear message', () async { @@ -141,28 +146,30 @@ Future main() async { await client.userStatus.clearMessage(); final response = await client.userStatus.getStatus(); - expect(response.ocs!.data!.userStatus!.userId, 'user1'); - expect(response.ocs!.data!.userStatus!.message, null); - expect(response.ocs!.data!.userStatus!.messageId, null); - expect(response.ocs!.data!.userStatus!.messageIsPredefined, false); - expect(response.ocs!.data!.userStatus!.icon, null); - expect(response.ocs!.data!.userStatus!.clearAt, null); - expect(response.ocs!.data!.userStatus!.status, UserStatusType.offline); - expect(response.ocs!.data!.userStatus!.statusIsUserDefined, false); + expect(response.ocs.data.userStatus!.userId, 'user1'); + expect(response.ocs.data.userStatus!.message, null); + expect(response.ocs.data.userStatus!.messageId, null); + expect(response.ocs.data.userStatus!.messageIsPredefined, false); + expect(response.ocs.data.userStatus!.icon, null); + expect(response.ocs.data.userStatus!.clearAt.userStatusClearAt, null); + expect(response.ocs.data.userStatus!.clearAt.int_, null); + expect(response.ocs.data.userStatus!.status, UserStatusType.offline); + expect(response.ocs.data.userStatus!.statusIsUserDefined, false); }); test('Heartbeat', () async { await client.userStatus.heartbeat(status: UserStatusType.online); final response = await client.userStatus.getStatus(); - expect(response.ocs!.data!.userStatus!.userId, 'user1'); - expect(response.ocs!.data!.userStatus!.message, null); - expect(response.ocs!.data!.userStatus!.messageId, null); - expect(response.ocs!.data!.userStatus!.messageIsPredefined, false); - expect(response.ocs!.data!.userStatus!.icon, null); - expect(response.ocs!.data!.userStatus!.clearAt, null); - expect(response.ocs!.data!.userStatus!.status, UserStatusType.online); - expect(response.ocs!.data!.userStatus!.statusIsUserDefined, false); + expect(response.ocs.data.userStatus!.userId, 'user1'); + expect(response.ocs.data.userStatus!.message, null); + expect(response.ocs.data.userStatus!.messageId, null); + expect(response.ocs.data.userStatus!.messageIsPredefined, false); + expect(response.ocs.data.userStatus!.icon, null); + expect(response.ocs.data.userStatus!.clearAt.userStatusClearAt, null); + expect(response.ocs.data.userStatus!.clearAt.int_, null); + expect(response.ocs.data.userStatus!.status, UserStatusType.online); + expect(response.ocs.data.userStatus!.statusIsUserDefined, false); }); }); } diff --git a/specs/core.json b/specs/core.json index 6e7b1a4f..f4b26553 100644 --- a/specs/core.json +++ b/specs/core.json @@ -36,6 +36,12 @@ "schemas": { "OCSMeta": { "type": "object", + "required": [ + "status", + "statuscode", + "totalitems", + "itemsperpage" + ], "properties": { "status": { "type": "string" @@ -56,6 +62,16 @@ }, "CoreServerStatus": { "type": "object", + "required": [ + "installed", + "maintenance", + "needsDbUpgrade", + "version", + "versionstring", + "edition", + "productname", + "extendedSupport" + ], "properties": { "installed": { "type": "boolean" @@ -85,18 +101,37 @@ }, "CoreServerCapabilities": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" }, "data": { "type": "object", + "required": [ + "version", + "capabilities" + ], "properties": { "version": { "type": "object", + "required": [ + "major", + "minor", + "micro", + "string", + "edition", + "extendedSupport" + ], "properties": { "major": { "type": "integer" @@ -120,9 +155,21 @@ }, "capabilities": { "type": "object", + "required": [ + "core", + "bruteforce", + "metadataAvailable", + "files", + "ocm", + "dav" + ], "properties": { "core": { "type": "object", + "required": [ + "pollinterval", + "webdav-root" + ], "properties": { "pollinterval": { "type": "integer" @@ -134,6 +181,9 @@ }, "bruteforce": { "type": "object", + "required": [ + "delay" + ], "properties": { "delay": { "type": "integer" @@ -142,6 +192,9 @@ }, "metadataAvailable": { "type": "object", + "required": [ + "size" + ], "properties": { "size": { "type": "array", @@ -153,6 +206,14 @@ }, "files": { "type": "object", + "required": [ + "bigfilechunking", + "blacklisted_files", + "directEditing", + "comments", + "undelete", + "versioning" + ], "properties": { "bigfilechunking": { "type": "boolean" @@ -165,6 +226,10 @@ }, "directEditing": { "type": "object", + "required": [ + "url", + "etag" + ], "properties": { "url": { "type": "string" @@ -187,6 +252,9 @@ }, "activity": { "type": "object", + "required": [ + "apiv2" + ], "properties": { "apiv2": { "type": "array", @@ -198,12 +266,22 @@ }, "circles": { "type": "object", + "required": [ + "version", + "status", + "settings", + "circle", + "member" + ], "properties": { "version": { "type": "string" }, "status": { "type": "object", + "required": [ + "globalScale" + ], "properties": { "globalScale": { "type": "boolean" @@ -212,6 +290,12 @@ }, "settings": { "type": "object", + "required": [ + "frontendEnabled", + "allowedCircles", + "allowedUserTypes", + "membersLimit" + ], "properties": { "frontendEnabled": { "type": "boolean" @@ -229,15 +313,27 @@ }, "circle": { "type": "object", + "required": [ + "constants", + "config" + ], "properties": { "constants": { "type": "object", + "required": [ + "flags", + "source" + ], "properties": { "flags": { "type": "object" }, "source": { "type": "object", + "required": [ + "core", + "extra" + ], "properties": { "core": { "type": "object" @@ -251,6 +347,10 @@ }, "config": { "type": "object", + "required": [ + "coreFlags", + "systemFlags" + ], "properties": { "coreFlags": { "type": "array", @@ -270,9 +370,16 @@ }, "member": { "type": "object", + "required": [ + "constants", + "type" + ], "properties": { "constants": { "type": "object", + "required": [ + "level" + ], "properties": { "level": { "type": "object" @@ -288,6 +395,12 @@ }, "ocm": { "type": "object", + "required": [ + "enabled", + "apiVersion", + "endPoint", + "resourceTypes" + ], "properties": { "enabled": { "type": "boolean" @@ -302,6 +415,11 @@ "type": "array", "items": { "type": "object", + "required": [ + "name", + "shareTypes", + "protocols" + ], "properties": { "name": { "type": "string" @@ -314,6 +432,9 @@ }, "protocols": { "type": "object", + "required": [ + "webdav" + ], "properties": { "webdav": { "type": "string" @@ -327,6 +448,9 @@ }, "dav": { "type": "object", + "required": [ + "chunking" + ], "properties": { "chunking": { "type": "string" @@ -335,18 +459,45 @@ }, "files_sharing": { "type": "object", + "required": [ + "api_enabled", + "public", + "resharing", + "user", + "group_sharing", + "group", + "default_permissions", + "federation", + "sharee", + "sharebymail" + ], "properties": { "api_enabled": { "type": "boolean" }, "public": { "type": "object", + "required": [ + "enabled", + "password", + "expire_date", + "multiple_links", + "expire_date_internal", + "expire_date_remote", + "send_mail", + "upload", + "upload_files_drop" + ], "properties": { "enabled": { "type": "boolean" }, "password": { "type": "object", + "required": [ + "enforced", + "askForOptionalPassword" + ], "properties": { "enforced": { "type": "boolean" @@ -358,6 +509,9 @@ }, "expire_date": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -369,6 +523,9 @@ }, "expire_date_internal": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -377,6 +534,9 @@ }, "expire_date_remote": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -399,12 +559,19 @@ }, "user": { "type": "object", + "required": [ + "send_mail", + "expire_date" + ], "properties": { "send_mail": { "type": "boolean" }, "expire_date": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -418,12 +585,19 @@ }, "group": { "type": "object", + "required": [ + "enabled", + "expire_date" + ], "properties": { "enabled": { "type": "boolean" }, "expire_date": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -437,6 +611,12 @@ }, "federation": { "type": "object", + "required": [ + "outgoing", + "incoming", + "expire_date", + "expire_date_supported" + ], "properties": { "outgoing": { "type": "boolean" @@ -446,6 +626,9 @@ }, "expire_date": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -454,6 +637,9 @@ }, "expire_date_supported": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -464,6 +650,10 @@ }, "sharee": { "type": "object", + "required": [ + "query_lookup_default", + "always_show_unique" + ], "properties": { "query_lookup_default": { "type": "boolean" @@ -475,6 +665,13 @@ }, "sharebymail": { "type": "object", + "required": [ + "enabled", + "send_password_by_mail", + "upload_files_drop", + "password", + "expire_date" + ], "properties": { "enabled": { "type": "boolean" @@ -484,6 +681,9 @@ }, "upload_files_drop": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -492,6 +692,10 @@ }, "password": { "type": "object", + "required": [ + "enabled", + "enforced" + ], "properties": { "enabled": { "type": "boolean" @@ -503,6 +707,10 @@ }, "expire_date": { "type": "object", + "required": [ + "enabled", + "enforced" + ], "properties": { "enabled": { "type": "boolean" @@ -518,6 +726,10 @@ }, "notes": { "type": "object", + "required": [ + "api_version", + "version" + ], "properties": { "api_version": { "type": "array", @@ -532,6 +744,11 @@ }, "notifications": { "type": "object", + "required": [ + "ocs-endpoints", + "push", + "admin-notifications" + ], "properties": { "ocs-endpoints": { "type": "array", @@ -555,6 +772,14 @@ }, "password_policy": { "type": "object", + "required": [ + "minLength", + "enforceNonCommonPassword", + "enforceNumericCharacters", + "enforceSpecialCharacters", + "enforceUpperLowerCase", + "api" + ], "properties": { "minLength": { "type": "integer" @@ -573,6 +798,10 @@ }, "api": { "type": "object", + "required": [ + "generate", + "validate" + ], "properties": { "generate": { "type": "string" @@ -586,6 +815,12 @@ }, "provisioning_api": { "type": "object", + "required": [ + "version", + "AccountPropertyScopesVersion", + "AccountPropertyScopesFederatedEnabled", + "AccountPropertyScopesPublishedEnabled" + ], "properties": { "version": { "type": "string" @@ -603,6 +838,22 @@ }, "theming": { "type": "object", + "required": [ + "name", + "url", + "slogan", + "color", + "color-text", + "color-element", + "color-element-bright", + "color-element-dark", + "logo", + "background", + "background-plain", + "background-default", + "logoheader", + "favicon" + ], "properties": { "name": { "type": "string" @@ -650,6 +901,10 @@ }, "user_status": { "type": "object", + "required": [ + "enabled", + "supports_emoji" + ], "properties": { "enabled": { "type": "boolean" @@ -661,6 +916,9 @@ }, "weather_status": { "type": "object", + "required": [ + "enabled" + ], "properties": { "enabled": { "type": "boolean" @@ -677,9 +935,16 @@ }, "CoreNavigationApps": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -688,6 +953,17 @@ "type": "array", "items": { "type": "object", + "required": [ + "id", + "order", + "href", + "icon", + "type", + "name", + "active", + "classes", + "unread" + ], "properties": { "id": { "type": "string" @@ -733,9 +1009,17 @@ }, "CoreLoginFlowInit": { "type": "object", + "required": [ + "poll", + "login" + ], "properties": { "poll": { "type": "object", + "required": [ + "token", + "endpoint" + ], "properties": { "token": { "type": "string" @@ -752,6 +1036,11 @@ }, "CoreLoginFlowResult": { "type": "object", + "required": [ + "server", + "loginName", + "appPassword" + ], "properties": { "server": { "type": "string" diff --git a/specs/news.json b/specs/news.json index 65c912af..680b764f 100644 --- a/specs/news.json +++ b/specs/news.json @@ -34,8 +34,37 @@ ], "components": { "schemas": { + "OCSMeta": { + "type": "object", + "required": [ + "status", + "statuscode", + "totalitems", + "itemsperpage" + ], + "properties": { + "status": { + "type": "string" + }, + "statuscode": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "totalitems": { + "type": "string" + }, + "itemsperpage": { + "type": "string" + } + } + }, "NewsListFeeds": { "type": "object", + "required": [ + "feeds" + ], "properties": { "starredCount": { "type": "integer" @@ -53,6 +82,17 @@ }, "NewsFeed": { "type": "object", + "required": [ + "id", + "url", + "title", + "faviconLink", + "added", + "ordering", + "pinned", + "updateErrorCount", + "items" + ], "properties": { "id": { "type": "integer" @@ -100,6 +140,22 @@ }, "NewsArticle": { "type": "object", + "required": [ + "id", + "guid", + "guidHash", + "url", + "title", + "pubDate", + "body", + "feedId", + "unread", + "starred", + "lastModified", + "rtl", + "fingerprint", + "contentHash" + ], "properties": { "id": { "type": "integer" @@ -165,6 +221,9 @@ }, "NewsListArticles": { "type": "object", + "required": [ + "items" + ], "properties": { "items": { "type": "array", @@ -176,6 +235,9 @@ }, "NewsListFolders": { "type": "object", + "required": [ + "folders" + ], "properties": { "folders": { "type": "array", @@ -187,6 +249,12 @@ }, "NewsFolder": { "type": "object", + "required": [ + "id", + "name", + "opened", + "feeds" + ], "properties": { "id": { "type": "integer" @@ -206,26 +274,6 @@ } } } - }, - "OCSMeta": { - "type": "object", - "properties": { - "status": { - "type": "string" - }, - "statuscode": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "totalitems": { - "type": "string" - }, - "itemsperpage": { - "type": "string" - } - } } }, "securitySchemes": { diff --git a/specs/notes.json b/specs/notes.json index f4659e00..696827d9 100644 --- a/specs/notes.json +++ b/specs/notes.json @@ -34,8 +34,46 @@ ], "components": { "schemas": { + "OCSMeta": { + "type": "object", + "required": [ + "status", + "statuscode", + "totalitems", + "itemsperpage" + ], + "properties": { + "status": { + "type": "string" + }, + "statuscode": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "totalitems": { + "type": "string" + }, + "itemsperpage": { + "type": "string" + } + } + }, "NotesNote": { "type": "object", + "required": [ + "id", + "etag", + "readonly", + "content", + "title", + "category", + "favorite", + "modified", + "error", + "errorType" + ], "properties": { "id": { "type": "integer" @@ -71,6 +109,11 @@ }, "NotesSettings": { "type": "object", + "required": [ + "notesPath", + "fileSuffix", + "noteMode" + ], "properties": { "notesPath": { "type": "string" @@ -86,26 +129,6 @@ ] } } - }, - "OCSMeta": { - "type": "object", - "properties": { - "status": { - "type": "string" - }, - "statuscode": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "totalitems": { - "type": "string" - }, - "itemsperpage": { - "type": "string" - } - } } }, "securitySchemes": { diff --git a/specs/notifications.json b/specs/notifications.json index 7764de0a..62b03678 100644 --- a/specs/notifications.json +++ b/specs/notifications.json @@ -36,6 +36,12 @@ "schemas": { "OCSMeta": { "type": "object", + "required": [ + "status", + "statuscode", + "totalitems", + "itemsperpage" + ], "properties": { "status": { "type": "string" @@ -56,9 +62,16 @@ }, "NotificationsEmpty": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -75,6 +88,23 @@ }, "NotificationsNotification": { "type": "object", + "required": [ + "notification_id", + "app", + "user", + "datetime", + "object_type", + "object_id", + "subject", + "message", + "link", + "subjectRich", + "subjectRichParameters", + "messageRich", + "messageRichParameters", + "icon", + "actions" + ], "properties": { "notification_id": { "type": "integer" @@ -138,6 +168,11 @@ }, "NotificationsNotificationAction": { "type": "object", + "required": [ + "label", + "link", + "type" + ], "properties": { "label": { "type": "string" @@ -155,9 +190,16 @@ }, "NotificationsListNotifications": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -174,9 +216,16 @@ }, "NotificationsGetNotification": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -190,6 +239,11 @@ }, "NotificationsPushServerSubscription": { "type": "object", + "required": [ + "publicKey", + "deviceIdentifier", + "signature" + ], "properties": { "publicKey": { "type": "string" @@ -207,9 +261,16 @@ }, "NotificationsPushServerRegistration": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -223,6 +284,12 @@ }, "NotificationsPushNotification": { "type": "object", + "required": [ + "accountID", + "priority", + "type", + "subject" + ], "properties": { "accountID": { "type": "string" @@ -240,6 +307,13 @@ }, "NotificationsPushNotificationDecryptedSubject": { "type": "object", + "required": [ + "nid", + "app", + "subject", + "type", + "id" + ], "properties": { "nid": { "type": "integer" diff --git a/specs/provisioning_api.json b/specs/provisioning_api.json index f642efd7..63940e08 100644 --- a/specs/provisioning_api.json +++ b/specs/provisioning_api.json @@ -36,6 +36,12 @@ "schemas": { "OCSMeta": { "type": "object", + "required": [ + "status", + "statuscode", + "totalitems", + "itemsperpage" + ], "properties": { "status": { "type": "string" @@ -56,9 +62,16 @@ }, "ProvisioningApiUser": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -72,6 +85,41 @@ }, "ProvisioningApiUserDetails": { "type": "object", + "required": [ + "storageLocation", + "id", + "lastLogin", + "backend", + "subadmin", + "quota", + "avatarScope", + "emailScope", + "additional_mail", + "additional_mailScope", + "displaynameScope", + "phone", + "phoneScope", + "address", + "addressScope", + "website", + "websiteScope", + "twitter", + "twitterScope", + "organisation", + "organisationScope", + "role", + "roleScope", + "headline", + "headlineScope", + "biography", + "biographyScope", + "profile_enabled", + "profile_enabledScope", + "groups", + "language", + "locale", + "backendCapabilities" + ], "properties": { "enabled": { "type": "boolean" @@ -96,6 +144,13 @@ }, "quota": { "type": "object", + "required": [ + "free", + "used", + "total", + "relative", + "quota" + ], "properties": { "free": { "type": "integer" @@ -212,6 +267,10 @@ }, "backendCapabilities": { "type": "object", + "required": [ + "setDisplayName", + "setPassword" + ], "properties": { "setDisplayName": { "type": "boolean" diff --git a/specs/user_status.json b/specs/user_status.json index d99a97b8..68bc2be2 100644 --- a/specs/user_status.json +++ b/specs/user_status.json @@ -36,6 +36,12 @@ "schemas": { "OCSMeta": { "type": "object", + "required": [ + "status", + "statuscode", + "totalitems", + "itemsperpage" + ], "properties": { "status": { "type": "string" @@ -56,9 +62,16 @@ }, "UserStatusPredefinedStatuses": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -75,6 +88,12 @@ }, "UserStatusPredefinedStatus": { "type": "object", + "required": [ + "id", + "icon", + "message", + "clearAt" + ], "properties": { "id": { "type": "string" @@ -86,23 +105,24 @@ "type": "string" }, "clearAt": { - "$ref": "#/components/schemas/UserStatusClearAtWrap" + "anyOf": [ + { + "$ref": "#/components/schemas/UserStatusClearAt" + }, + { + "type": "integer", + "description": "Time as unix timestamp" + } + ] } } }, - "UserStatusClearAtWrap": { - "oneOf": [ - { - "$ref": "#/components/schemas/UserStatusClearAt" - }, - { - "type": "integer", - "description": "Time as unix timestamp" - } - ] - }, "UserStatusClearAt": { "type": "object", + "required": [ + "type", + "time" + ], "properties": { "type": { "type": "string", @@ -140,9 +160,16 @@ }, "UserStatusGetUserStatus": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -160,9 +187,16 @@ }, "UserStatusFindAllStatuses": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -179,9 +213,16 @@ }, "UserStatusFindStatus": { "type": "object", + "required": [ + "ocs" + ], "properties": { "ocs": { "type": "object", + "required": [ + "meta", + "data" + ], "properties": { "meta": { "$ref": "#/components/schemas/OCSMeta" @@ -199,6 +240,13 @@ }, "UserStatus": { "type": "object", + "required": [ + "userId", + "messageIsPredefined", + "clearAt", + "status", + "statusIsUserDefined" + ], "properties": { "userId": { "type": "string" @@ -216,7 +264,15 @@ "type": "string" }, "clearAt": { - "$ref": "#/components/schemas/UserStatusClearAtWrap" + "anyOf": [ + { + "$ref": "#/components/schemas/UserStatusClearAt" + }, + { + "type": "integer", + "description": "Time as unix timestamp" + } + ] }, "status": { "$ref": "#/components/schemas/UserStatusType" @@ -228,6 +284,11 @@ }, "UserStatusPublicUserStatus": { "type": "object", + "required": [ + "userId", + "clearAt", + "status" + ], "properties": { "userId": { "type": "string" @@ -239,7 +300,15 @@ "type": "string" }, "clearAt": { - "$ref": "#/components/schemas/UserStatusClearAtWrap" + "anyOf": [ + { + "$ref": "#/components/schemas/UserStatusClearAt" + }, + { + "type": "integer", + "description": "Time as unix timestamp" + } + ] }, "status": { "$ref": "#/components/schemas/UserStatusType" diff --git a/tool/generate-nextcloud.sh b/tool/generate-nextcloud.sh index 7a1d64b4..4734c327 100755 --- a/tool/generate-nextcloud.sh +++ b/tool/generate-nextcloud.sh @@ -71,6 +71,12 @@ for codename in ${codenames[*]}; do .components.schemas.OCSMeta = { type: "object", + required: [ + "status", + "statuscode", + "totalitems", + "itemsperpage" + ], properties: { status: { type: "string"