diff --git a/packages/dynamite/lib/src/openapi_builder.dart b/packages/dynamite/lib/src/openapi_builder.dart index bc06808a..4246edec 100644 --- a/packages/dynamite/lib/src/openapi_builder.dart +++ b/packages/dynamite/lib/src/openapi_builder.dart @@ -22,6 +22,7 @@ class OpenAPIBuilder implements Builder { await buildStep.readAsString(inputId), ) as Map, ); + final prefix = _toDartName(spec.info.title, uppercaseFirstCharacter: true); if (spec.version != '3.1.0') { throw Exception('Only OpenAPI 3.1.0 is supported'); } @@ -34,7 +35,7 @@ class OpenAPIBuilder implements Builder { ]; final hasAnySecurity = spec.security?.isNotEmpty ?? false; - final state = State(); + final state = State(prefix); final output = [ "import 'dart:convert';", "import 'dart:io';", @@ -49,7 +50,7 @@ class OpenAPIBuilder implements Builder { '', Extension( (final b) => b - ..name = 'HttpClientResponseBody' + ..name = '${prefix}HttpClientResponseBody' ..on = refer('HttpClientResponse') ..methods.addAll([ Method( @@ -83,7 +84,7 @@ class OpenAPIBuilder implements Builder { ).accept(emitter).toString(), Class( (final b) => b - ..name = 'Response' + ..name = '${prefix}Response' ..types.addAll([ refer('T'), refer('U'), @@ -123,8 +124,8 @@ class OpenAPIBuilder implements Builder { ..returns = refer('String') ..annotations.add(refer('override')) ..lambda = true - ..body = const Code( - r"'Response(data: $data, headers: $headers)'", + ..body = Code( + "'${prefix}Response(data: \$data, headers: \$headers)'", ), ), ), @@ -181,7 +182,7 @@ class OpenAPIBuilder implements Builder { ).accept(emitter).toString(), Class( (final b) => b - ..name = 'ApiException' + ..name = '${prefix}ApiException' ..extend = refer('_Response') ..implements.add(refer('Exception')) ..constructors.addAll( @@ -210,7 +211,7 @@ class OpenAPIBuilder implements Builder { ..type = refer('_Response'), ), ) - ..body = const Code('ApiException(response.statusCode, response.headers, response.body,)'), + ..body = Code('${prefix}ApiException(response.statusCode, response.headers, response.body,)'), ), ], ) @@ -221,8 +222,8 @@ class OpenAPIBuilder implements Builder { ..returns = refer('String') ..annotations.add(refer('override')) ..lambda = true - ..body = const Code( - r"'ApiException(statusCode: ${super.statusCode}, headers: ${super.headers}, body: ${utf8.decode(super.body)})'", + ..body = Code( + "'${prefix}ApiException(statusCode: \${super.statusCode}, headers: \${super.headers}, body: \${utf8.decode(super.body)})'", ), ), ), @@ -230,7 +231,7 @@ class OpenAPIBuilder implements Builder { if (hasAnySecurity) ...[ Class( (final b) => b - ..name = 'Authentication' + ..name = '${prefix}Authentication' ..abstract = true ..methods.add( Method( @@ -257,8 +258,8 @@ class OpenAPIBuilder implements Builder { (final b) { final fields = ['username', 'password']; b - ..name = 'HttpBasicAuthentication' - ..extend = refer('Authentication') + ..name = '${prefix}HttpBasicAuthentication' + ..extend = refer('${prefix}Authentication') ..constructors.add( Constructor( (final b) => b @@ -373,7 +374,7 @@ class OpenAPIBuilder implements Builder { Field( (final b) => b ..name = 'authentication' - ..type = refer('Authentication?') + ..type = refer('${prefix}Authentication?') ..modifier = FieldModifier.final$, ), ], @@ -445,8 +446,8 @@ class OpenAPIBuilder implements Builder { ..name = _toDartName(tag.name) ..lambda = true ..type = MethodType.getter - ..returns = refer(_clientName(tag)) - ..body = Code('${_clientName(tag)}(this)'), + ..returns = refer('$prefix${_clientName(tag)}') + ..body = Code('$prefix${_clientName(tag)}(this)'), ), ], ], @@ -512,7 +513,7 @@ class OpenAPIBuilder implements Builder { Field( (final b) => b ..name = 'rootClient' - ..type = refer('Client') + ..type = refer('${prefix}Client') ..modifier = FieldModifier.final$, ), ) @@ -529,7 +530,7 @@ class OpenAPIBuilder implements Builder { ); } b - ..name = isRootClient ? 'Client' : _clientName(tag) + ..name = '$prefix${isRootClient ? 'Client' : _clientName(tag)}' ..methods.addAll( [ for (final path in paths.keys) ...[ @@ -654,6 +655,7 @@ class OpenAPIBuilder implements Builder { _toDartName('$methodName-request-$mimeType', uppercaseFirstCharacter: true), mediaType.schema!, ); + final parameterName = _toDartName(result.name.replaceFirst(prefix, '')); switch (mimeType) { case 'application/json': case 'application/x-www-form-urlencoded': @@ -664,7 +666,7 @@ class OpenAPIBuilder implements Builder { b.optionalParameters.add( Parameter( (final b) => b - ..name = _toDartName(result.name) + ..name = parameterName ..type = refer(_makeNullable(result.name, nullable)) ..named = true ..required = operation.requestBody!.required ?? false, @@ -672,10 +674,10 @@ class OpenAPIBuilder implements Builder { ); if (nullable) { - code.write('if (${_toDartName(result.name)} != null) {'); + code.write('if ($parameterName != null) {'); } code.write( - 'body = Uint8List.fromList(utf8.encode(${result.encode(result.serialize(_toDartName(result.name)), mimeType: mimeType)}));', + 'body = Uint8List.fromList(utf8.encode(${result.encode(result.serialize(parameterName), mimeType: mimeType)}));', ); if (nullable) { code.write('}'); @@ -805,7 +807,9 @@ class OpenAPIBuilder implements Builder { code.write('}'); } - code.write('throw ApiException.fromResponse(response); // coverage:ignore-line\n'); + code.write( + 'throw ${prefix}ApiException.fromResponse(response); // coverage:ignore-line\n', + ); } else { b.returns = refer('Future'); } @@ -1018,6 +1022,9 @@ bool _isParameterNullable(final bool? required, final dynamic default_) => !(req String _valueToEscapedValue(final String type, final dynamic value) => type == 'String' ? "'$value'" : value.toString(); class State { + State(this.prefix); + + final String prefix; final resolvedTypes = []; final registeredJsonObjects = []; final output = []; @@ -1032,14 +1039,14 @@ TypeResult resolveObject( required final Map>? extraJsonKeyValues, final bool fromJsonString = false, }) { - if (!state.resolvedTypes.contains(identifier)) { - state.resolvedTypes.add(identifier); - state.registeredJsonObjects.add(identifier); + if (!state.resolvedTypes.contains('${state.prefix}$identifier')) { + state.resolvedTypes.add('${state.prefix}$identifier'); + state.registeredJsonObjects.add('${state.prefix}$identifier'); state.output.add( Class( (final b) { b - ..name = identifier + ..name = '${state.prefix}$identifier' ..docs.addAll([ if (schema.description != null && schema.description!.isNotEmpty) ...[ '/// ${schema.description!}', @@ -1102,7 +1109,7 @@ TypeResult resolveObject( ..type = refer('Map'), ), ) - ..body = Code('_\$${identifier}FromJson(json)'), + ..body = Code('_\$${state.prefix}${identifier}FromJson(json)'), ), Constructor( (final b) => b @@ -1116,7 +1123,7 @@ TypeResult resolveObject( ..type = refer('String'), ), ) - ..body = Code('$identifier.fromJson(json.decode(data) as Map)'), + ..body = Code('${state.prefix}$identifier.fromJson(json.decode(data) as Map)'), ), ], ) @@ -1126,7 +1133,7 @@ TypeResult resolveObject( ..name = 'toJson' ..returns = refer('Map') ..lambda = true - ..body = Code('_\$${identifier}ToJson(this)'), + ..body = Code('_\$${state.prefix}${identifier}ToJson(this)'), ), Method( (final b) => b @@ -1138,7 +1145,7 @@ TypeResult resolveObject( Parameter( (final b) => b ..name = 'data' - ..type = refer(_makeNullable(identifier, true)), + ..type = refer(_makeNullable('${state.prefix}$identifier', true)), ), ) ..body = const Code('data == null ? null : json.encode(data.toJson())'), @@ -1180,7 +1187,7 @@ TypeResult resolveObject( var fromJson = '${result.name}.fromJsonString'; var toJson = '${result.name}.toJsonString'; if (isJsonStringArray) { - fromJson = '_${_toDartName('${identifier}FromJsonString')}'; + fromJson = '_${_toDartName('${state.prefix}${identifier}FromJsonString')}'; if (!state.resolvedTypes.contains(fromJson)) { state.resolvedTypes.add(fromJson); state.output.add( @@ -1200,7 +1207,7 @@ TypeResult resolveObject( ), ); } - toJson = '_${_toDartName('${identifier}ToJsonString')}'; + toJson = '_${_toDartName('${state.prefix}${identifier}ToJsonString')}'; if (!state.resolvedTypes.contains(toJson)) { state.resolvedTypes.add(toJson); state.output.add( @@ -1253,7 +1260,7 @@ TypeResult resolveObject( ); } return TypeResultObject( - identifier, + '${state.prefix}$identifier', fromJsonString: fromJsonString, ); } @@ -1280,8 +1287,8 @@ TypeResult resolveType( fromJsonString: fromJsonString, ); } else if (schema.ofs != null) { - if (!state.resolvedTypes.contains(identifier)) { - state.resolvedTypes.add(identifier); + if (!state.resolvedTypes.contains('${state.prefix}$identifier')) { + state.resolvedTypes.add('${state.prefix}$identifier'); final results = schema.ofs! .map( (final s) => resolveType( @@ -1298,12 +1305,12 @@ TypeResult resolveType( (final b) { final fields = {}; for (final result in results) { - final dartName = _toDartName(result.name); - fields[result.name] = _toFieldName(dartName, result.name); + final dartName = _toDartName(result.name.replaceFirst(state.prefix, '')); + fields[result.name] = _toFieldName(dartName, result.name.replaceFirst(state.prefix, '')); } b - ..name = identifier + ..name = '${state.prefix}$identifier' ..fields.addAll([ Field( (final b) { @@ -1398,7 +1405,7 @@ TypeResult resolveType( if (schema.allOf != null) ...[ "assert([${fields.values.join(',')}].where((final x) => x != null).length == ${fields.length}, 'Need allOf for \$data');", ], - 'return $identifier(', + 'return ${state.prefix}$identifier(', 'data,', for (final result in results) ...[ '${fields[result.name]!}: ${fields[result.name]!},', @@ -1421,7 +1428,7 @@ TypeResult resolveType( ..type = refer('String'), ), ) - ..body = Code('$identifier.fromJson(json.decode(data))'); + ..body = Code('${state.prefix}$identifier.fromJson(json.decode(data))'); }, ), ]) @@ -1454,7 +1461,7 @@ TypeResult resolveType( ); } - result = TypeResultObject(identifier); + result = TypeResultObject('${state.prefix}$identifier'); } else { switch (schema.type) { case 'boolean': @@ -1538,12 +1545,12 @@ TypeResult resolveType( if (result != null) { if (!ignoreEnum && schema.enum_ != null) { - if (!state.resolvedTypes.contains(identifier)) { - state.resolvedTypes.add(identifier); + if (!state.resolvedTypes.contains('${state.prefix}$identifier')) { + state.resolvedTypes.add('${state.prefix}$identifier'); state.output.add( Enum( (final b) => b - ..name = identifier + ..name = '${state.prefix}$identifier' ..constructors.add( Constructor( (final b) => b @@ -1587,7 +1594,7 @@ TypeResult resolveType( throw Exception( 'Sorry enum values are a bit broken. ' 'See https://github.com/google/json_serializable.dart/issues/616. ' - 'Please remove the enum values on $identifier.', + 'Please remove the enum values on ${state.prefix}$identifier.', ); } b.annotations.add( @@ -1605,7 +1612,7 @@ TypeResult resolveType( (final b) => b ..name = 'fromValue' ..static = true - ..returns = refer(identifier) + ..returns = refer('${state.prefix}$identifier') ..requiredParameters.add( Parameter( (final b) => b @@ -1618,10 +1625,10 @@ TypeResult resolveType( 'switch (value) {', for (final value in schema.enum_!) ...[ 'case ${_valueToEscapedValue(result!.name, value)}:', - 'return $identifier.${_toDartName(value.toString())};', + 'return ${state.prefix}$identifier.${_toDartName(value.toString())};', ], 'default:', - 'throw Exception(\'Can not parse $identifier from "\$value"\');', + 'throw Exception(\'Can not parse ${state.prefix}$identifier from "\$value"\');', '}', ].join(), ), @@ -1630,7 +1637,7 @@ TypeResult resolveType( ), ); } - result = TypeResultEnum(identifier, result); + result = TypeResultEnum('${state.prefix}$identifier', result); } return result; diff --git a/packages/neon/lib/src/app.dart b/packages/neon/lib/src/app.dart index eea5de35..30726ee4 100644 --- a/packages/neon/lib/src/app.dart +++ b/packages/neon/lib/src/app.dart @@ -28,7 +28,7 @@ class _NeonAppState extends State with WidgetsBindingObserver, tray.Tra late GlobalOptions _globalOptions; late AccountsBloc _accountsBloc; - CoreServerCapabilities_Ocs_Data_Capabilities_Theming? _nextcloudTheme; + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming? _nextcloudTheme; final _platformBrightness = BehaviorSubject.seeded(WidgetsBinding.instance.window.platformBrightness); Rect? _lastBounds; diff --git a/packages/neon/lib/src/apps/news/blocs/article.dart b/packages/neon/lib/src/apps/news/blocs/article.dart index 7caca987..0d1dcdd7 100644 --- a/packages/neon/lib/src/apps/news/blocs/article.dart +++ b/packages/neon/lib/src/apps/news/blocs/article.dart @@ -20,7 +20,7 @@ class NewsArticleBloc extends InteractiveBloc implements NewsArticleBlocEvents, NewsArticleBloc( this._client, this._newsArticlesBloc, - final NewsArticle article, + final NextcloudNewsArticle article, ) { _id = article.id; unread.add(article.unread); diff --git a/packages/neon/lib/src/apps/news/blocs/articles.dart b/packages/neon/lib/src/apps/news/blocs/articles.dart index b676485f..f9a7e237 100644 --- a/packages/neon/lib/src/apps/news/blocs/articles.dart +++ b/packages/neon/lib/src/apps/news/blocs/articles.dart @@ -14,17 +14,17 @@ enum ListType { abstract class NewsArticlesBlocEvents { void setFilterType(final FilterType type); - void markArticleAsRead(final NewsArticle article); + void markArticleAsRead(final NextcloudNewsArticle article); - void markArticleAsUnread(final NewsArticle article); + void markArticleAsUnread(final NextcloudNewsArticle article); - void starArticle(final NewsArticle article); + void starArticle(final NextcloudNewsArticle article); - void unstarArticle(final NewsArticle article); + void unstarArticle(final NextcloudNewsArticle article); } abstract class NewsArticlesBlocStates { - BehaviorSubject>> get articles; + BehaviorSubject>> get articles; BehaviorSubject get filterType; } @@ -72,7 +72,7 @@ class NewsArticlesBloc extends InteractiveBloc implements NewsArticlesBlocEvents } @override - BehaviorSubject>> articles = BehaviorSubject>>(); + BehaviorSubject>> articles = BehaviorSubject>>(); @override BehaviorSubject filterType = BehaviorSubject(); @@ -125,7 +125,7 @@ class NewsArticlesBloc extends InteractiveBloc implements NewsArticlesBlocEvents break; } - await requestManager.wrapNextcloud, NewsListArticles>( + await requestManager.wrapNextcloud, NextcloudNewsListArticles>( client.id, 'news-articles-${type.code}-$id-$getRead', articles, @@ -139,12 +139,12 @@ class NewsArticlesBloc extends InteractiveBloc implements NewsArticlesBlocEvents } @override - void markArticleAsRead(final NewsArticle article) { + void markArticleAsRead(final NextcloudNewsArticle article) { wrapAction(() async => client.news.markArticleAsRead(itemId: article.id)); } @override - void markArticleAsUnread(final NewsArticle article) { + void markArticleAsUnread(final NextcloudNewsArticle article) { wrapAction(() async => client.news.markArticleAsUnread(itemId: article.id)); } @@ -154,12 +154,12 @@ class NewsArticlesBloc extends InteractiveBloc implements NewsArticlesBlocEvents } @override - void starArticle(final NewsArticle article) { + void starArticle(final NextcloudNewsArticle article) { wrapAction(() async => client.news.starArticle(itemId: article.id)); } @override - void unstarArticle(final NewsArticle article) { + void unstarArticle(final NextcloudNewsArticle article) { wrapAction(() async => client.news.unstarArticle(itemId: article.id)); } } diff --git a/packages/neon/lib/src/apps/news/blocs/news.dart b/packages/neon/lib/src/apps/news/blocs/news.dart index d2143138..168282c0 100644 --- a/packages/neon/lib/src/apps/news/blocs/news.dart +++ b/packages/neon/lib/src/apps/news/blocs/news.dart @@ -21,9 +21,9 @@ abstract class NewsBlocEvents { } abstract class NewsBlocStates { - BehaviorSubject>> get folders; + BehaviorSubject>> get folders; - BehaviorSubject>> get feeds; + BehaviorSubject>> get feeds; BehaviorSubject get unreadCounter; } @@ -77,16 +77,16 @@ class NewsBloc extends InteractiveBloc implements NewsBlocEvents, NewsBlocStates } @override - BehaviorSubject>> feeds = BehaviorSubject>>(); + BehaviorSubject>> feeds = BehaviorSubject>>(); @override - BehaviorSubject>> folders = BehaviorSubject>>(); + BehaviorSubject>> folders = BehaviorSubject>>(); @override BehaviorSubject unreadCounter = BehaviorSubject(); @override - late BehaviorSubject>> articles = mainArticlesBloc.articles; + late BehaviorSubject>> articles = mainArticlesBloc.articles; @override late BehaviorSubject filterType = mainArticlesBloc.filterType; @@ -94,14 +94,14 @@ class NewsBloc extends InteractiveBloc implements NewsBlocEvents, NewsBlocStates @override Future refresh() async { await Future.wait([ - requestManager.wrapNextcloud, NewsListFolders>( + requestManager.wrapNextcloud, NextcloudNewsListFolders>( client.id, 'news-folders', folders, () async => client.news.listFolders(), (final response) => response.folders, ), - requestManager.wrapNextcloud, NewsListFeeds>( + requestManager.wrapNextcloud, NextcloudNewsListFeeds>( client.id, 'news-feeds', feeds, @@ -164,12 +164,12 @@ class NewsBloc extends InteractiveBloc implements NewsBlocEvents, NewsBlocStates } @override - void markArticleAsRead(final NewsArticle article) { + void markArticleAsRead(final NextcloudNewsArticle article) { mainArticlesBloc.markArticleAsRead(article); } @override - void markArticleAsUnread(final NewsArticle article) { + void markArticleAsUnread(final NextcloudNewsArticle article) { mainArticlesBloc.markArticleAsUnread(article); } @@ -179,12 +179,12 @@ class NewsBloc extends InteractiveBloc implements NewsBlocEvents, NewsBlocStates } @override - void starArticle(final NewsArticle article) { + void starArticle(final NextcloudNewsArticle article) { mainArticlesBloc.starArticle(article); } @override - void unstarArticle(final NewsArticle article) { + void unstarArticle(final NextcloudNewsArticle article) { mainArticlesBloc.unstarArticle(article); } diff --git a/packages/neon/lib/src/apps/news/dialogs/add_feed.dart b/packages/neon/lib/src/apps/news/dialogs/add_feed.dart index b4833e7e..3381b5a1 100644 --- a/packages/neon/lib/src/apps/news/dialogs/add_feed.dart +++ b/packages/neon/lib/src/apps/news/dialogs/add_feed.dart @@ -18,7 +18,7 @@ class _NewsAddFeedDialogState extends State { final formKey = GlobalKey(); final controller = TextEditingController(); - NewsFolder? folder; + NextcloudNewsFolder? folder; void submit() { if (formKey.currentState!.validate()) { @@ -43,7 +43,7 @@ class _NewsAddFeedDialogState extends State { } @override - Widget build(final BuildContext context) => ResultBuilder>( + Widget build(final BuildContext context) => ResultBuilder>( stream: widget.bloc.folders, builder: (final context, final folders) => CustomDialog( title: Text(AppLocalizations.of(context).newsAddFeed), 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 8418b44f..3fe02ece 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 @@ -6,7 +6,7 @@ class NewsFeedShowURLDialog extends StatefulWidget { super.key, }); - final NewsFeed feed; + final NextcloudNewsFeed feed; @override State createState() => _NewsFeedShowURLDialogState(); diff --git a/packages/neon/lib/src/apps/news/dialogs/feed_update_error.dart b/packages/neon/lib/src/apps/news/dialogs/feed_update_error.dart index ad46e60d..461f514f 100644 --- a/packages/neon/lib/src/apps/news/dialogs/feed_update_error.dart +++ b/packages/neon/lib/src/apps/news/dialogs/feed_update_error.dart @@ -6,7 +6,7 @@ class NewsFeedUpdateErrorDialog extends StatefulWidget { super.key, }); - final NewsFeed feed; + final NextcloudNewsFeed feed; @override State createState() => _NewsFeedUpdateErrorDialogState(); diff --git a/packages/neon/lib/src/apps/news/dialogs/move_feed.dart b/packages/neon/lib/src/apps/news/dialogs/move_feed.dart index 406b59a4..137e6aac 100644 --- a/packages/neon/lib/src/apps/news/dialogs/move_feed.dart +++ b/packages/neon/lib/src/apps/news/dialogs/move_feed.dart @@ -7,8 +7,8 @@ class NewsMoveFeedDialog extends StatefulWidget { super.key, }); - final List folders; - final NewsFeed feed; + final List folders; + final NextcloudNewsFeed feed; @override State createState() => _NewsMoveFeedDialogState(); @@ -17,7 +17,7 @@ class NewsMoveFeedDialog extends StatefulWidget { class _NewsMoveFeedDialogState extends State { final formKey = GlobalKey(); - NewsFolder? folder; + NextcloudNewsFolder? folder; void submit() { if (formKey.currentState!.validate()) { diff --git a/packages/neon/lib/src/apps/news/pages/feed.dart b/packages/neon/lib/src/apps/news/pages/feed.dart index a232b082..74771e91 100644 --- a/packages/neon/lib/src/apps/news/pages/feed.dart +++ b/packages/neon/lib/src/apps/news/pages/feed.dart @@ -8,7 +8,7 @@ class NewsFeedPage extends StatelessWidget { }); final NewsBloc bloc; - final NewsFeed feed; + final NextcloudNewsFeed feed; @override Widget build(final BuildContext context) => Scaffold( diff --git a/packages/neon/lib/src/apps/news/pages/folder.dart b/packages/neon/lib/src/apps/news/pages/folder.dart index 576626ab..68948c74 100644 --- a/packages/neon/lib/src/apps/news/pages/folder.dart +++ b/packages/neon/lib/src/apps/news/pages/folder.dart @@ -8,7 +8,7 @@ class NewsFolderPage extends StatelessWidget { }); final NewsBloc bloc; - final NewsFolder folder; + final NextcloudNewsFolder folder; @override Widget build(final BuildContext context) => Scaffold( diff --git a/packages/neon/lib/src/apps/news/sort/articles.dart b/packages/neon/lib/src/apps/news/sort/articles.dart index 07315dc3..fb804598 100644 --- a/packages/neon/lib/src/apps/news/sort/articles.dart +++ b/packages/neon/lib/src/apps/news/sort/articles.dart @@ -1,6 +1,6 @@ part of '../app.dart'; -final articlesSortBox = SortBox( +final articlesSortBox = SortBox( { ArticlesSortProperty.publishDate: (final article) => article.pubDate, ArticlesSortProperty.alphabetical: (final article) => article.title.toLowerCase(), diff --git a/packages/neon/lib/src/apps/news/sort/feeds.dart b/packages/neon/lib/src/apps/news/sort/feeds.dart index 69e0d402..ba5fa744 100644 --- a/packages/neon/lib/src/apps/news/sort/feeds.dart +++ b/packages/neon/lib/src/apps/news/sort/feeds.dart @@ -1,6 +1,6 @@ part of '../app.dart'; -final feedsSortBox = SortBox( +final feedsSortBox = SortBox( { FeedsSortProperty.alphabetical: (final feed) => feed.title.toLowerCase(), FeedsSortProperty.unreadCount: (final feed) => feed.unreadCount ?? 0, diff --git a/packages/neon/lib/src/apps/news/sort/folders.dart b/packages/neon/lib/src/apps/news/sort/folders.dart index 237f0169..d7d56b08 100644 --- a/packages/neon/lib/src/apps/news/sort/folders.dart +++ b/packages/neon/lib/src/apps/news/sort/folders.dart @@ -17,11 +17,11 @@ class FolderFeedsWrapper { this.feeds, ); - final NewsFolder folder; - final List feeds; + final NextcloudNewsFolder folder; + final List feeds; } -int feedsUnreadCountSum(final List feeds) => [ +int feedsUnreadCountSum(final List feeds) => [ 0, // Fixes error when no feeds are in the folder ...feeds.map((final f) => f.unreadCount!), ].reduce( 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 9b77578b..7ce7396f 100644 --- a/packages/neon/lib/src/apps/news/widgets/articles_view.dart +++ b/packages/neon/lib/src/apps/news/widgets/articles_view.dart @@ -25,18 +25,18 @@ class _NewsArticlesViewState extends State { } @override - Widget build(final BuildContext context) => ResultBuilder>( + Widget build(final BuildContext context) => ResultBuilder>( stream: widget.newsBloc.feeds, - builder: (final context, final feeds) => ResultBuilder>( + builder: (final context, final feeds) => ResultBuilder>( stream: widget.bloc.articles, builder: (final context, final articles) => Scaffold( resizeToAvoidBottomInset: false, - body: SortBoxBuilder( + body: SortBoxBuilder( sortBox: articlesSortBox, sortPropertyOption: widget.newsBloc.options.articlesSortPropertyOption, sortBoxOrderOption: widget.newsBloc.options.articlesSortBoxOrderOption, input: articles.data, - builder: (final context, final sorted) => CustomListView( + builder: (final context, final sorted) => CustomListView( scrollKey: 'news-articles', items: feeds.data == null ? null : sorted, isLoading: articles.loading || feeds.loading, @@ -103,8 +103,8 @@ class _NewsArticlesViewState extends State { Widget _buildArticle( final BuildContext context, - final NewsArticle article, - final NewsFeed feed, + final NextcloudNewsArticle article, + final NextcloudNewsFeed feed, ) => ListTile( title: Row( 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 3ccfee36..ec5c083f 100644 --- a/packages/neon/lib/src/apps/news/widgets/feed_icon.dart +++ b/packages/neon/lib/src/apps/news/widgets/feed_icon.dart @@ -8,7 +8,7 @@ class NewsFeedIcon extends StatelessWidget { super.key, }); - final NewsFeed feed; + final NextcloudNewsFeed feed; final double size; final BorderRadius? borderRadius; 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 836bb729..628b204a 100644 --- a/packages/neon/lib/src/apps/news/widgets/feeds_view.dart +++ b/packages/neon/lib/src/apps/news/widgets/feeds_view.dart @@ -11,9 +11,9 @@ class NewsFeedsView extends StatelessWidget { final int? folderID; @override - Widget build(final BuildContext context) => ResultBuilder>( + Widget build(final BuildContext context) => ResultBuilder>( stream: bloc.folders, - builder: (final context, final folders) => ResultBuilder>( + builder: (final context, final folders) => ResultBuilder>( stream: bloc.feeds, builder: (final context, final feeds) => Scaffold( resizeToAvoidBottomInset: false, @@ -32,14 +32,14 @@ class NewsFeedsView extends StatelessWidget { }, child: const Icon(Icons.add), ), - body: SortBoxBuilder( + body: SortBoxBuilder( sortBox: feedsSortBox, sortPropertyOption: bloc.options.feedsSortPropertyOption, sortBoxOrderOption: bloc.options.feedsSortBoxOrderOption, input: folders.data == null ? null : feeds.data?.where((final f) => folderID == null || f.folderId == folderID).toList(), - builder: (final context, final sorted) => CustomListView( + builder: (final context, final sorted) => CustomListView( scrollKey: 'news-feeds', withFloatingActionButton: true, items: sorted, @@ -59,8 +59,8 @@ class NewsFeedsView extends StatelessWidget { Widget _buildFeed( final BuildContext context, - final NewsFeed feed, - final List folders, + final NextcloudNewsFeed feed, + final List folders, ) => ListTile( title: Text( 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 74cd3a7d..21312a74 100644 --- a/packages/neon/lib/src/apps/news/widgets/folder_select.dart +++ b/packages/neon/lib/src/apps/news/widgets/folder_select.dart @@ -8,12 +8,12 @@ class NewsFolderSelect extends StatelessWidget { super.key, }); - final List folders; - final void Function(NewsFolder?) onChanged; - final NewsFolder? value; + final List folders; + final void Function(NextcloudNewsFolder?) onChanged; + final NextcloudNewsFolder? value; @override - Widget build(final BuildContext context) => DropdownButtonFormField( + Widget build(final BuildContext context) => DropdownButtonFormField( decoration: InputDecoration( hintText: AppLocalizations.of(context).newsFolder, ), @@ -23,7 +23,7 @@ class NewsFolderSelect extends StatelessWidget { child: Text(AppLocalizations.of(context).newsFolderRoot), ), ...folders.map( - (final f) => DropdownMenuItem( + (final f) => DropdownMenuItem( value: f, child: Text(f.name), ), diff --git a/packages/neon/lib/src/apps/news/widgets/folder_view.dart b/packages/neon/lib/src/apps/news/widgets/folder_view.dart index 62ccbdc6..6f24c0cb 100644 --- a/packages/neon/lib/src/apps/news/widgets/folder_view.dart +++ b/packages/neon/lib/src/apps/news/widgets/folder_view.dart @@ -8,7 +8,7 @@ class NewsFolderView extends StatefulWidget { }); final NewsBloc bloc; - final NewsFolder folder; + final NextcloudNewsFolder folder; @override State createState() => _NewsFolderViewState(); 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 8270232c..5de7ef71 100644 --- a/packages/neon/lib/src/apps/news/widgets/folders_view.dart +++ b/packages/neon/lib/src/apps/news/widgets/folders_view.dart @@ -23,9 +23,9 @@ class NewsFoldersView extends StatelessWidget { }, child: const Icon(Icons.add), ), - body: ResultBuilder>( + body: ResultBuilder>( stream: bloc.folders, - builder: (final context, final folders) => ResultBuilder>( + builder: (final context, final folders) => ResultBuilder>( stream: bloc.feeds, builder: (final context, final feeds) => SortBoxBuilder( sortBox: foldersSortBox, diff --git a/packages/neon/lib/src/apps/notes/blocs/note.dart b/packages/neon/lib/src/apps/notes/blocs/note.dart index 2493dcd6..415be44f 100644 --- a/packages/neon/lib/src/apps/notes/blocs/note.dart +++ b/packages/neon/lib/src/apps/notes/blocs/note.dart @@ -17,7 +17,7 @@ class NotesNoteBloc extends InteractiveBloc implements NotesNoteBlocEvents, Note this.options, this._client, this._notesBloc, - final NotesNote note, + final NextcloudNotesNote note, ) { _emitNote(note); id = note.id; @@ -25,13 +25,13 @@ class NotesNoteBloc extends InteractiveBloc implements NotesNoteBlocEvents, Note initialTitle = note.title; } - void _emitNote(final NotesNote note) { + void _emitNote(final NextcloudNotesNote note) { category.add(note.category); _etag = note.etag; } // ignore: avoid_void_async - void _wrapAction(final Future Function(String etag) call) async { + void _wrapAction(final Future Function(String etag) call) async { await _updateQueue.add(() async { try { final data = await call(_etag); diff --git a/packages/neon/lib/src/apps/notes/blocs/notes.dart b/packages/neon/lib/src/apps/notes/blocs/notes.dart index a71b70d6..3674c24e 100644 --- a/packages/neon/lib/src/apps/notes/blocs/notes.dart +++ b/packages/neon/lib/src/apps/notes/blocs/notes.dart @@ -19,7 +19,7 @@ abstract class NotesBlocEvents { } abstract class NotesBlocStates { - BehaviorSubject>> get notes; + BehaviorSubject>> get notes; } class NotesBloc extends InteractiveBloc implements NotesBlocEvents, NotesBlocStates { @@ -42,11 +42,11 @@ class NotesBloc extends InteractiveBloc implements NotesBlocEvents, NotesBlocSta } @override - BehaviorSubject>> notes = BehaviorSubject>>(); + BehaviorSubject>> notes = BehaviorSubject>>(); @override Future refresh() async { - await requestManager.wrapNextcloud, List>( + await requestManager.wrapNextcloud, List>( client.id, 'notes-notes', notes, 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 2682ff4e..aae31080 100644 --- a/packages/neon/lib/src/apps/notes/dialogs/create_note.dart +++ b/packages/neon/lib/src/apps/notes/dialogs/create_note.dart @@ -26,7 +26,7 @@ class _NotesCreateNoteDialogState extends State { } @override - Widget build(final BuildContext context) => ResultBuilder>( + Widget build(final BuildContext context) => ResultBuilder>( stream: widget.bloc.notes, builder: (final context, final notes) => CustomDialog( title: Text(AppLocalizations.of(context).notesCreateNote), 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 6a21b7e6..7e259243 100644 --- a/packages/neon/lib/src/apps/notes/dialogs/select_category.dart +++ b/packages/neon/lib/src/apps/notes/dialogs/select_category.dart @@ -26,7 +26,7 @@ class _NotesSelectCategoryDialogState extends State { } @override - Widget build(final BuildContext context) => ResultBuilder>( + Widget build(final BuildContext context) => ResultBuilder>( stream: widget.bloc.notes, builder: (final context, final notes) => CustomDialog( title: Text(AppLocalizations.of(context).notesChangeCategory), diff --git a/packages/neon/lib/src/apps/notes/sort/notes.dart b/packages/neon/lib/src/apps/notes/sort/notes.dart index 469902b8..d919faae 100644 --- a/packages/neon/lib/src/apps/notes/sort/notes.dart +++ b/packages/neon/lib/src/apps/notes/sort/notes.dart @@ -1,6 +1,6 @@ part of '../app.dart'; -final notesSortBox = SortBox( +final notesSortBox = SortBox( { NotesSortProperty.alphabetical: (final note) => note.title.toLowerCase(), NotesSortProperty.lastModified: (final note) => note.modified, diff --git a/packages/neon/lib/src/apps/notes/utils/exception_handler.dart b/packages/neon/lib/src/apps/notes/utils/exception_handler.dart index af9a9a10..0af8e644 100644 --- a/packages/neon/lib/src/apps/notes/utils/exception_handler.dart +++ b/packages/neon/lib/src/apps/notes/utils/exception_handler.dart @@ -1,7 +1,7 @@ part of '../app.dart'; void handleNotesException(final BuildContext context, final Object error) { - if (error is ApiException && error.statusCode == 412) { + if (error is NextcloudApiException && error.statusCode == 412) { ExceptionWidget.showSnackbar(context, AppLocalizations.of(context).notesNoteChangedOnServer); } else { ExceptionWidget.showSnackbar(context, error); 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 13f5a658..7ac2d4d7 100644 --- a/packages/neon/lib/src/apps/notes/widgets/categories_view.dart +++ b/packages/neon/lib/src/apps/notes/widgets/categories_view.dart @@ -9,7 +9,7 @@ class NotesCategoriesView extends StatelessWidget { final NotesBloc bloc; @override - Widget build(final BuildContext context) => ResultBuilder>( + Widget build(final BuildContext context) => ResultBuilder>( stream: bloc.notes, builder: (final context, final notes) => SortBoxBuilder( sortBox: categoriesSortBox, 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 394fafd2..a1a57ee6 100644 --- a/packages/neon/lib/src/apps/notes/widgets/notes_view.dart +++ b/packages/neon/lib/src/apps/notes/widgets/notes_view.dart @@ -11,7 +11,7 @@ class NotesView extends StatelessWidget { final String? category; @override - Widget build(final BuildContext context) => ResultBuilder>( + Widget build(final BuildContext context) => ResultBuilder>( stream: bloc.notes, builder: (final context, final notes) => Scaffold( resizeToAvoidBottomInset: false, @@ -33,21 +33,21 @@ class NotesView extends StatelessWidget { }, child: const Icon(Icons.add), ), - body: SortBoxBuilder( + body: SortBoxBuilder( sortBox: notesSortBox, sortPropertyOption: bloc.options.notesSortPropertyOption, sortBoxOrderOption: bloc.options.notesSortBoxOrderOption, input: category != null ? notes.data?.where((final note) => note.favorite && note.category == category).toList() : notes.data?.where((final note) => note.favorite).toList(), - builder: (final context, final sortedFavorites) => SortBoxBuilder( + builder: (final context, final sortedFavorites) => SortBoxBuilder( sortBox: notesSortBox, sortPropertyOption: bloc.options.notesSortPropertyOption, sortBoxOrderOption: bloc.options.notesSortBoxOrderOption, input: category != null ? notes.data?.where((final note) => !note.favorite && note.category == category).toList() : notes.data?.where((final note) => !note.favorite).toList(), - builder: (final context, final sortedNonFavorites) => CustomListView( + builder: (final context, final sortedNonFavorites) => CustomListView( scrollKey: 'notes-notes', withFloatingActionButton: true, items: [ @@ -70,7 +70,7 @@ class NotesView extends StatelessWidget { Widget _buildNote( final BuildContext context, - final NotesNote note, + final NextcloudNotesNote note, ) => ListTile( title: Text(note.title), diff --git a/packages/neon/lib/src/apps/notifications/blocs/notifications.dart b/packages/neon/lib/src/apps/notifications/blocs/notifications.dart index 68bd8857..cb75d000 100644 --- a/packages/neon/lib/src/apps/notifications/blocs/notifications.dart +++ b/packages/neon/lib/src/apps/notifications/blocs/notifications.dart @@ -7,7 +7,7 @@ abstract class NotificationsBlocEvents { } abstract class NotificationsBlocStates { - BehaviorSubject>> get notifications; + BehaviorSubject>> get notifications; BehaviorSubject get unreadCounter; } @@ -39,15 +39,16 @@ class NotificationsBloc extends InteractiveBloc implements NotificationsBlocEven } @override - BehaviorSubject>> notifications = - BehaviorSubject>>(); + BehaviorSubject>> notifications = + BehaviorSubject>>(); @override BehaviorSubject unreadCounter = BehaviorSubject(); @override Future refresh() async { - await _requestManager.wrapNextcloud, NotificationsListNotifications>( + await _requestManager + .wrapNextcloud, NextcloudNotificationsListNotifications>( _client.id, 'notifications-notifications', notifications, diff --git a/packages/neon/lib/src/apps/notifications/pages/main.dart b/packages/neon/lib/src/apps/notifications/pages/main.dart index 1ca33b95..72fda038 100644 --- a/packages/neon/lib/src/apps/notifications/pages/main.dart +++ b/packages/neon/lib/src/apps/notifications/pages/main.dart @@ -23,7 +23,8 @@ class _NotificationsMainPageState extends State { } @override - Widget build(final BuildContext context) => ResultBuilder>( + Widget build(final BuildContext context) => + ResultBuilder>( stream: widget.bloc.notifications, builder: (final context, final notifications) => Scaffold( resizeToAvoidBottomInset: false, @@ -33,7 +34,7 @@ class _NotificationsMainPageState extends State { }, child: const Icon(MdiIcons.checkAll), ), - body: CustomListView( + body: CustomListView( scrollKey: 'notifications-notifications', withFloatingActionButton: true, items: notifications.data, @@ -47,7 +48,7 @@ class _NotificationsMainPageState extends State { Widget _buildNotification( final BuildContext context, - final NotificationsNotification notification, + final NextcloudNotificationsNotification notification, ) { final matchingAppImplementations = Provider.of>(context, listen: false) .where((final a) => a.id == notification.app) diff --git a/packages/neon/lib/src/blocs/apps.dart b/packages/neon/lib/src/blocs/apps.dart index 0f9bb6e1..400b0a6f 100644 --- a/packages/neon/lib/src/blocs/apps.dart +++ b/packages/neon/lib/src/blocs/apps.dart @@ -1,6 +1,6 @@ part of '../neon.dart'; -typedef NextcloudApp = CoreNavigationApps_Ocs_Data; +typedef NextcloudApp = NextcloudCoreNavigationApps_Ocs_Data; abstract class AppsBlocEvents { void setActiveApp(final String? appID); @@ -109,7 +109,7 @@ class AppsBloc extends InteractiveBloc implements AppsBlocEvents, AppsBlocStates @override Future refresh() async { - await _requestManager.wrapNextcloud, CoreNavigationApps>( + await _requestManager.wrapNextcloud, NextcloudCoreNavigationApps>( _account.client.id, 'apps-apps', apps, diff --git a/packages/neon/lib/src/blocs/capabilities.dart b/packages/neon/lib/src/blocs/capabilities.dart index 6336142c..7742089f 100644 --- a/packages/neon/lib/src/blocs/capabilities.dart +++ b/packages/neon/lib/src/blocs/capabilities.dart @@ -1,7 +1,7 @@ part of '../neon.dart'; -typedef Capabilities = CoreServerCapabilities_Ocs_Data; -typedef NextcloudTheme = CoreServerCapabilities_Ocs_Data_Capabilities_Theming; +typedef Capabilities = NextcloudCoreServerCapabilities_Ocs_Data; +typedef NextcloudTheme = NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming; abstract class CapabilitiesBlocEvents {} @@ -31,7 +31,7 @@ class CapabilitiesBloc extends InteractiveBloc implements CapabilitiesBlocEvents @override Future refresh() async { - await _requestManager.wrapNextcloud( + await _requestManager.wrapNextcloud( _client.id, 'capabilities', capabilities, diff --git a/packages/neon/lib/src/blocs/login.dart b/packages/neon/lib/src/blocs/login.dart index fff6b029..70fd7f8f 100644 --- a/packages/neon/lib/src/blocs/login.dart +++ b/packages/neon/lib/src/blocs/login.dart @@ -9,9 +9,9 @@ abstract class LoginBlocStates { BehaviorSubject get serverConnectionState; - BehaviorSubject get loginFlowInit; + BehaviorSubject get loginFlowInit; - BehaviorSubject get loginFlowResult; + BehaviorSubject get loginFlowResult; } class LoginBloc extends InteractiveBloc implements LoginBlocEvents, LoginBlocStates { @@ -31,10 +31,12 @@ class LoginBloc extends InteractiveBloc implements LoginBlocEvents, LoginBlocSta } @override - BehaviorSubject loginFlowInit = BehaviorSubject.seeded(null); + BehaviorSubject loginFlowInit = + BehaviorSubject.seeded(null); @override - BehaviorSubject loginFlowResult = BehaviorSubject.seeded(null); + BehaviorSubject loginFlowResult = + BehaviorSubject.seeded(null); @override BehaviorSubject serverConnectionState = BehaviorSubject.seeded(null); diff --git a/packages/neon/lib/src/blocs/push_notifications.dart b/packages/neon/lib/src/blocs/push_notifications.dart index e2022eca..4934c4bd 100644 --- a/packages/neon/lib/src/blocs/push_notifications.dart +++ b/packages/neon/lib/src/blocs/push_notifications.dart @@ -143,5 +143,5 @@ class NextcloudPushNotification { final String instance; final String priority; final String type; - final NotificationsPushNotificationDecryptedSubject subject; + final NextcloudNotificationsPushNotificationDecryptedSubject subject; } diff --git a/packages/neon/lib/src/blocs/user_details.dart b/packages/neon/lib/src/blocs/user_details.dart index 6aef6282..cd66e370 100644 --- a/packages/neon/lib/src/blocs/user_details.dart +++ b/packages/neon/lib/src/blocs/user_details.dart @@ -3,7 +3,7 @@ part of '../neon.dart'; abstract class UserDetailsBlocEvents {} abstract class UserDetailsBlocStates { - BehaviorSubject> get userDetails; + BehaviorSubject> get userDetails; } class UserDetailsBloc extends InteractiveBloc implements UserDetailsBlocEvents, UserDetailsBlocStates { @@ -24,12 +24,12 @@ class UserDetailsBloc extends InteractiveBloc implements UserDetailsBlocEvents, } @override - BehaviorSubject> userDetails = - BehaviorSubject>(); + BehaviorSubject> userDetails = + BehaviorSubject>(); @override Future refresh() async { - await _requestManager.wrapNextcloud( + await _requestManager.wrapNextcloud( _client.id, 'user-details', userDetails, diff --git a/packages/neon/lib/src/blocs/user_status.dart b/packages/neon/lib/src/blocs/user_status.dart index b1793b95..b3fd2e6c 100644 --- a/packages/neon/lib/src/blocs/user_status.dart +++ b/packages/neon/lib/src/blocs/user_status.dart @@ -3,7 +3,7 @@ part of '../neon.dart'; abstract class UserStatusBlocEvents {} abstract class UserStatusBlocStates { - BehaviorSubject> get userStatus; + BehaviorSubject> get userStatus; } class UserStatusBloc extends InteractiveBloc implements UserStatusBlocEvents, UserStatusBlocStates { @@ -30,7 +30,7 @@ class UserStatusBloc extends InteractiveBloc implements UserStatusBlocEvents, Us } @override - BehaviorSubject> userStatus = BehaviorSubject>(); + BehaviorSubject> userStatus = BehaviorSubject>(); @override Future refresh() async { @@ -38,11 +38,11 @@ class UserStatusBloc extends InteractiveBloc implements UserStatusBlocEvents, Us _platform.canUseWindowManager && (!(await windowManager.isFocused()) || !(await windowManager.isVisible())); try { final status = await _account.client.userStatus.heartbeat( - status: isAway ? UserStatusType.away : UserStatusType.online, + status: isAway ? NextcloudUserStatusType.away : NextcloudUserStatusType.online, ); userStatus.add(Result.success(status)); } catch (e) { - if (e is ApiException && e.statusCode == 204) { + if (e is NextcloudApiException && e.statusCode == 204) { return; } userStatus.add(Result.error(e)); diff --git a/packages/neon/lib/src/models/push_notification_with_account.dart b/packages/neon/lib/src/models/push_notification_with_account.dart index 02c2eadf..e90b7342 100644 --- a/packages/neon/lib/src/models/push_notification_with_account.dart +++ b/packages/neon/lib/src/models/push_notification_with_account.dart @@ -14,7 +14,7 @@ class PushNotificationWithAccountID { _$PushNotificationWithAccountIDFromJson(json); Map toJson() => _$PushNotificationWithAccountIDToJson(this); - final NotificationsPushNotification notification; + final NextcloudNotificationsPushNotification notification; final String accountID; } diff --git a/packages/neon/lib/src/models/push_notification_with_account.g.dart b/packages/neon/lib/src/models/push_notification_with_account.g.dart index 30a05069..569a6cea 100644 --- a/packages/neon/lib/src/models/push_notification_with_account.g.dart +++ b/packages/neon/lib/src/models/push_notification_with_account.g.dart @@ -8,7 +8,7 @@ part of 'push_notification_with_account.dart'; PushNotificationWithAccountID _$PushNotificationWithAccountIDFromJson(Map json) => PushNotificationWithAccountID( - notification: NotificationsPushNotification.fromJson(json['notification'] as Map), + notification: NextcloudNotificationsPushNotification.fromJson(json['notification'] as Map), accountID: json['accountID'] as String, ); diff --git a/packages/neon/lib/src/pages/account_settings.dart b/packages/neon/lib/src/pages/account_settings.dart index 076f49ce..78411f1e 100644 --- a/packages/neon/lib/src/pages/account_settings.dart +++ b/packages/neon/lib/src/pages/account_settings.dart @@ -45,7 +45,7 @@ class AccountSettingsPage extends StatelessWidget { ), ], ), - body: ResultBuilder( + body: ResultBuilder( stream: _userDetailsBloc.userDetails, builder: (final context, final userDetails) => SettingsList( categories: [ diff --git a/packages/neon/lib/src/utils/push_utils.dart b/packages/neon/lib/src/utils/push_utils.dart index d5eeeea2..84aefb0b 100644 --- a/packages/neon/lib/src/utils/push_utils.dart +++ b/packages/neon/lib/src/utils/push_utils.dart @@ -53,7 +53,7 @@ class PushUtils { final keypair = await loadRSAKeypair(AppStorage('notifications', sharedPreferences)); final data = json.decode(utf8.decode(message)) as Map; - final notification = NotificationsPushNotification( + final notification = NextcloudNotificationsPushNotification( accountID: instance, priority: data['priority']! as String, type: data['type']! as String, @@ -127,7 +127,7 @@ class PushUtils { static int _getNotificationID( final String instance, - final NotificationsPushNotification notification, + final NextcloudNotificationsPushNotification notification, ) => 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 8c22cf87..aa687e1c 100644 --- a/packages/neon/lib/src/utils/theme.dart +++ b/packages/neon/lib/src/utils/theme.dart @@ -3,7 +3,7 @@ part of '../neon.dart'; const themePrimaryColor = Color(0xFFF37736); ThemeData getThemeFromNextcloudTheme( - final CoreServerCapabilities_Ocs_Data_Capabilities_Theming? nextcloudTheme, + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming? nextcloudTheme, final ThemeMode themeMode, final Brightness platformBrightness, { required final bool oledAsDark, diff --git a/packages/neon/lib/src/widgets/account_avatar.dart b/packages/neon/lib/src/widgets/account_avatar.dart index c8670ea4..cd2b26b8 100644 --- a/packages/neon/lib/src/widgets/account_avatar.dart +++ b/packages/neon/lib/src/widgets/account_avatar.dart @@ -39,7 +39,7 @@ class AccountAvatar extends StatelessWidget { ), ), ), - ResultBuilder( + ResultBuilder( stream: Provider.of(context, listen: false).getUserStatusBloc(account).userStatus, builder: (final context, final userStatus) => SizedBox( height: kAvatarSize, @@ -61,7 +61,8 @@ class AccountAvatar extends StatelessWidget { color: Theme.of(context).colorScheme.onPrimary, ) : userStatus.error != null && - (userStatus.error is! ApiException || (userStatus.error! as ApiException).statusCode != 404) + (userStatus.error is! NextcloudApiException || + (userStatus.error! as NextcloudApiException).statusCode != 404) ? const Icon( Icons.error_outline, size: kAvatarSize / 3, @@ -76,13 +77,13 @@ class AccountAvatar extends StatelessWidget { ); } - Color _userStatusToColor(final UserStatus userStatus) { + Color _userStatusToColor(final NextcloudUserStatus userStatus) { switch (userStatus.status) { - case UserStatusType.online: + case NextcloudUserStatusType.online: return const Color(0xFF49B382); - case UserStatusType.away: + case NextcloudUserStatusType.away: return const Color(0xFFF4A331); - case UserStatusType.dnd: + case NextcloudUserStatusType.dnd: return const Color(0xFFED484C); default: return Colors.transparent; diff --git a/packages/neon/lib/src/widgets/account_tile.dart b/packages/neon/lib/src/widgets/account_tile.dart index 45a6623e..171739dc 100644 --- a/packages/neon/lib/src/widgets/account_tile.dart +++ b/packages/neon/lib/src/widgets/account_tile.dart @@ -38,7 +38,7 @@ class AccountTile extends StatelessWidget { account: account, ), ), - title: ResultBuilder( + title: ResultBuilder( stream: userDetailsBloc.userDetails, builder: (final context, final userDetails) => Row( children: [ diff --git a/packages/neon/lib/src/widgets/exception.dart b/packages/neon/lib/src/widgets/exception.dart index 5936e0dd..87cd318d 100644 --- a/packages/neon/lib/src/widgets/exception.dart +++ b/packages/neon/lib/src/widgets/exception.dart @@ -108,7 +108,7 @@ class ExceptionWidget extends StatelessWidget { ); } - if (exception is ApiException) { + if (exception is NextcloudApiException) { if (exception.statusCode == 401) { return _ExceptionDetails( text: AppLocalizations.of(context).errorCredentialsForAccountNoLongerMatch, diff --git a/packages/nextcloud/lib/nextcloud.dart b/packages/nextcloud/lib/nextcloud.dart index c92b3394..17247d63 100644 --- a/packages/nextcloud/lib/nextcloud.dart +++ b/packages/nextcloud/lib/nextcloud.dart @@ -7,12 +7,13 @@ import 'dart:typed_data'; import 'package:crypto/crypto.dart'; import 'package:intl/intl.dart'; import 'package:nextcloud/nextcloud.dart'; +import 'package:nextcloud/src/nextcloud.openapi.dart' as openapi; import 'package:version/version.dart'; import 'package:xml/xml.dart' as xml; export 'package:crypton/crypton.dart' show RSAKeypair, RSAPublicKey, RSAPrivateKey; -export 'src/nextcloud.openapi.dart'; +export 'src/nextcloud.openapi.dart' hide NextcloudClient; part 'src/app_type.dart'; part 'src/client.dart'; diff --git a/packages/nextcloud/lib/src/client.dart b/packages/nextcloud/lib/src/client.dart index 82786d04..87398b4e 100644 --- a/packages/nextcloud/lib/src/client.dart +++ b/packages/nextcloud/lib/src/client.dart @@ -1,7 +1,7 @@ part of '../nextcloud.dart'; // ignore: public_member_api_docs -class NextcloudClient extends Client { +class NextcloudClient extends openapi.NextcloudClient { // ignore: public_member_api_docs NextcloudClient( super.baseURL, { @@ -21,7 +21,7 @@ class NextcloudClient extends Client { .cast(), userAgent: userAgentOverride ?? appType.userAgent, authentication: loginName != null && password != null - ? HttpBasicAuthentication( + ? openapi.NextcloudHttpBasicAuthentication( username: loginName, password: password, ) diff --git a/packages/nextcloud/lib/src/helpers.dart b/packages/nextcloud/lib/src/helpers.dart index 8145b983..b4f116c3 100644 --- a/packages/nextcloud/lib/src/helpers.dart +++ b/packages/nextcloud/lib/src/helpers.dart @@ -2,17 +2,17 @@ part of '../nextcloud.dart'; -extension UserDetailsDisplayName on ProvisioningApiUserDetails { +extension UserDetailsDisplayName on openapi.NextcloudProvisioningApiUserDetails { /// This is used to work around an API change that wasn't made for every endpoint /// See https://github.com/nextcloud/server/commit/5086335643b6181284ee50f57b95525002842992 String? getDisplayName() => displayname ?? displayName; } -extension NextcloudNotificationsPushProxy on NotificationsClient { +extension NextcloudNotificationsPushProxy on NextcloudNotificationsClient { /// Registers a device at the push proxy server Future registerDeviceAtPushProxy( final String pushToken, - final NotificationsPushServerSubscription subscription, + final NextcloudNotificationsPushServerSubscription subscription, final String proxyServer, ) async { final request = await HttpClient().postUrl(Uri.parse('${proxyServer}devices')) @@ -38,7 +38,7 @@ extension NextcloudNotificationsPushProxy on NotificationsClient { if (response.statusCode != 200) { // coverage:ignore-start - throw ApiException( + throw NextcloudApiException( response.statusCode, {}, // TODO await response.bodyBytes, @@ -52,11 +52,11 @@ extension NextcloudNotificationsPushProxy on NotificationsClient { } /// Decrypts the subject of a push notification -NotificationsPushNotificationDecryptedSubject decryptPushNotificationSubject( +NextcloudNotificationsPushNotificationDecryptedSubject decryptPushNotificationSubject( final RSAPrivateKey privateKey, final String subject, ) => - NotificationsPushNotificationDecryptedSubject.fromJson( + NextcloudNotificationsPushNotificationDecryptedSubject.fromJson( json.decode(privateKey.decrypt(subject)) as Map, ); diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.dart b/packages/nextcloud/lib/src/nextcloud.openapi.dart index dcfd7ec3..fee305e9 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.dart @@ -9,7 +9,7 @@ export 'package:cookie_jar/cookie_jar.dart'; part 'nextcloud.openapi.g.dart'; -extension HttpClientResponseBody on HttpClientResponse { +extension NextcloudHttpClientResponseBody on HttpClientResponse { Future get bodyBytes async { final chunks = await toList(); if (chunks.isEmpty) { @@ -21,8 +21,8 @@ extension HttpClientResponseBody on HttpClientResponse { Future get body async => utf8.decode(await bodyBytes); } -class Response { - Response( +class NextcloudResponse { + NextcloudResponse( this.data, this.headers, ); @@ -32,7 +32,7 @@ class Response { final U headers; @override - String toString() => 'Response(data: $data, headers: $headers)'; + String toString() => 'NextcloudResponse(data: $data, headers: $headers)'; } class _Response { @@ -52,14 +52,14 @@ class _Response { String toString() => '_Response(statusCode: $statusCode, headers: $headers, body: ${utf8.decode(body)})'; } -class ApiException extends _Response implements Exception { - ApiException( +class NextcloudApiException extends _Response implements Exception { + NextcloudApiException( super.statusCode, super.headers, super.body, ); - factory ApiException.fromResponse(_Response response) => ApiException( + factory NextcloudApiException.fromResponse(_Response response) => NextcloudApiException( response.statusCode, response.headers, response.body, @@ -67,15 +67,15 @@ class ApiException extends _Response implements Exception { @override String toString() => - 'ApiException(statusCode: ${super.statusCode}, headers: ${super.headers}, body: ${utf8.decode(super.body)})'; + 'NextcloudApiException(statusCode: ${super.statusCode}, headers: ${super.headers}, body: ${utf8.decode(super.body)})'; } -abstract class Authentication { +abstract class NextcloudAuthentication { Map get headers; } -class HttpBasicAuthentication extends Authentication { - HttpBasicAuthentication({ +class NextcloudHttpBasicAuthentication extends NextcloudAuthentication { + NextcloudHttpBasicAuthentication({ required this.username, required this.password, }); @@ -89,8 +89,8 @@ class HttpBasicAuthentication extends Authentication { }; } -class Client { - Client( +class NextcloudClient { + NextcloudClient( this.baseURL, { Map? baseHeaders, String? userAgent, @@ -117,14 +117,14 @@ class Client { final CookieJar? cookieJar; - final Authentication? authentication; + final NextcloudAuthentication? authentication; - CoreClient get core => CoreClient(this); - NewsClient get news => NewsClient(this); - NotesClient get notes => NotesClient(this); - NotificationsClient get notifications => NotificationsClient(this); - ProvisioningApiClient get provisioningApi => ProvisioningApiClient(this); - UserStatusClient get userStatus => UserStatusClient(this); + NextcloudCoreClient get core => NextcloudCoreClient(this); + NextcloudNewsClient get news => NextcloudNewsClient(this); + NextcloudNotesClient get notes => NextcloudNotesClient(this); + NextcloudNotificationsClient get notifications => NextcloudNotificationsClient(this); + NextcloudProvisioningApiClient get provisioningApi => NextcloudProvisioningApiClient(this); + NextcloudUserStatusClient get userStatus => NextcloudUserStatusClient(this); Future<_Response> doRequest( String method, String path, @@ -159,12 +159,12 @@ class Client { } } -class CoreClient { - CoreClient(this.rootClient); +class NextcloudCoreClient { + NextcloudCoreClient(this.rootClient); - final Client rootClient; + final NextcloudClient rootClient; - Future getStatus() async { + Future getStatus() async { var path = '/status.php'; final queryParameters = {}; final headers = {}; @@ -176,12 +176,13 @@ class CoreClient { body, ); if (response.statusCode == 200) { - return CoreServerStatus.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudCoreServerStatus.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future getCapabilities() async { + Future getCapabilities() async { var path = '/ocs/v2.php/cloud/capabilities'; final queryParameters = {}; final headers = {}; @@ -193,12 +194,13 @@ class CoreClient { body, ); if (response.statusCode == 200) { - return CoreServerCapabilities.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudCoreServerCapabilities.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future getNavigationApps() async { + Future getNavigationApps() async { var path = '/ocs/v2.php/core/navigation/apps'; final queryParameters = {}; final headers = {}; @@ -210,12 +212,13 @@ class CoreClient { body, ); if (response.statusCode == 200) { - return CoreNavigationApps.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudCoreNavigationApps.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future initLoginFlow() async { + Future initLoginFlow() async { var path = '/index.php/login/v2'; final queryParameters = {}; final headers = {}; @@ -227,12 +230,13 @@ class CoreClient { body, ); if (response.statusCode == 200) { - return CoreLoginFlowInit.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudCoreLoginFlowInit.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future getLoginFlowResult({required String token}) async { + Future getLoginFlowResult({required String token}) async { var path = '/index.php/login/v2/poll'; final queryParameters = {}; final headers = {}; @@ -245,9 +249,10 @@ class CoreClient { body, ); if (response.statusCode == 200) { - return CoreLoginFlowResult.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudCoreLoginFlowResult.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future getPreview({ @@ -289,7 +294,7 @@ class CoreClient { if (response.statusCode == 200) { return response.body; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future getDarkAvatar({ @@ -311,7 +316,7 @@ class CoreClient { if (response.statusCode == 200) { return response.body; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future getAvatar({ @@ -333,10 +338,10 @@ class CoreClient { if (response.statusCode == 200) { return response.body; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future autocomplete({ + Future autocomplete({ required String search, required String itemType, required String itemId, @@ -365,18 +370,19 @@ class CoreClient { body, ); if (response.statusCode == 200) { - return CoreAutocompleteResult.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudCoreAutocompleteResult.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } } -class NewsClient { - NewsClient(this.rootClient); +class NextcloudNewsClient { + NextcloudNewsClient(this.rootClient); - final Client rootClient; + final NextcloudClient rootClient; - Future getSupportedApiVersions() async { + Future getSupportedApiVersions() async { var path = '/index.php/apps/news/api'; final queryParameters = {}; final headers = {}; @@ -388,13 +394,13 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsSupportedAPIVersions.fromJson( + return NextcloudNewsSupportedAPIVersions.fromJson( json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future listFolders() async { + Future listFolders() async { var path = '/index.php/apps/news/api/v1-3/folders'; final queryParameters = {}; final headers = {}; @@ -406,12 +412,13 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsListFolders.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudNewsListFolders.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future createFolder({required String name}) async { + Future createFolder({required String name}) async { var path = '/index.php/apps/news/api/v1-3/folders'; final queryParameters = {}; final headers = {}; @@ -424,9 +431,10 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsListFolders.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudNewsListFolders.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future renameFolder({ @@ -448,7 +456,7 @@ class NewsClient { if (response.statusCode == 200) { return; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future deleteFolder({required int folderId}) async { @@ -466,7 +474,7 @@ class NewsClient { if (response.statusCode == 200) { return; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future markFolderAsRead({ @@ -488,10 +496,10 @@ class NewsClient { if (response.statusCode == 200) { return; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future listFeeds() async { + Future listFeeds() async { var path = '/index.php/apps/news/api/v1-3/feeds'; final queryParameters = {}; final headers = {}; @@ -503,12 +511,12 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsListFeeds.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudNewsListFeeds.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future addFeed({ + Future addFeed({ required String url, int? folderId, }) async { @@ -527,9 +535,9 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsListFeeds.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudNewsListFeeds.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future deleteFeed({required int feedId}) async { @@ -547,7 +555,7 @@ class NewsClient { if (response.statusCode == 200) { return; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future moveFeed({ @@ -571,7 +579,7 @@ class NewsClient { if (response.statusCode == 200) { return; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future renameFeed({ @@ -593,7 +601,7 @@ class NewsClient { if (response.statusCode == 200) { return; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future markFeedAsRead({ @@ -615,10 +623,10 @@ class NewsClient { if (response.statusCode == 200) { return; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future listArticles({ + Future listArticles({ int type = 3, int id = 0, int getRead = 1, @@ -655,12 +663,13 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsListArticles.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudNewsListArticles.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future listUpdatedArticles({ + Future listUpdatedArticles({ int type = 3, int id = 0, int lastModified = 0, @@ -685,9 +694,10 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsListArticles.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudNewsListArticles.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future markArticleAsRead({required int itemId}) async { @@ -705,7 +715,7 @@ class NewsClient { if (response.statusCode == 200) { return; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future markArticleAsUnread({required int itemId}) async { @@ -723,7 +733,7 @@ class NewsClient { if (response.statusCode == 200) { return; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future starArticle({required int itemId}) async { @@ -741,7 +751,7 @@ class NewsClient { if (response.statusCode == 200) { return; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future unstarArticle({required int itemId}) async { @@ -759,16 +769,16 @@ class NewsClient { if (response.statusCode == 200) { return; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } } -class NotesClient { - NotesClient(this.rootClient); +class NextcloudNotesClient { + NextcloudNotesClient(this.rootClient); - final Client rootClient; + final NextcloudClient rootClient; - Future> getNotes({ + Future> getNotes({ String? category, String exclude = '', int pruneBefore = 0, @@ -806,13 +816,13 @@ class NotesClient { ); if (response.statusCode == 200) { return (json.decode(utf8.decode(response.body) as String) as List) - .map((final e) => NotesNote.fromJson(e as Map)) + .map((final e) => NextcloudNotesNote.fromJson(e as Map)) .toList(); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future createNote({ + Future createNote({ String category = '', String title = '', String content = '', @@ -845,12 +855,12 @@ class NotesClient { body, ); if (response.statusCode == 200) { - return NotesNote.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudNotesNote.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future getNote({ + Future getNote({ required int id, String exclude = '', String? ifNoneMatch, @@ -873,12 +883,12 @@ class NotesClient { body, ); if (response.statusCode == 200) { - return NotesNote.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudNotesNote.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future updateNote({ + Future updateNote({ required int id, String? content, int? modified, @@ -917,9 +927,9 @@ class NotesClient { body, ); if (response.statusCode == 200) { - return NotesNote.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudNotesNote.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future deleteNote({required int id}) async { @@ -937,10 +947,10 @@ class NotesClient { if (response.statusCode == 200) { return ((utf8.decode(response.body) as String) as String); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future getSettings() async { + Future getSettings() async { var path = '/index.php/apps/notes/api/v1/settings'; final queryParameters = {}; final headers = {}; @@ -952,12 +962,12 @@ class NotesClient { body, ); if (response.statusCode == 200) { - return NotesSettings.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudNotesSettings.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future updateSettings({required NotesSettings notesSettings}) async { + Future updateSettings({required NextcloudNotesSettings notesSettings}) async { var path = '/index.php/apps/notes/api/v1/settings'; final queryParameters = {}; final headers = {}; @@ -971,18 +981,18 @@ class NotesClient { body, ); if (response.statusCode == 200) { - return NotesSettings.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudNotesSettings.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } } -class NotificationsClient { - NotificationsClient(this.rootClient); +class NextcloudNotificationsClient { + NextcloudNotificationsClient(this.rootClient); - final Client rootClient; + final NextcloudClient rootClient; - Future listNotifications() async { + Future listNotifications() async { var path = '/ocs/v2.php/apps/notifications/api/v2/notifications'; final queryParameters = {}; final headers = {}; @@ -994,10 +1004,10 @@ class NotificationsClient { body, ); if (response.statusCode == 200) { - return NotificationsListNotifications.fromJson( + return NextcloudNotificationsListNotifications.fromJson( json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future deleteAllNotifications() async { @@ -1014,10 +1024,10 @@ class NotificationsClient { if (response.statusCode == 200) { return ((utf8.decode(response.body) as String) as String); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future getNotification({required int id}) async { + Future getNotification({required int id}) async { var path = '/ocs/v2.php/apps/notifications/api/v2/notifications/{id}'; final queryParameters = {}; final headers = {}; @@ -1030,13 +1040,13 @@ class NotificationsClient { body, ); if (response.statusCode == 200) { - return NotificationsGetNotification.fromJson( + return NextcloudNotificationsGetNotification.fromJson( json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future deleteNotification({required int id}) async { + Future deleteNotification({required int id}) async { var path = '/ocs/v2.php/apps/notifications/api/v2/notifications/{id}'; final queryParameters = {}; final headers = {}; @@ -1049,12 +1059,12 @@ class NotificationsClient { body, ); if (response.statusCode == 200) { - return EmptyOCS.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudEmptyOCS.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future registerDevice({ + Future registerDevice({ required String pushTokenHash, required String devicePublicKey, required String proxyServer, @@ -1073,10 +1083,10 @@ class NotificationsClient { body, ); if (response.statusCode == 201) { - return NotificationsPushServerRegistration.fromJson( + return NextcloudNotificationsPushServerRegistration.fromJson( json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future removeDevice() async { @@ -1093,10 +1103,10 @@ class NotificationsClient { if (response.statusCode == 202) { return ((utf8.decode(response.body) as String) as String); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future sendAdminNotification({ + Future sendAdminNotification({ required String userId, required String shortMessage, String longMessage = '', @@ -1117,18 +1127,18 @@ class NotificationsClient { body, ); if (response.statusCode == 200) { - return EmptyOCS.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudEmptyOCS.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } } -class ProvisioningApiClient { - ProvisioningApiClient(this.rootClient); +class NextcloudProvisioningApiClient { + NextcloudProvisioningApiClient(this.rootClient); - final Client rootClient; + final NextcloudClient rootClient; - Future getCurrentUser() async { + Future getCurrentUser() async { var path = '/ocs/v2.php/cloud/user'; final queryParameters = {}; final headers = {}; @@ -1140,12 +1150,13 @@ class ProvisioningApiClient { body, ); if (response.statusCode == 200) { - return ProvisioningApiUser.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudProvisioningApiUser.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future getUser({required String userId}) async { + Future getUser({required String userId}) async { var path = '/ocs/v2.php/cloud/users/{userId}'; final queryParameters = {}; final headers = {}; @@ -1158,18 +1169,19 @@ class ProvisioningApiClient { body, ); if (response.statusCode == 200) { - return ProvisioningApiUser.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudProvisioningApiUser.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } } -class UserStatusClient { - UserStatusClient(this.rootClient); +class NextcloudUserStatusClient { + NextcloudUserStatusClient(this.rootClient); - final Client rootClient; + final NextcloudClient rootClient; - Future findAllStatuses() async { + Future findAllStatuses() async { var path = '/ocs/v2.php/apps/user_status/api/v1/statuses'; final queryParameters = {}; final headers = {}; @@ -1181,13 +1193,13 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusFindAllStatuses.fromJson( + return NextcloudUserStatusFindAllStatuses.fromJson( json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future findStatus({required String userId}) async { + Future findStatus({required String userId}) async { var path = '/ocs/v2.php/apps/user_status/api/v1/statuses/{userId}'; final queryParameters = {}; final headers = {}; @@ -1200,12 +1212,13 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusFindStatus.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudUserStatusFindStatus.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future getStatus() async { + Future getStatus() async { var path = '/ocs/v2.php/apps/user_status/api/v1/user_status'; final queryParameters = {}; final headers = {}; @@ -1217,13 +1230,13 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusGetUserStatus.fromJson( + return NextcloudUserStatusGetUserStatus.fromJson( json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future setStatus({required UserStatusType statusType}) async { + Future setStatus({required NextcloudUserStatusType statusType}) async { var path = '/ocs/v2.php/apps/user_status/api/v1/user_status/status'; final queryParameters = {}; final headers = {}; @@ -1236,13 +1249,13 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusGetUserStatus.fromJson( + return NextcloudUserStatusGetUserStatus.fromJson( json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future setPredefinedMessage({ + Future setPredefinedMessage({ required String messageId, int? clearAt, }) async { @@ -1261,13 +1274,13 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusGetUserStatus.fromJson( + return NextcloudUserStatusGetUserStatus.fromJson( json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future setCustomMessage({ + Future setCustomMessage({ String? statusIcon, String? message, int? clearAt, @@ -1292,10 +1305,10 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusGetUserStatus.fromJson( + return NextcloudUserStatusGetUserStatus.fromJson( json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } Future clearMessage() async { @@ -1312,10 +1325,10 @@ class UserStatusClient { if (response.statusCode == 200) { return; } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future findAllPredefinedStatuses() async { + Future findAllPredefinedStatuses() async { var path = '/ocs/v2.php/apps/user_status/api/v1/predefined_statuses'; final queryParameters = {}; final headers = {}; @@ -1327,13 +1340,13 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusPredefinedStatuses.fromJson( + return NextcloudUserStatusPredefinedStatuses.fromJson( json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } - Future heartbeat({required UserStatusType status}) async { + Future heartbeat({required NextcloudUserStatusType status}) async { var path = '/ocs/v2.php/apps/user_status/api/v1/heartbeat'; final queryParameters = {}; final headers = {}; @@ -1346,15 +1359,15 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatus.fromJson(json.decode(utf8.decode(response.body) as String) as Map); + return NextcloudUserStatus.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } - throw ApiException.fromResponse(response); // coverage:ignore-line + throw NextcloudApiException.fromResponse(response); // coverage:ignore-line } } @JsonSerializable() -class CoreServerStatus { - CoreServerStatus({ +class NextcloudCoreServerStatus { + NextcloudCoreServerStatus({ required this.installed, required this.maintenance, required this.needsDbUpgrade, @@ -1366,12 +1379,12 @@ class CoreServerStatus { }); // coverage:ignore-start - factory CoreServerStatus.fromJson(Map json) => _$CoreServerStatusFromJson(json); + factory NextcloudCoreServerStatus.fromJson(Map json) => _$NextcloudCoreServerStatusFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerStatus.fromJsonString(String data) => - CoreServerStatus.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerStatus.fromJsonString(String data) => + NextcloudCoreServerStatus.fromJson(json.decode(data) as Map); // coverage:ignore-end final bool installed; @@ -1391,14 +1404,14 @@ class CoreServerStatus { final bool extendedSupport; // coverage:ignore-start - Map toJson() => _$CoreServerStatusToJson(this); + Map toJson() => _$NextcloudCoreServerStatusToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerStatus? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudCoreServerStatus? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class OCSMeta { - OCSMeta({ +class NextcloudOCSMeta { + NextcloudOCSMeta({ required this.status, required this.statuscode, this.message, @@ -1407,11 +1420,12 @@ class OCSMeta { }); // coverage:ignore-start - factory OCSMeta.fromJson(Map json) => _$OCSMetaFromJson(json); + factory NextcloudOCSMeta.fromJson(Map json) => _$NextcloudOCSMetaFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory OCSMeta.fromJsonString(String data) => OCSMeta.fromJson(json.decode(data) as Map); + factory NextcloudOCSMeta.fromJsonString(String data) => + NextcloudOCSMeta.fromJson(json.decode(data) as Map); // coverage:ignore-end final String status; @@ -1425,14 +1439,14 @@ class OCSMeta { final String? itemsperpage; // coverage:ignore-start - Map toJson() => _$OCSMetaToJson(this); + Map toJson() => _$NextcloudOCSMetaToJson(this); // coverage:ignore-end - static String? toJsonString(OCSMeta? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudOCSMeta? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class CoreServerCapabilities_Ocs_Data_Version { - CoreServerCapabilities_Ocs_Data_Version({ +class NextcloudCoreServerCapabilities_Ocs_Data_Version { + NextcloudCoreServerCapabilities_Ocs_Data_Version({ this.major, this.minor, this.micro, @@ -1442,13 +1456,13 @@ class CoreServerCapabilities_Ocs_Data_Version { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Version.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_VersionFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Version.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_VersionFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Version.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Version.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Version.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Version.fromJson(json.decode(data) as Map); // coverage:ignore-end final int? major; @@ -1464,15 +1478,15 @@ class CoreServerCapabilities_Ocs_Data_Version { final bool? extendedSupport; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_VersionToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_VersionToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Version? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Version? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Core { - CoreServerCapabilities_Ocs_Data_Capabilities_Core({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core({ this.pollinterval, this.webdavRoot, this.referenceApi, @@ -1480,13 +1494,13 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Core { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json.decode(data) as Map); // coverage:ignore-end final int? pollinterval; @@ -1501,50 +1515,51 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Core { final String? referenceRegex; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Core? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce { - CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce({this.delay}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce({this.delay}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson( + json.decode(data) as Map); // coverage:ignore-end final int? delay; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable { - CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable({ this.size, this.gps, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -1553,27 +1568,29 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable { final List? gps; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing { - CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing({ this.url, this.etag, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson( + Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -1582,15 +1599,16 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing { final String? etag; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Files { - CoreServerCapabilities_Ocs_Data_Capabilities_Files({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files({ this.bigfilechunking, this.blacklistedFiles, this.directEditing, @@ -1600,13 +1618,13 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Files { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(json.decode(data) as Map); // coverage:ignore-end final bool? bigfilechunking; @@ -1614,7 +1632,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Files { @JsonKey(name: 'blacklisted_files') final List? blacklistedFiles; - final CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing? directEditing; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing? directEditing; final bool? comments; @@ -1623,61 +1641,63 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Files { final bool? versioning; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Files? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Activity { - CoreServerCapabilities_Ocs_Data_Capabilities_Activity({this.apiv2}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity({this.apiv2}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson( + json.decode(data) as Map); // coverage:ignore-end final List? apiv2; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Activity? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status { - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status({this.globalScale}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status({this.globalScale}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson( + json.decode(data) as Map); // coverage:ignore-end final bool? globalScale; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings { - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings({ this.frontendEnabled, this.allowedCircles, this.allowedUserTypes, @@ -1685,13 +1705,14 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson( + json.decode(data) as Map); // coverage:ignore-end final bool? frontendEnabled; @@ -1703,28 +1724,29 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings { final int? membersLimit; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source { - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source({ this.core, this.extra, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJsonString( + String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -1734,56 +1756,60 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Sour // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source? data) => + static String? toJsonString( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants { - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants({ this.flags, this.source, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( + Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( json.decode(data) as Map); // coverage:ignore-end final dynamic flags; - final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source? source; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source? source; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config { - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config({ this.coreFlags, this.systemFlags, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( + Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -1792,95 +1818,100 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config { final List? systemFlags; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle { - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle({ this.constants, this.config, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson( + json.decode(data) as Map); // coverage:ignore-end - final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants? constants; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants? constants; - final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config? config; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config? config; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants { - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants({this.level}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants({this.level}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( + Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( json.decode(data) as Map); // coverage:ignore-end final dynamic level; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member { - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member({ this.constants, this.type, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson( + json.decode(data) as Map); // coverage:ignore-end - final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants? constants; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants? constants; final dynamic type; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Circles { - CoreServerCapabilities_Ocs_Data_Capabilities_Circles({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles({ this.version, this.status, this.settings, @@ -1889,45 +1920,46 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(json.decode(data) as Map); // coverage:ignore-end final String? version; - final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status? status; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status? status; - final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings? settings; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings? settings; - final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle? circle; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle? circle; - final CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member? member; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member? member; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Circles? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols { - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols({this.webdav}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols({this.webdav}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJsonString( + String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -1935,28 +1967,29 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols { // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols? data) => + static String? toJsonString( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes { - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes({ this.name, this.shareTypes, this.protocols, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -1964,18 +1997,19 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes { final List? shareTypes; - final CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols? protocols; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols? protocols; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm { - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm({ this.enabled, this.apiVersion, this.endPoint, @@ -1983,13 +2017,13 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(json.decode(data) as Map); // coverage:ignore-end final bool? enabled; @@ -1998,30 +2032,30 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm { final String? endPoint; - final List? resourceTypes; + final List? resourceTypes; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Ocm? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Dav { - CoreServerCapabilities_Ocs_Data_Capabilities_Dav({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav({ this.bulkupload, this.chunking, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_DavFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(json.decode(data) as Map); // coverage:ignore-end final String? bulkupload; @@ -2029,28 +2063,29 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Dav { final String? chunking; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_DavToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Dav? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password({ this.enforced, this.askForOptionalPassword, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJsonString( + String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2060,25 +2095,27 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password? data) => + static String? toJsonString( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate({this.enabled}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate({this.enabled}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJsonString( + String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2086,26 +2123,27 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDat // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate? data) => + static String? toJsonString( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal({this.enabled}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal({this.enabled}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJsonString( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJsonString( String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2113,27 +2151,27 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDat // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalToJson(this); // coverage:ignore-end static String? toJsonString( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal? data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote({this.enabled}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote({this.enabled}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJsonString( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJsonString( String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2141,16 +2179,16 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDat // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteToJson(this); // coverage:ignore-end static String? toJsonString( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote? data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public({ this.enabled, this.password, this.expireDate, @@ -2163,31 +2201,33 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson( + Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson( json.decode(data) as Map); // coverage:ignore-end final bool? enabled; - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password? password; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password? password; @JsonKey(name: 'expire_date') - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate? expireDate; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate? expireDate; @JsonKey(name: 'multiple_links') final bool? multipleLinks; @JsonKey(name: 'expire_date_internal') - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal? expireDateInternal; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal? + expireDateInternal; @JsonKey(name: 'expire_date_remote') - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote? expireDateRemote; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote? expireDateRemote; @JsonKey(name: 'send_mail') final bool? sendMail; @@ -2198,25 +2238,27 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public { final bool? uploadFilesDrop; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate({this.enabled}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate({this.enabled}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJsonString( + String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2224,27 +2266,28 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate? data) => + static String? toJsonString( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User({ this.sendMail, this.expireDate, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2252,28 +2295,30 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User { final bool? sendMail; @JsonKey(name: 'expire_date') - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate? expireDate; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate? expireDate; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate({this.enabled}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate({this.enabled}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJsonString( + String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2281,55 +2326,59 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate? data) => + static String? toJsonString( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group({ this.enabled, this.expireDate, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson( + Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson( json.decode(data) as Map); // coverage:ignore-end final bool? enabled; @JsonKey(name: 'expire_date') - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate? expireDate; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate? expireDate; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate({this.enabled}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate({this.enabled}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJsonString( + String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2337,26 +2386,27 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_Expir // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate? data) => + static String? toJsonString( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported({this.enabled}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported({this.enabled}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJsonString( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJsonString( String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2364,16 +2414,16 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_Expir // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedToJson(this); // coverage:ignore-end static String? toJsonString( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported? data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation({ this.outgoing, this.incoming, this.expireDate, @@ -2381,13 +2431,14 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( + Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2396,33 +2447,36 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation { final bool? incoming; @JsonKey(name: 'expire_date') - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate? expireDate; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate? expireDate; @JsonKey(name: 'expire_date_supported') - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported? expireDateSupported; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported? + expireDateSupported; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee({ this.queryLookupDefault, this.alwaysShowUnique, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( + Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2433,26 +2487,27 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee { final bool? alwaysShowUnique; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop({this.enabled}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop({this.enabled}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJsonString( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJsonString( String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2460,29 +2515,30 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Uplo // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropToJson(this); // coverage:ignore-end static String? toJsonString( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop? data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password({ this.enabled, this.enforced, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJsonString( + String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2492,29 +2548,30 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Pass // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password? data) => + static String? toJsonString( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate({ this.enabled, this.enforced, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateFromJson(json); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJsonString( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJsonString( String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2524,15 +2581,16 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Expi // coverage:ignore-start Map toJson() => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateToJson(this); + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate? data) => + static String? toJsonString( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail({ this.enabled, this.sendPasswordByMail, this.uploadFilesDrop, @@ -2541,13 +2599,14 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( + Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2557,23 +2616,24 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail { final bool? sendPasswordByMail; @JsonKey(name: 'upload_files_drop') - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop? uploadFilesDrop; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop? uploadFilesDrop; - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password? password; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password? password; @JsonKey(name: 'expire_date') - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate? expireDate; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate? expireDate; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing { - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing({ this.apiEnabled, this.public, this.resharing, @@ -2587,60 +2647,61 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson( + json.decode(data) as Map); // coverage:ignore-end @JsonKey(name: 'api_enabled') final bool? apiEnabled; - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public? public; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public? public; final bool? resharing; - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User? user; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User? user; @JsonKey(name: 'group_sharing') final bool? groupSharing; - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group? group; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group? group; @JsonKey(name: 'default_permissions') final int? defaultPermissions; - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation? federation; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation? federation; - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee? sharee; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee? sharee; - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail? sharebymail; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail? sharebymail; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Notes { - CoreServerCapabilities_Ocs_Data_Capabilities_Notes({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes({ this.apiVersion, this.version, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(json.decode(data) as Map); // coverage:ignore-end @JsonKey(name: 'api_version') @@ -2649,28 +2710,29 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Notes { final String? version; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Notes? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Notifications { - CoreServerCapabilities_Ocs_Data_Capabilities_Notifications({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications({ this.ocsEndpoints, this.push, this.adminNotifications, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson( + json.decode(data) as Map); // coverage:ignore-end @JsonKey(name: 'ocs-endpoints') @@ -2682,27 +2744,28 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Notifications { final List? adminNotifications; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Notifications? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api { - CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api({ this.generate, this.validate, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson( + Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson( + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson( json.decode(data) as Map); // coverage:ignore-end @@ -2711,15 +2774,16 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api { final String? validate; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiToJson(this); + Map toJson() => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy { - CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy({ this.minLength, this.enforceNonCommonPassword, this.enforceNumericCharacters, @@ -2729,13 +2793,14 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson( + json.decode(data) as Map); // coverage:ignore-end final int? minLength; @@ -2748,18 +2813,18 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy { final bool? enforceUpperLowerCase; - final CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api? api; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api? api; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi { - CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi({ this.version, this.accountPropertyScopesVersion, this.accountPropertyScopesFederatedEnabled, @@ -2767,13 +2832,14 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson( + json.decode(data) as Map); // coverage:ignore-end final String? version; @@ -2788,15 +2854,15 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi { final bool? accountPropertyScopesPublishedEnabled; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_Theming { - CoreServerCapabilities_Ocs_Data_Capabilities_Theming({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming({ this.name, this.url, this.slogan, @@ -2814,13 +2880,13 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Theming { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(json.decode(data) as Map); // coverage:ignore-end final String? name; @@ -2858,27 +2924,28 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Theming { final String? favicon; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Theming? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus { - CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus({ this.enabled, this.supportsEmoji, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson( + json.decode(data) as Map); // coverage:ignore-end final bool? enabled; @@ -2887,38 +2954,39 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus { final bool? supportsEmoji; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus { - CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus({this.enabled}); +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus({this.enabled}); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson( + json.decode(data) as Map); // coverage:ignore-end final bool? enabled; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable(disallowUnrecognizedKeys: false) -class CoreServerCapabilities_Ocs_Data_Capabilities { - CoreServerCapabilities_Ocs_Data_Capabilities({ +class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities { + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities({ this.core, this.bruteforce, this.metadataAvailable, @@ -2938,142 +3006,146 @@ class CoreServerCapabilities_Ocs_Data_Capabilities { }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_Data_CapabilitiesFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data_Capabilities.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data_Capabilities.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.fromJson(json.decode(data) as Map); // coverage:ignore-end - final CoreServerCapabilities_Ocs_Data_Capabilities_Core? core; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core? core; - final CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce? bruteforce; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce? bruteforce; - final CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable? metadataAvailable; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable? metadataAvailable; - final CoreServerCapabilities_Ocs_Data_Capabilities_Files? files; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files? files; - final CoreServerCapabilities_Ocs_Data_Capabilities_Activity? activity; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity? activity; - final CoreServerCapabilities_Ocs_Data_Capabilities_Circles? circles; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles? circles; - final CoreServerCapabilities_Ocs_Data_Capabilities_Ocm? ocm; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm? ocm; - final CoreServerCapabilities_Ocs_Data_Capabilities_Dav? dav; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav? dav; @JsonKey(name: 'files_sharing') - final CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing? filesSharing; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing? filesSharing; - final CoreServerCapabilities_Ocs_Data_Capabilities_Notes? notes; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes? notes; - final CoreServerCapabilities_Ocs_Data_Capabilities_Notifications? notifications; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications? notifications; @JsonKey(name: 'password_policy') - final CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy? passwordPolicy; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy? passwordPolicy; @JsonKey(name: 'provisioning_api') - final CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi? provisioningApi; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi? provisioningApi; - final CoreServerCapabilities_Ocs_Data_Capabilities_Theming? theming; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming? theming; @JsonKey(name: 'user_status') - final CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus? userStatus; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus? userStatus; @JsonKey(name: 'weather_status') - final CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus? weatherStatus; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus? weatherStatus; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_Data_CapabilitiesToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class CoreServerCapabilities_Ocs_Data { - CoreServerCapabilities_Ocs_Data({ +class NextcloudCoreServerCapabilities_Ocs_Data { + NextcloudCoreServerCapabilities_Ocs_Data({ required this.version, required this.capabilities, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data.fromJson(Map json) => - _$CoreServerCapabilities_Ocs_DataFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs_Data.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_Ocs_DataFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs_Data.fromJsonString(String data) => - CoreServerCapabilities_Ocs_Data.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs_Data.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs_Data.fromJson(json.decode(data) as Map); // coverage:ignore-end - final CoreServerCapabilities_Ocs_Data_Version version; + final NextcloudCoreServerCapabilities_Ocs_Data_Version version; - final CoreServerCapabilities_Ocs_Data_Capabilities capabilities; + final NextcloudCoreServerCapabilities_Ocs_Data_Capabilities capabilities; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_Ocs_DataToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_Ocs_DataToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs_Data? data) => + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs_Data? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class CoreServerCapabilities_Ocs { - CoreServerCapabilities_Ocs({ +class NextcloudCoreServerCapabilities_Ocs { + NextcloudCoreServerCapabilities_Ocs({ required this.meta, required this.data, }); // coverage:ignore-start - factory CoreServerCapabilities_Ocs.fromJson(Map json) => _$CoreServerCapabilities_OcsFromJson(json); + factory NextcloudCoreServerCapabilities_Ocs.fromJson(Map json) => + _$NextcloudCoreServerCapabilities_OcsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities_Ocs.fromJsonString(String data) => - CoreServerCapabilities_Ocs.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities_Ocs.fromJsonString(String data) => + NextcloudCoreServerCapabilities_Ocs.fromJson(json.decode(data) as Map); // coverage:ignore-end - final OCSMeta meta; + final NextcloudOCSMeta meta; - final CoreServerCapabilities_Ocs_Data data; + final NextcloudCoreServerCapabilities_Ocs_Data data; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilities_OcsToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilities_OcsToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities_Ocs? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudCoreServerCapabilities_Ocs? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class CoreServerCapabilities { - CoreServerCapabilities({required this.ocs}); +class NextcloudCoreServerCapabilities { + NextcloudCoreServerCapabilities({required this.ocs}); // coverage:ignore-start - factory CoreServerCapabilities.fromJson(Map json) => _$CoreServerCapabilitiesFromJson(json); + factory NextcloudCoreServerCapabilities.fromJson(Map json) => + _$NextcloudCoreServerCapabilitiesFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreServerCapabilities.fromJsonString(String data) => - CoreServerCapabilities.fromJson(json.decode(data) as Map); + factory NextcloudCoreServerCapabilities.fromJsonString(String data) => + NextcloudCoreServerCapabilities.fromJson(json.decode(data) as Map); // coverage:ignore-end - final CoreServerCapabilities_Ocs ocs; + final NextcloudCoreServerCapabilities_Ocs ocs; // coverage:ignore-start - Map toJson() => _$CoreServerCapabilitiesToJson(this); + Map toJson() => _$NextcloudCoreServerCapabilitiesToJson(this); // coverage:ignore-end - static String? toJsonString(CoreServerCapabilities? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudCoreServerCapabilities? data) => + data == null ? null : json.encode(data.toJson()); } -class CoreNavigationApps_Ocs_Data_Order { - CoreNavigationApps_Ocs_Data_Order( +class NextcloudCoreNavigationApps_Ocs_Data_Order { + NextcloudCoreNavigationApps_Ocs_Data_Order( this._data, { this.$int, this.string, }); - factory CoreNavigationApps_Ocs_Data_Order.fromJson(dynamic data) { + factory NextcloudCoreNavigationApps_Ocs_Data_Order.fromJson(dynamic data) { int? $int; String? string; try { @@ -3083,7 +3155,7 @@ class CoreNavigationApps_Ocs_Data_Order { string = (data as String); } catch (_) {} assert([$int, string].where((final x) => x != null).length == 1, 'Need oneOf for $data'); - return CoreNavigationApps_Ocs_Data_Order( + return NextcloudCoreNavigationApps_Ocs_Data_Order( data, $int: $int, string: string, @@ -3091,8 +3163,8 @@ class CoreNavigationApps_Ocs_Data_Order { } // coverage:ignore-start - factory CoreNavigationApps_Ocs_Data_Order.fromJsonString(String data) => - CoreNavigationApps_Ocs_Data_Order.fromJson(json.decode(data)); + factory NextcloudCoreNavigationApps_Ocs_Data_Order.fromJsonString(String data) => + NextcloudCoreNavigationApps_Ocs_Data_Order.fromJson(json.decode(data)); // coverage:ignore-end final dynamic _data; @@ -3110,8 +3182,8 @@ class CoreNavigationApps_Ocs_Data_Order { } @JsonSerializable() -class CoreNavigationApps_Ocs_Data { - CoreNavigationApps_Ocs_Data({ +class NextcloudCoreNavigationApps_Ocs_Data { + NextcloudCoreNavigationApps_Ocs_Data({ required this.id, required this.order, required this.href, @@ -3124,19 +3196,19 @@ class CoreNavigationApps_Ocs_Data { }); // coverage:ignore-start - factory CoreNavigationApps_Ocs_Data.fromJson(Map json) => - _$CoreNavigationApps_Ocs_DataFromJson(json); + factory NextcloudCoreNavigationApps_Ocs_Data.fromJson(Map json) => + _$NextcloudCoreNavigationApps_Ocs_DataFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreNavigationApps_Ocs_Data.fromJsonString(String data) => - CoreNavigationApps_Ocs_Data.fromJson(json.decode(data) as Map); + factory NextcloudCoreNavigationApps_Ocs_Data.fromJsonString(String data) => + NextcloudCoreNavigationApps_Ocs_Data.fromJson(json.decode(data) as Map); // coverage:ignore-end final String id; /// Should always be an integer, but there is a bug. See https://github.com/nextcloud/server/issues/32828 - final CoreNavigationApps_Ocs_Data_Order order; + final NextcloudCoreNavigationApps_Ocs_Data_Order order; final String href; @@ -3153,72 +3225,77 @@ class CoreNavigationApps_Ocs_Data { final int unread; // coverage:ignore-start - Map toJson() => _$CoreNavigationApps_Ocs_DataToJson(this); + Map toJson() => _$NextcloudCoreNavigationApps_Ocs_DataToJson(this); // coverage:ignore-end - static String? toJsonString(CoreNavigationApps_Ocs_Data? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudCoreNavigationApps_Ocs_Data? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class CoreNavigationApps_Ocs { - CoreNavigationApps_Ocs({ +class NextcloudCoreNavigationApps_Ocs { + NextcloudCoreNavigationApps_Ocs({ required this.meta, required this.data, }); // coverage:ignore-start - factory CoreNavigationApps_Ocs.fromJson(Map json) => _$CoreNavigationApps_OcsFromJson(json); + factory NextcloudCoreNavigationApps_Ocs.fromJson(Map json) => + _$NextcloudCoreNavigationApps_OcsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreNavigationApps_Ocs.fromJsonString(String data) => - CoreNavigationApps_Ocs.fromJson(json.decode(data) as Map); + factory NextcloudCoreNavigationApps_Ocs.fromJsonString(String data) => + NextcloudCoreNavigationApps_Ocs.fromJson(json.decode(data) as Map); // coverage:ignore-end - final OCSMeta meta; + final NextcloudOCSMeta meta; - final List data; + final List data; // coverage:ignore-start - Map toJson() => _$CoreNavigationApps_OcsToJson(this); + Map toJson() => _$NextcloudCoreNavigationApps_OcsToJson(this); // coverage:ignore-end - static String? toJsonString(CoreNavigationApps_Ocs? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudCoreNavigationApps_Ocs? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class CoreNavigationApps { - CoreNavigationApps({required this.ocs}); +class NextcloudCoreNavigationApps { + NextcloudCoreNavigationApps({required this.ocs}); // coverage:ignore-start - factory CoreNavigationApps.fromJson(Map json) => _$CoreNavigationAppsFromJson(json); + factory NextcloudCoreNavigationApps.fromJson(Map json) => + _$NextcloudCoreNavigationAppsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreNavigationApps.fromJsonString(String data) => - CoreNavigationApps.fromJson(json.decode(data) as Map); + factory NextcloudCoreNavigationApps.fromJsonString(String data) => + NextcloudCoreNavigationApps.fromJson(json.decode(data) as Map); // coverage:ignore-end - final CoreNavigationApps_Ocs ocs; + final NextcloudCoreNavigationApps_Ocs ocs; // coverage:ignore-start - Map toJson() => _$CoreNavigationAppsToJson(this); + Map toJson() => _$NextcloudCoreNavigationAppsToJson(this); // coverage:ignore-end - static String? toJsonString(CoreNavigationApps? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudCoreNavigationApps? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class CoreLoginFlowInit_Poll { - CoreLoginFlowInit_Poll({ +class NextcloudCoreLoginFlowInit_Poll { + NextcloudCoreLoginFlowInit_Poll({ required this.token, required this.endpoint, }); // coverage:ignore-start - factory CoreLoginFlowInit_Poll.fromJson(Map json) => _$CoreLoginFlowInit_PollFromJson(json); + factory NextcloudCoreLoginFlowInit_Poll.fromJson(Map json) => + _$NextcloudCoreLoginFlowInit_PollFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreLoginFlowInit_Poll.fromJsonString(String data) => - CoreLoginFlowInit_Poll.fromJson(json.decode(data) as Map); + factory NextcloudCoreLoginFlowInit_Poll.fromJsonString(String data) => + NextcloudCoreLoginFlowInit_Poll.fromJson(json.decode(data) as Map); // coverage:ignore-end final String token; @@ -3226,52 +3303,54 @@ class CoreLoginFlowInit_Poll { final String endpoint; // coverage:ignore-start - Map toJson() => _$CoreLoginFlowInit_PollToJson(this); + Map toJson() => _$NextcloudCoreLoginFlowInit_PollToJson(this); // coverage:ignore-end - static String? toJsonString(CoreLoginFlowInit_Poll? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudCoreLoginFlowInit_Poll? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class CoreLoginFlowInit { - CoreLoginFlowInit({ +class NextcloudCoreLoginFlowInit { + NextcloudCoreLoginFlowInit({ required this.poll, required this.login, }); // coverage:ignore-start - factory CoreLoginFlowInit.fromJson(Map json) => _$CoreLoginFlowInitFromJson(json); + factory NextcloudCoreLoginFlowInit.fromJson(Map json) => _$NextcloudCoreLoginFlowInitFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreLoginFlowInit.fromJsonString(String data) => - CoreLoginFlowInit.fromJson(json.decode(data) as Map); + factory NextcloudCoreLoginFlowInit.fromJsonString(String data) => + NextcloudCoreLoginFlowInit.fromJson(json.decode(data) as Map); // coverage:ignore-end - final CoreLoginFlowInit_Poll poll; + final NextcloudCoreLoginFlowInit_Poll poll; final String login; // coverage:ignore-start - Map toJson() => _$CoreLoginFlowInitToJson(this); + Map toJson() => _$NextcloudCoreLoginFlowInitToJson(this); // coverage:ignore-end - static String? toJsonString(CoreLoginFlowInit? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudCoreLoginFlowInit? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class CoreLoginFlowResult { - CoreLoginFlowResult({ +class NextcloudCoreLoginFlowResult { + NextcloudCoreLoginFlowResult({ required this.server, required this.loginName, required this.appPassword, }); // coverage:ignore-start - factory CoreLoginFlowResult.fromJson(Map json) => _$CoreLoginFlowResultFromJson(json); + factory NextcloudCoreLoginFlowResult.fromJson(Map json) => + _$NextcloudCoreLoginFlowResultFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreLoginFlowResult.fromJsonString(String data) => - CoreLoginFlowResult.fromJson(json.decode(data) as Map); + factory NextcloudCoreLoginFlowResult.fromJsonString(String data) => + NextcloudCoreLoginFlowResult.fromJson(json.decode(data) as Map); // coverage:ignore-end final String server; @@ -3281,31 +3360,31 @@ class CoreLoginFlowResult { final String appPassword; // coverage:ignore-start - Map toJson() => _$CoreLoginFlowResultToJson(this); + Map toJson() => _$NextcloudCoreLoginFlowResultToJson(this); // coverage:ignore-end - static String? toJsonString(CoreLoginFlowResult? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudCoreLoginFlowResult? data) => data == null ? null : json.encode(data.toJson()); } -class CoreAutocompleteResult_Ocs_Data_Status { - CoreAutocompleteResult_Ocs_Data_Status( +class NextcloudCoreAutocompleteResult_Ocs_Data_Status { + NextcloudCoreAutocompleteResult_Ocs_Data_Status( this._data, { this.string, }); - factory CoreAutocompleteResult_Ocs_Data_Status.fromJson(dynamic data) { + factory NextcloudCoreAutocompleteResult_Ocs_Data_Status.fromJson(dynamic data) { String? string; try { string = (data as String); } catch (_) {} - return CoreAutocompleteResult_Ocs_Data_Status( + return NextcloudCoreAutocompleteResult_Ocs_Data_Status( data, string: string, ); } // coverage:ignore-start - factory CoreAutocompleteResult_Ocs_Data_Status.fromJsonString(String data) => - CoreAutocompleteResult_Ocs_Data_Status.fromJson(json.decode(data)); + factory NextcloudCoreAutocompleteResult_Ocs_Data_Status.fromJsonString(String data) => + NextcloudCoreAutocompleteResult_Ocs_Data_Status.fromJson(json.decode(data)); // coverage:ignore-end final dynamic _data; @@ -3321,8 +3400,8 @@ class CoreAutocompleteResult_Ocs_Data_Status { } @JsonSerializable() -class CoreAutocompleteResult_Ocs_Data { - CoreAutocompleteResult_Ocs_Data({ +class NextcloudCoreAutocompleteResult_Ocs_Data { + NextcloudCoreAutocompleteResult_Ocs_Data({ required this.id, required this.label, required this.icon, @@ -3333,13 +3412,13 @@ class CoreAutocompleteResult_Ocs_Data { }); // coverage:ignore-start - factory CoreAutocompleteResult_Ocs_Data.fromJson(Map json) => - _$CoreAutocompleteResult_Ocs_DataFromJson(json); + factory NextcloudCoreAutocompleteResult_Ocs_Data.fromJson(Map json) => + _$NextcloudCoreAutocompleteResult_Ocs_DataFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreAutocompleteResult_Ocs_Data.fromJsonString(String data) => - CoreAutocompleteResult_Ocs_Data.fromJson(json.decode(data) as Map); + factory NextcloudCoreAutocompleteResult_Ocs_Data.fromJsonString(String data) => + NextcloudCoreAutocompleteResult_Ocs_Data.fromJson(json.decode(data) as Map); // coverage:ignore-end final String id; @@ -3350,90 +3429,96 @@ class CoreAutocompleteResult_Ocs_Data { final String source; - final CoreAutocompleteResult_Ocs_Data_Status status; + final NextcloudCoreAutocompleteResult_Ocs_Data_Status status; final String subline; final String shareWithDisplayNameUnique; // coverage:ignore-start - Map toJson() => _$CoreAutocompleteResult_Ocs_DataToJson(this); + Map toJson() => _$NextcloudCoreAutocompleteResult_Ocs_DataToJson(this); // coverage:ignore-end - static String? toJsonString(CoreAutocompleteResult_Ocs_Data? data) => + static String? toJsonString(NextcloudCoreAutocompleteResult_Ocs_Data? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class CoreAutocompleteResult_Ocs { - CoreAutocompleteResult_Ocs({ +class NextcloudCoreAutocompleteResult_Ocs { + NextcloudCoreAutocompleteResult_Ocs({ required this.meta, required this.data, }); // coverage:ignore-start - factory CoreAutocompleteResult_Ocs.fromJson(Map json) => _$CoreAutocompleteResult_OcsFromJson(json); + factory NextcloudCoreAutocompleteResult_Ocs.fromJson(Map json) => + _$NextcloudCoreAutocompleteResult_OcsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreAutocompleteResult_Ocs.fromJsonString(String data) => - CoreAutocompleteResult_Ocs.fromJson(json.decode(data) as Map); + factory NextcloudCoreAutocompleteResult_Ocs.fromJsonString(String data) => + NextcloudCoreAutocompleteResult_Ocs.fromJson(json.decode(data) as Map); // coverage:ignore-end - final OCSMeta meta; + final NextcloudOCSMeta meta; - final List data; + final List data; // coverage:ignore-start - Map toJson() => _$CoreAutocompleteResult_OcsToJson(this); + Map toJson() => _$NextcloudCoreAutocompleteResult_OcsToJson(this); // coverage:ignore-end - static String? toJsonString(CoreAutocompleteResult_Ocs? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudCoreAutocompleteResult_Ocs? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class CoreAutocompleteResult { - CoreAutocompleteResult({required this.ocs}); +class NextcloudCoreAutocompleteResult { + NextcloudCoreAutocompleteResult({required this.ocs}); // coverage:ignore-start - factory CoreAutocompleteResult.fromJson(Map json) => _$CoreAutocompleteResultFromJson(json); + factory NextcloudCoreAutocompleteResult.fromJson(Map json) => + _$NextcloudCoreAutocompleteResultFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory CoreAutocompleteResult.fromJsonString(String data) => - CoreAutocompleteResult.fromJson(json.decode(data) as Map); + factory NextcloudCoreAutocompleteResult.fromJsonString(String data) => + NextcloudCoreAutocompleteResult.fromJson(json.decode(data) as Map); // coverage:ignore-end - final CoreAutocompleteResult_Ocs ocs; + final NextcloudCoreAutocompleteResult_Ocs ocs; // coverage:ignore-start - Map toJson() => _$CoreAutocompleteResultToJson(this); + Map toJson() => _$NextcloudCoreAutocompleteResultToJson(this); // coverage:ignore-end - static String? toJsonString(CoreAutocompleteResult? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudCoreAutocompleteResult? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NewsSupportedAPIVersions { - NewsSupportedAPIVersions({this.apiLevels}); +class NextcloudNewsSupportedAPIVersions { + NextcloudNewsSupportedAPIVersions({this.apiLevels}); // coverage:ignore-start - factory NewsSupportedAPIVersions.fromJson(Map json) => _$NewsSupportedAPIVersionsFromJson(json); + factory NextcloudNewsSupportedAPIVersions.fromJson(Map json) => + _$NextcloudNewsSupportedAPIVersionsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NewsSupportedAPIVersions.fromJsonString(String data) => - NewsSupportedAPIVersions.fromJson(json.decode(data) as Map); + factory NextcloudNewsSupportedAPIVersions.fromJsonString(String data) => + NextcloudNewsSupportedAPIVersions.fromJson(json.decode(data) as Map); // coverage:ignore-end final List? apiLevels; // coverage:ignore-start - Map toJson() => _$NewsSupportedAPIVersionsToJson(this); + Map toJson() => _$NextcloudNewsSupportedAPIVersionsToJson(this); // coverage:ignore-end - static String? toJsonString(NewsSupportedAPIVersions? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNewsSupportedAPIVersions? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NewsArticle { - NewsArticle({ +class NextcloudNewsArticle { + NextcloudNewsArticle({ required this.id, required this.guid, required this.guidHash, @@ -3457,11 +3542,12 @@ class NewsArticle { }); // coverage:ignore-start - factory NewsArticle.fromJson(Map json) => _$NewsArticleFromJson(json); + factory NextcloudNewsArticle.fromJson(Map json) => _$NextcloudNewsArticleFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NewsArticle.fromJsonString(String data) => NewsArticle.fromJson(json.decode(data) as Map); + factory NextcloudNewsArticle.fromJsonString(String data) => + NextcloudNewsArticle.fromJson(json.decode(data) as Map); // coverage:ignore-end final int id; @@ -3505,14 +3591,14 @@ class NewsArticle { final String contentHash; // coverage:ignore-start - Map toJson() => _$NewsArticleToJson(this); + Map toJson() => _$NextcloudNewsArticleToJson(this); // coverage:ignore-end - static String? toJsonString(NewsArticle? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNewsArticle? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NewsFeed { - NewsFeed({ +class NextcloudNewsFeed { + NextcloudNewsFeed({ required this.id, required this.url, required this.title, @@ -3529,11 +3615,12 @@ class NewsFeed { }); // coverage:ignore-start - factory NewsFeed.fromJson(Map json) => _$NewsFeedFromJson(json); + factory NextcloudNewsFeed.fromJson(Map json) => _$NextcloudNewsFeedFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NewsFeed.fromJsonString(String data) => NewsFeed.fromJson(json.decode(data) as Map); + factory NextcloudNewsFeed.fromJsonString(String data) => + NextcloudNewsFeed.fromJson(json.decode(data) as Map); // coverage:ignore-end final int id; @@ -3560,17 +3647,17 @@ class NewsFeed { final String? lastUpdateError; - final List items; + final List items; // coverage:ignore-start - Map toJson() => _$NewsFeedToJson(this); + Map toJson() => _$NextcloudNewsFeedToJson(this); // coverage:ignore-end - static String? toJsonString(NewsFeed? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNewsFeed? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NewsFolder { - NewsFolder({ +class NextcloudNewsFolder { + NextcloudNewsFolder({ required this.id, required this.name, required this.opened, @@ -3578,11 +3665,12 @@ class NewsFolder { }); // coverage:ignore-start - factory NewsFolder.fromJson(Map json) => _$NewsFolderFromJson(json); + factory NextcloudNewsFolder.fromJson(Map json) => _$NextcloudNewsFolderFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NewsFolder.fromJsonString(String data) => NewsFolder.fromJson(json.decode(data) as Map); + factory NextcloudNewsFolder.fromJsonString(String data) => + NextcloudNewsFolder.fromJson(json.decode(data) as Map); // coverage:ignore-end final int id; @@ -3592,88 +3680,88 @@ class NewsFolder { 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); + Map toJson() => _$NextcloudNewsFolderToJson(this); // coverage:ignore-end - static String? toJsonString(NewsFolder? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNewsFolder? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NewsListFolders { - NewsListFolders({required this.folders}); +class NextcloudNewsListFolders { + NextcloudNewsListFolders({required this.folders}); // coverage:ignore-start - factory NewsListFolders.fromJson(Map json) => _$NewsListFoldersFromJson(json); + factory NextcloudNewsListFolders.fromJson(Map json) => _$NextcloudNewsListFoldersFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NewsListFolders.fromJsonString(String data) => - NewsListFolders.fromJson(json.decode(data) as Map); + factory NextcloudNewsListFolders.fromJsonString(String data) => + NextcloudNewsListFolders.fromJson(json.decode(data) as Map); // coverage:ignore-end - final List folders; + final List folders; // coverage:ignore-start - Map toJson() => _$NewsListFoldersToJson(this); + Map toJson() => _$NextcloudNewsListFoldersToJson(this); // coverage:ignore-end - static String? toJsonString(NewsListFolders? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNewsListFolders? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NewsListFeeds { - NewsListFeeds({ +class NextcloudNewsListFeeds { + NextcloudNewsListFeeds({ this.starredCount, this.newestItemId, required this.feeds, }); // coverage:ignore-start - factory NewsListFeeds.fromJson(Map json) => _$NewsListFeedsFromJson(json); + factory NextcloudNewsListFeeds.fromJson(Map json) => _$NextcloudNewsListFeedsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NewsListFeeds.fromJsonString(String data) => - NewsListFeeds.fromJson(json.decode(data) as Map); + factory NextcloudNewsListFeeds.fromJsonString(String data) => + NextcloudNewsListFeeds.fromJson(json.decode(data) as Map); // coverage:ignore-end final int? starredCount; final int? newestItemId; - final List feeds; + final List feeds; // coverage:ignore-start - Map toJson() => _$NewsListFeedsToJson(this); + Map toJson() => _$NextcloudNewsListFeedsToJson(this); // coverage:ignore-end - static String? toJsonString(NewsListFeeds? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNewsListFeeds? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NewsListArticles { - NewsListArticles({required this.items}); +class NextcloudNewsListArticles { + NextcloudNewsListArticles({required this.items}); // coverage:ignore-start - factory NewsListArticles.fromJson(Map json) => _$NewsListArticlesFromJson(json); + factory NextcloudNewsListArticles.fromJson(Map json) => _$NextcloudNewsListArticlesFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NewsListArticles.fromJsonString(String data) => - NewsListArticles.fromJson(json.decode(data) as Map); + factory NextcloudNewsListArticles.fromJsonString(String data) => + NextcloudNewsListArticles.fromJson(json.decode(data) as Map); // coverage:ignore-end - final List items; + final List items; // coverage:ignore-start - Map toJson() => _$NewsListArticlesToJson(this); + Map toJson() => _$NextcloudNewsListArticlesToJson(this); // coverage:ignore-end - static String? toJsonString(NewsListArticles? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNewsListArticles? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NotesNote { - NotesNote({ +class NextcloudNotesNote { + NextcloudNotesNote({ required this.id, required this.etag, required this.readonly, @@ -3687,11 +3775,12 @@ class NotesNote { }); // coverage:ignore-start - factory NotesNote.fromJson(Map json) => _$NotesNoteFromJson(json); + factory NextcloudNotesNote.fromJson(Map json) => _$NextcloudNotesNoteFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotesNote.fromJsonString(String data) => NotesNote.fromJson(json.decode(data) as Map); + factory NextcloudNotesNote.fromJsonString(String data) => + NextcloudNotesNote.fromJson(json.decode(data) as Map); // coverage:ignore-end final int id; @@ -3715,80 +3804,80 @@ class NotesNote { final String errorType; // coverage:ignore-start - Map toJson() => _$NotesNoteToJson(this); + Map toJson() => _$NextcloudNotesNoteToJson(this); // coverage:ignore-end - static String? toJsonString(NotesNote? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNotesNote? data) => data == null ? null : json.encode(data.toJson()); } -enum NotesSettings_NoteMode { +enum NextcloudNotesSettings_NoteMode { edit('edit'), preview('preview'); - const NotesSettings_NoteMode(this.value); + const NextcloudNotesSettings_NoteMode(this.value); final String value; - static NotesSettings_NoteMode fromValue(String value) { + static NextcloudNotesSettings_NoteMode fromValue(String value) { switch (value) { case 'edit': - return NotesSettings_NoteMode.edit; + return NextcloudNotesSettings_NoteMode.edit; case 'preview': - return NotesSettings_NoteMode.preview; + return NextcloudNotesSettings_NoteMode.preview; default: - throw Exception('Can not parse NotesSettings_NoteMode from "$value"'); + throw Exception('Can not parse NextcloudNotesSettings_NoteMode from "$value"'); } } } @JsonSerializable() -class NotesSettings { - NotesSettings({ +class NextcloudNotesSettings { + NextcloudNotesSettings({ required this.notesPath, required this.fileSuffix, required this.noteMode, }); // coverage:ignore-start - factory NotesSettings.fromJson(Map json) => _$NotesSettingsFromJson(json); + factory NextcloudNotesSettings.fromJson(Map json) => _$NextcloudNotesSettingsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotesSettings.fromJsonString(String data) => - NotesSettings.fromJson(json.decode(data) as Map); + factory NextcloudNotesSettings.fromJsonString(String data) => + NextcloudNotesSettings.fromJson(json.decode(data) as Map); // coverage:ignore-end final String notesPath; final String fileSuffix; - final NotesSettings_NoteMode noteMode; + final NextcloudNotesSettings_NoteMode noteMode; // coverage:ignore-start - Map toJson() => _$NotesSettingsToJson(this); + Map toJson() => _$NextcloudNotesSettingsToJson(this); // coverage:ignore-end - static String? toJsonString(NotesSettings? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNotesSettings? data) => data == null ? null : json.encode(data.toJson()); } -class NotificationsNotification_SubjectRichParameters { - NotificationsNotification_SubjectRichParameters( +class NextcloudNotificationsNotification_SubjectRichParameters { + NextcloudNotificationsNotification_SubjectRichParameters( this._data, { this.mapStringDynamic, }); - factory NotificationsNotification_SubjectRichParameters.fromJson(dynamic data) { + factory NextcloudNotificationsNotification_SubjectRichParameters.fromJson(dynamic data) { Map? mapStringDynamic; try { mapStringDynamic = (data as Map); } catch (_) {} - return NotificationsNotification_SubjectRichParameters( + return NextcloudNotificationsNotification_SubjectRichParameters( data, mapStringDynamic: mapStringDynamic, ); } // coverage:ignore-start - factory NotificationsNotification_SubjectRichParameters.fromJsonString(String data) => - NotificationsNotification_SubjectRichParameters.fromJson(json.decode(data)); + factory NextcloudNotificationsNotification_SubjectRichParameters.fromJsonString(String data) => + NextcloudNotificationsNotification_SubjectRichParameters.fromJson(json.decode(data)); // coverage:ignore-end final dynamic _data; @@ -3803,26 +3892,26 @@ class NotificationsNotification_SubjectRichParameters { // coverage:ignore-end } -class NotificationsNotification_MessageRichParameters { - NotificationsNotification_MessageRichParameters( +class NextcloudNotificationsNotification_MessageRichParameters { + NextcloudNotificationsNotification_MessageRichParameters( this._data, { this.mapStringDynamic, }); - factory NotificationsNotification_MessageRichParameters.fromJson(dynamic data) { + factory NextcloudNotificationsNotification_MessageRichParameters.fromJson(dynamic data) { Map? mapStringDynamic; try { mapStringDynamic = (data as Map); } catch (_) {} - return NotificationsNotification_MessageRichParameters( + return NextcloudNotificationsNotification_MessageRichParameters( data, mapStringDynamic: mapStringDynamic, ); } // coverage:ignore-start - factory NotificationsNotification_MessageRichParameters.fromJsonString(String data) => - NotificationsNotification_MessageRichParameters.fromJson(json.decode(data)); + factory NextcloudNotificationsNotification_MessageRichParameters.fromJsonString(String data) => + NextcloudNotificationsNotification_MessageRichParameters.fromJson(json.decode(data)); // coverage:ignore-end final dynamic _data; @@ -3838,8 +3927,8 @@ class NotificationsNotification_MessageRichParameters { } @JsonSerializable() -class NotificationsNotificationAction { - NotificationsNotificationAction({ +class NextcloudNotificationsNotificationAction { + NextcloudNotificationsNotificationAction({ required this.label, required this.link, required this.type, @@ -3847,13 +3936,13 @@ class NotificationsNotificationAction { }); // coverage:ignore-start - factory NotificationsNotificationAction.fromJson(Map json) => - _$NotificationsNotificationActionFromJson(json); + factory NextcloudNotificationsNotificationAction.fromJson(Map json) => + _$NextcloudNotificationsNotificationActionFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotificationsNotificationAction.fromJsonString(String data) => - NotificationsNotificationAction.fromJson(json.decode(data) as Map); + factory NextcloudNotificationsNotificationAction.fromJsonString(String data) => + NextcloudNotificationsNotificationAction.fromJson(json.decode(data) as Map); // coverage:ignore-end final String label; @@ -3865,15 +3954,15 @@ class NotificationsNotificationAction { final bool? primary; // coverage:ignore-start - Map toJson() => _$NotificationsNotificationActionToJson(this); + Map toJson() => _$NextcloudNotificationsNotificationActionToJson(this); // coverage:ignore-end - static String? toJsonString(NotificationsNotificationAction? data) => + static String? toJsonString(NextcloudNotificationsNotificationAction? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NotificationsNotification { - NotificationsNotification({ +class NextcloudNotificationsNotification { + NextcloudNotificationsNotification({ required this.notificationId, required this.app, required this.user, @@ -3892,12 +3981,13 @@ class NotificationsNotification { }); // coverage:ignore-start - factory NotificationsNotification.fromJson(Map json) => _$NotificationsNotificationFromJson(json); + factory NextcloudNotificationsNotification.fromJson(Map json) => + _$NextcloudNotificationsNotificationFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotificationsNotification.fromJsonString(String data) => - NotificationsNotification.fromJson(json.decode(data) as Map); + factory NextcloudNotificationsNotification.fromJsonString(String data) => + NextcloudNotificationsNotification.fromJson(json.decode(data) as Map); // coverage:ignore-end @JsonKey(name: 'notification_id') @@ -3923,170 +4013,175 @@ class NotificationsNotification { final String subjectRich; - final NotificationsNotification_SubjectRichParameters subjectRichParameters; + final NextcloudNotificationsNotification_SubjectRichParameters subjectRichParameters; final String messageRich; - final NotificationsNotification_MessageRichParameters messageRichParameters; + final NextcloudNotificationsNotification_MessageRichParameters messageRichParameters; final String icon; - final List actions; + final List actions; // coverage:ignore-start - Map toJson() => _$NotificationsNotificationToJson(this); + Map toJson() => _$NextcloudNotificationsNotificationToJson(this); // coverage:ignore-end - static String? toJsonString(NotificationsNotification? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNotificationsNotification? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NotificationsListNotifications_Ocs { - NotificationsListNotifications_Ocs({ +class NextcloudNotificationsListNotifications_Ocs { + NextcloudNotificationsListNotifications_Ocs({ required this.meta, required this.data, }); // coverage:ignore-start - factory NotificationsListNotifications_Ocs.fromJson(Map json) => - _$NotificationsListNotifications_OcsFromJson(json); + factory NextcloudNotificationsListNotifications_Ocs.fromJson(Map json) => + _$NextcloudNotificationsListNotifications_OcsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotificationsListNotifications_Ocs.fromJsonString(String data) => - NotificationsListNotifications_Ocs.fromJson(json.decode(data) as Map); + factory NextcloudNotificationsListNotifications_Ocs.fromJsonString(String data) => + NextcloudNotificationsListNotifications_Ocs.fromJson(json.decode(data) as Map); // coverage:ignore-end - final OCSMeta meta; + final NextcloudOCSMeta meta; - final List data; + final List data; // coverage:ignore-start - Map toJson() => _$NotificationsListNotifications_OcsToJson(this); + Map toJson() => _$NextcloudNotificationsListNotifications_OcsToJson(this); // coverage:ignore-end - static String? toJsonString(NotificationsListNotifications_Ocs? data) => + static String? toJsonString(NextcloudNotificationsListNotifications_Ocs? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NotificationsListNotifications { - NotificationsListNotifications({required this.ocs}); +class NextcloudNotificationsListNotifications { + NextcloudNotificationsListNotifications({required this.ocs}); // coverage:ignore-start - factory NotificationsListNotifications.fromJson(Map json) => - _$NotificationsListNotificationsFromJson(json); + factory NextcloudNotificationsListNotifications.fromJson(Map json) => + _$NextcloudNotificationsListNotificationsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotificationsListNotifications.fromJsonString(String data) => - NotificationsListNotifications.fromJson(json.decode(data) as Map); + factory NextcloudNotificationsListNotifications.fromJsonString(String data) => + NextcloudNotificationsListNotifications.fromJson(json.decode(data) as Map); // coverage:ignore-end - final NotificationsListNotifications_Ocs ocs; + final NextcloudNotificationsListNotifications_Ocs ocs; // coverage:ignore-start - Map toJson() => _$NotificationsListNotificationsToJson(this); + Map toJson() => _$NextcloudNotificationsListNotificationsToJson(this); // coverage:ignore-end - static String? toJsonString(NotificationsListNotifications? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNotificationsListNotifications? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NotificationsGetNotification_Ocs { - NotificationsGetNotification_Ocs({ +class NextcloudNotificationsGetNotification_Ocs { + NextcloudNotificationsGetNotification_Ocs({ required this.meta, required this.data, }); // coverage:ignore-start - factory NotificationsGetNotification_Ocs.fromJson(Map json) => - _$NotificationsGetNotification_OcsFromJson(json); + factory NextcloudNotificationsGetNotification_Ocs.fromJson(Map json) => + _$NextcloudNotificationsGetNotification_OcsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotificationsGetNotification_Ocs.fromJsonString(String data) => - NotificationsGetNotification_Ocs.fromJson(json.decode(data) as Map); + factory NextcloudNotificationsGetNotification_Ocs.fromJsonString(String data) => + NextcloudNotificationsGetNotification_Ocs.fromJson(json.decode(data) as Map); // coverage:ignore-end - final OCSMeta meta; + final NextcloudOCSMeta meta; - final NotificationsNotification data; + final NextcloudNotificationsNotification data; // coverage:ignore-start - Map toJson() => _$NotificationsGetNotification_OcsToJson(this); + Map toJson() => _$NextcloudNotificationsGetNotification_OcsToJson(this); // coverage:ignore-end - static String? toJsonString(NotificationsGetNotification_Ocs? data) => + static String? toJsonString(NextcloudNotificationsGetNotification_Ocs? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NotificationsGetNotification { - NotificationsGetNotification({required this.ocs}); +class NextcloudNotificationsGetNotification { + NextcloudNotificationsGetNotification({required this.ocs}); // coverage:ignore-start - factory NotificationsGetNotification.fromJson(Map json) => - _$NotificationsGetNotificationFromJson(json); + factory NextcloudNotificationsGetNotification.fromJson(Map json) => + _$NextcloudNotificationsGetNotificationFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotificationsGetNotification.fromJsonString(String data) => - NotificationsGetNotification.fromJson(json.decode(data) as Map); + factory NextcloudNotificationsGetNotification.fromJsonString(String data) => + NextcloudNotificationsGetNotification.fromJson(json.decode(data) as Map); // coverage:ignore-end - final NotificationsGetNotification_Ocs ocs; + final NextcloudNotificationsGetNotification_Ocs ocs; // coverage:ignore-start - Map toJson() => _$NotificationsGetNotificationToJson(this); + Map toJson() => _$NextcloudNotificationsGetNotificationToJson(this); // coverage:ignore-end - static String? toJsonString(NotificationsGetNotification? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNotificationsGetNotification? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class EmptyOCS_Ocs { - EmptyOCS_Ocs({ +class NextcloudEmptyOCS_Ocs { + NextcloudEmptyOCS_Ocs({ required this.meta, required this.data, }); // coverage:ignore-start - factory EmptyOCS_Ocs.fromJson(Map json) => _$EmptyOCS_OcsFromJson(json); + factory NextcloudEmptyOCS_Ocs.fromJson(Map json) => _$NextcloudEmptyOCS_OcsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory EmptyOCS_Ocs.fromJsonString(String data) => EmptyOCS_Ocs.fromJson(json.decode(data) as Map); + factory NextcloudEmptyOCS_Ocs.fromJsonString(String data) => + NextcloudEmptyOCS_Ocs.fromJson(json.decode(data) as Map); // coverage:ignore-end - final OCSMeta meta; + final NextcloudOCSMeta meta; final List data; // coverage:ignore-start - Map toJson() => _$EmptyOCS_OcsToJson(this); + Map toJson() => _$NextcloudEmptyOCS_OcsToJson(this); // coverage:ignore-end - static String? toJsonString(EmptyOCS_Ocs? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudEmptyOCS_Ocs? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class EmptyOCS { - EmptyOCS({required this.ocs}); +class NextcloudEmptyOCS { + NextcloudEmptyOCS({required this.ocs}); // coverage:ignore-start - factory EmptyOCS.fromJson(Map json) => _$EmptyOCSFromJson(json); + factory NextcloudEmptyOCS.fromJson(Map json) => _$NextcloudEmptyOCSFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory EmptyOCS.fromJsonString(String data) => EmptyOCS.fromJson(json.decode(data) as Map); + factory NextcloudEmptyOCS.fromJsonString(String data) => + NextcloudEmptyOCS.fromJson(json.decode(data) as Map); // coverage:ignore-end - final EmptyOCS_Ocs ocs; + final NextcloudEmptyOCS_Ocs ocs; // coverage:ignore-start - Map toJson() => _$EmptyOCSToJson(this); + Map toJson() => _$NextcloudEmptyOCSToJson(this); // coverage:ignore-end - static String? toJsonString(EmptyOCS? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudEmptyOCS? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NotificationsPushServerSubscription { - NotificationsPushServerSubscription({ +class NextcloudNotificationsPushServerSubscription { + NextcloudNotificationsPushServerSubscription({ required this.publicKey, required this.deviceIdentifier, required this.signature, @@ -4094,13 +4189,13 @@ class NotificationsPushServerSubscription { }); // coverage:ignore-start - factory NotificationsPushServerSubscription.fromJson(Map json) => - _$NotificationsPushServerSubscriptionFromJson(json); + factory NextcloudNotificationsPushServerSubscription.fromJson(Map json) => + _$NextcloudNotificationsPushServerSubscriptionFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotificationsPushServerSubscription.fromJsonString(String data) => - NotificationsPushServerSubscription.fromJson(json.decode(data) as Map); + factory NextcloudNotificationsPushServerSubscription.fromJsonString(String data) => + NextcloudNotificationsPushServerSubscription.fromJson(json.decode(data) as Map); // coverage:ignore-end final String publicKey; @@ -4112,66 +4207,66 @@ class NotificationsPushServerSubscription { final String? message; // coverage:ignore-start - Map toJson() => _$NotificationsPushServerSubscriptionToJson(this); + Map toJson() => _$NextcloudNotificationsPushServerSubscriptionToJson(this); // coverage:ignore-end - static String? toJsonString(NotificationsPushServerSubscription? data) => + static String? toJsonString(NextcloudNotificationsPushServerSubscription? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NotificationsPushServerRegistration_Ocs { - NotificationsPushServerRegistration_Ocs({ +class NextcloudNotificationsPushServerRegistration_Ocs { + NextcloudNotificationsPushServerRegistration_Ocs({ required this.meta, required this.data, }); // coverage:ignore-start - factory NotificationsPushServerRegistration_Ocs.fromJson(Map json) => - _$NotificationsPushServerRegistration_OcsFromJson(json); + factory NextcloudNotificationsPushServerRegistration_Ocs.fromJson(Map json) => + _$NextcloudNotificationsPushServerRegistration_OcsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotificationsPushServerRegistration_Ocs.fromJsonString(String data) => - NotificationsPushServerRegistration_Ocs.fromJson(json.decode(data) as Map); + factory NextcloudNotificationsPushServerRegistration_Ocs.fromJsonString(String data) => + NextcloudNotificationsPushServerRegistration_Ocs.fromJson(json.decode(data) as Map); // coverage:ignore-end - final OCSMeta meta; + final NextcloudOCSMeta meta; - final NotificationsPushServerSubscription data; + final NextcloudNotificationsPushServerSubscription data; // coverage:ignore-start - Map toJson() => _$NotificationsPushServerRegistration_OcsToJson(this); + Map toJson() => _$NextcloudNotificationsPushServerRegistration_OcsToJson(this); // coverage:ignore-end - static String? toJsonString(NotificationsPushServerRegistration_Ocs? data) => + static String? toJsonString(NextcloudNotificationsPushServerRegistration_Ocs? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NotificationsPushServerRegistration { - NotificationsPushServerRegistration({required this.ocs}); +class NextcloudNotificationsPushServerRegistration { + NextcloudNotificationsPushServerRegistration({required this.ocs}); // coverage:ignore-start - factory NotificationsPushServerRegistration.fromJson(Map json) => - _$NotificationsPushServerRegistrationFromJson(json); + factory NextcloudNotificationsPushServerRegistration.fromJson(Map json) => + _$NextcloudNotificationsPushServerRegistrationFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotificationsPushServerRegistration.fromJsonString(String data) => - NotificationsPushServerRegistration.fromJson(json.decode(data) as Map); + factory NextcloudNotificationsPushServerRegistration.fromJsonString(String data) => + NextcloudNotificationsPushServerRegistration.fromJson(json.decode(data) as Map); // coverage:ignore-end - final NotificationsPushServerRegistration_Ocs ocs; + final NextcloudNotificationsPushServerRegistration_Ocs ocs; // coverage:ignore-start - Map toJson() => _$NotificationsPushServerRegistrationToJson(this); + Map toJson() => _$NextcloudNotificationsPushServerRegistrationToJson(this); // coverage:ignore-end - static String? toJsonString(NotificationsPushServerRegistration? data) => + static String? toJsonString(NextcloudNotificationsPushServerRegistration? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class ProvisioningApiUserDetails_Quota { - ProvisioningApiUserDetails_Quota({ +class NextcloudProvisioningApiUserDetails_Quota { + NextcloudProvisioningApiUserDetails_Quota({ required this.free, required this.used, required this.total, @@ -4180,13 +4275,13 @@ class ProvisioningApiUserDetails_Quota { }); // coverage:ignore-start - factory ProvisioningApiUserDetails_Quota.fromJson(Map json) => - _$ProvisioningApiUserDetails_QuotaFromJson(json); + factory NextcloudProvisioningApiUserDetails_Quota.fromJson(Map json) => + _$NextcloudProvisioningApiUserDetails_QuotaFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory ProvisioningApiUserDetails_Quota.fromJsonString(String data) => - ProvisioningApiUserDetails_Quota.fromJson(json.decode(data) as Map); + factory NextcloudProvisioningApiUserDetails_Quota.fromJsonString(String data) => + NextcloudProvisioningApiUserDetails_Quota.fromJson(json.decode(data) as Map); // coverage:ignore-end final int free; @@ -4200,27 +4295,27 @@ class ProvisioningApiUserDetails_Quota { final int quota; // coverage:ignore-start - Map toJson() => _$ProvisioningApiUserDetails_QuotaToJson(this); + Map toJson() => _$NextcloudProvisioningApiUserDetails_QuotaToJson(this); // coverage:ignore-end - static String? toJsonString(ProvisioningApiUserDetails_Quota? data) => + static String? toJsonString(NextcloudProvisioningApiUserDetails_Quota? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class ProvisioningApiUserDetails_BackendCapabilities { - ProvisioningApiUserDetails_BackendCapabilities({ +class NextcloudProvisioningApiUserDetails_BackendCapabilities { + NextcloudProvisioningApiUserDetails_BackendCapabilities({ required this.setDisplayName, required this.setPassword, }); // coverage:ignore-start - factory ProvisioningApiUserDetails_BackendCapabilities.fromJson(Map json) => - _$ProvisioningApiUserDetails_BackendCapabilitiesFromJson(json); + factory NextcloudProvisioningApiUserDetails_BackendCapabilities.fromJson(Map json) => + _$NextcloudProvisioningApiUserDetails_BackendCapabilitiesFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory ProvisioningApiUserDetails_BackendCapabilities.fromJsonString(String data) => - ProvisioningApiUserDetails_BackendCapabilities.fromJson(json.decode(data) as Map); + factory NextcloudProvisioningApiUserDetails_BackendCapabilities.fromJsonString(String data) => + NextcloudProvisioningApiUserDetails_BackendCapabilities.fromJson(json.decode(data) as Map); // coverage:ignore-end final bool setDisplayName; @@ -4228,15 +4323,15 @@ class ProvisioningApiUserDetails_BackendCapabilities { final bool setPassword; // coverage:ignore-start - Map toJson() => _$ProvisioningApiUserDetails_BackendCapabilitiesToJson(this); + Map toJson() => _$NextcloudProvisioningApiUserDetails_BackendCapabilitiesToJson(this); // coverage:ignore-end - static String? toJsonString(ProvisioningApiUserDetails_BackendCapabilities? data) => + static String? toJsonString(NextcloudProvisioningApiUserDetails_BackendCapabilities? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class ProvisioningApiUserDetails { - ProvisioningApiUserDetails({ +class NextcloudProvisioningApiUserDetails { + NextcloudProvisioningApiUserDetails({ this.enabled, required this.storageLocation, required this.id, @@ -4278,12 +4373,13 @@ class ProvisioningApiUserDetails { }); // coverage:ignore-start - factory ProvisioningApiUserDetails.fromJson(Map json) => _$ProvisioningApiUserDetailsFromJson(json); + factory NextcloudProvisioningApiUserDetails.fromJson(Map json) => + _$NextcloudProvisioningApiUserDetailsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory ProvisioningApiUserDetails.fromJsonString(String data) => - ProvisioningApiUserDetails.fromJson(json.decode(data) as Map); + factory NextcloudProvisioningApiUserDetails.fromJsonString(String data) => + NextcloudProvisioningApiUserDetails.fromJson(json.decode(data) as Map); // coverage:ignore-end final bool? enabled; @@ -4298,7 +4394,7 @@ class ProvisioningApiUserDetails { final List subadmin; - final ProvisioningApiUserDetails_Quota quota; + final NextcloudProvisioningApiUserDetails_Quota quota; final String avatarScope; @@ -4363,123 +4459,127 @@ class ProvisioningApiUserDetails { @JsonKey(name: 'notify_email') final String? notifyEmail; - final ProvisioningApiUserDetails_BackendCapabilities backendCapabilities; + final NextcloudProvisioningApiUserDetails_BackendCapabilities backendCapabilities; @JsonKey(name: 'display-name') final String? displayName; // coverage:ignore-start - Map toJson() => _$ProvisioningApiUserDetailsToJson(this); + Map toJson() => _$NextcloudProvisioningApiUserDetailsToJson(this); // coverage:ignore-end - static String? toJsonString(ProvisioningApiUserDetails? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudProvisioningApiUserDetails? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class ProvisioningApiUser_Ocs { - ProvisioningApiUser_Ocs({ +class NextcloudProvisioningApiUser_Ocs { + NextcloudProvisioningApiUser_Ocs({ required this.meta, required this.data, }); // coverage:ignore-start - factory ProvisioningApiUser_Ocs.fromJson(Map json) => _$ProvisioningApiUser_OcsFromJson(json); + factory NextcloudProvisioningApiUser_Ocs.fromJson(Map json) => + _$NextcloudProvisioningApiUser_OcsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory ProvisioningApiUser_Ocs.fromJsonString(String data) => - ProvisioningApiUser_Ocs.fromJson(json.decode(data) as Map); + factory NextcloudProvisioningApiUser_Ocs.fromJsonString(String data) => + NextcloudProvisioningApiUser_Ocs.fromJson(json.decode(data) as Map); // coverage:ignore-end - final OCSMeta meta; + final NextcloudOCSMeta meta; - final ProvisioningApiUserDetails data; + final NextcloudProvisioningApiUserDetails data; // coverage:ignore-start - Map toJson() => _$ProvisioningApiUser_OcsToJson(this); + Map toJson() => _$NextcloudProvisioningApiUser_OcsToJson(this); // coverage:ignore-end - static String? toJsonString(ProvisioningApiUser_Ocs? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudProvisioningApiUser_Ocs? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class ProvisioningApiUser { - ProvisioningApiUser({required this.ocs}); +class NextcloudProvisioningApiUser { + NextcloudProvisioningApiUser({required this.ocs}); // coverage:ignore-start - factory ProvisioningApiUser.fromJson(Map json) => _$ProvisioningApiUserFromJson(json); + factory NextcloudProvisioningApiUser.fromJson(Map json) => + _$NextcloudProvisioningApiUserFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory ProvisioningApiUser.fromJsonString(String data) => - ProvisioningApiUser.fromJson(json.decode(data) as Map); + factory NextcloudProvisioningApiUser.fromJsonString(String data) => + NextcloudProvisioningApiUser.fromJson(json.decode(data) as Map); // coverage:ignore-end - final ProvisioningApiUser_Ocs ocs; + final NextcloudProvisioningApiUser_Ocs ocs; // coverage:ignore-start - Map toJson() => _$ProvisioningApiUserToJson(this); + Map toJson() => _$NextcloudProvisioningApiUserToJson(this); // coverage:ignore-end - static String? toJsonString(ProvisioningApiUser? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudProvisioningApiUser? data) => data == null ? null : json.encode(data.toJson()); } -enum UserStatusClearAt_Type { +enum NextcloudUserStatusClearAt_Type { period('period'), @JsonValue('end-of') endOf('end-of'); - const UserStatusClearAt_Type(this.value); + const NextcloudUserStatusClearAt_Type(this.value); final String value; - static UserStatusClearAt_Type fromValue(String value) { + static NextcloudUserStatusClearAt_Type fromValue(String value) { switch (value) { case 'period': - return UserStatusClearAt_Type.period; + return NextcloudUserStatusClearAt_Type.period; case 'end-of': - return UserStatusClearAt_Type.endOf; + return NextcloudUserStatusClearAt_Type.endOf; default: - throw Exception('Can not parse UserStatusClearAt_Type from "$value"'); + throw Exception('Can not parse NextcloudUserStatusClearAt_Type from "$value"'); } } } -enum UserStatusClearAt_Time0 { +enum NextcloudUserStatusClearAt_Time0 { day('day'), week('week'); - const UserStatusClearAt_Time0(this.value); + const NextcloudUserStatusClearAt_Time0(this.value); final String value; - static UserStatusClearAt_Time0 fromValue(String value) { + static NextcloudUserStatusClearAt_Time0 fromValue(String value) { switch (value) { case 'day': - return UserStatusClearAt_Time0.day; + return NextcloudUserStatusClearAt_Time0.day; case 'week': - return UserStatusClearAt_Time0.week; + return NextcloudUserStatusClearAt_Time0.week; default: - throw Exception('Can not parse UserStatusClearAt_Time0 from "$value"'); + throw Exception('Can not parse NextcloudUserStatusClearAt_Time0 from "$value"'); } } } -class UserStatusClearAt_Time { - UserStatusClearAt_Time( +class NextcloudUserStatusClearAt_Time { + NextcloudUserStatusClearAt_Time( this._data, { this.userStatusClearAtTime0, this.$int, }); - factory UserStatusClearAt_Time.fromJson(dynamic data) { - UserStatusClearAt_Time0? userStatusClearAtTime0; + factory NextcloudUserStatusClearAt_Time.fromJson(dynamic data) { + NextcloudUserStatusClearAt_Time0? userStatusClearAtTime0; int? $int; try { - userStatusClearAtTime0 = UserStatusClearAt_Time0.fromValue(data as String); + userStatusClearAtTime0 = NextcloudUserStatusClearAt_Time0.fromValue(data as String); } catch (_) {} try { $int = (data as int); } catch (_) {} assert([userStatusClearAtTime0, $int].where((final x) => x != null).length == 1, 'Need oneOf for $data'); - return UserStatusClearAt_Time( + return NextcloudUserStatusClearAt_Time( data, userStatusClearAtTime0: userStatusClearAtTime0, $int: $int, @@ -4487,12 +4587,13 @@ class UserStatusClearAt_Time { } // coverage:ignore-start - factory UserStatusClearAt_Time.fromJsonString(String data) => UserStatusClearAt_Time.fromJson(json.decode(data)); + factory NextcloudUserStatusClearAt_Time.fromJsonString(String data) => + NextcloudUserStatusClearAt_Time.fromJson(json.decode(data)); // coverage:ignore-end final dynamic _data; - final UserStatusClearAt_Time0? userStatusClearAtTime0; + final NextcloudUserStatusClearAt_Time0? userStatusClearAtTime0; /// Time offset in seconds final int? $int; @@ -4506,48 +4607,48 @@ class UserStatusClearAt_Time { } @JsonSerializable() -class UserStatusClearAt { - UserStatusClearAt({ +class NextcloudUserStatusClearAt { + NextcloudUserStatusClearAt({ required this.type, required this.time, }); // coverage:ignore-start - factory UserStatusClearAt.fromJson(Map json) => _$UserStatusClearAtFromJson(json); + factory NextcloudUserStatusClearAt.fromJson(Map json) => _$NextcloudUserStatusClearAtFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory UserStatusClearAt.fromJsonString(String data) => - UserStatusClearAt.fromJson(json.decode(data) as Map); + factory NextcloudUserStatusClearAt.fromJsonString(String data) => + NextcloudUserStatusClearAt.fromJson(json.decode(data) as Map); // coverage:ignore-end - final UserStatusClearAt_Type type; + final NextcloudUserStatusClearAt_Type type; - final UserStatusClearAt_Time time; + final NextcloudUserStatusClearAt_Time time; // coverage:ignore-start - Map toJson() => _$UserStatusClearAtToJson(this); + Map toJson() => _$NextcloudUserStatusClearAtToJson(this); // coverage:ignore-end - static String? toJsonString(UserStatusClearAt? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudUserStatusClearAt? data) => data == null ? null : json.encode(data.toJson()); } -class UserStatusPublicUserStatus_ClearAt { - UserStatusPublicUserStatus_ClearAt( +class NextcloudUserStatusPublicUserStatus_ClearAt { + NextcloudUserStatusPublicUserStatus_ClearAt( this._data, { this.userStatusClearAt, this.$int, }); - factory UserStatusPublicUserStatus_ClearAt.fromJson(dynamic data) { - UserStatusClearAt? userStatusClearAt; + factory NextcloudUserStatusPublicUserStatus_ClearAt.fromJson(dynamic data) { + NextcloudUserStatusClearAt? userStatusClearAt; int? $int; try { - userStatusClearAt = UserStatusClearAt.fromJson(data as Map); + userStatusClearAt = NextcloudUserStatusClearAt.fromJson(data as Map); } catch (_) {} try { $int = (data as int); } catch (_) {} - return UserStatusPublicUserStatus_ClearAt( + return NextcloudUserStatusPublicUserStatus_ClearAt( data, userStatusClearAt: userStatusClearAt, $int: $int, @@ -4555,13 +4656,13 @@ class UserStatusPublicUserStatus_ClearAt { } // coverage:ignore-start - factory UserStatusPublicUserStatus_ClearAt.fromJsonString(String data) => - UserStatusPublicUserStatus_ClearAt.fromJson(json.decode(data)); + factory NextcloudUserStatusPublicUserStatus_ClearAt.fromJsonString(String data) => + NextcloudUserStatusPublicUserStatus_ClearAt.fromJson(json.decode(data)); // coverage:ignore-end final dynamic _data; - final UserStatusClearAt? userStatusClearAt; + final NextcloudUserStatusClearAt? userStatusClearAt; /// Time as unix timestamp final int? $int; @@ -4574,38 +4675,38 @@ class UserStatusPublicUserStatus_ClearAt { // coverage:ignore-end } -enum UserStatusType { +enum NextcloudUserStatusType { online('online'), offline('offline'), dnd('dnd'), away('away'), invisible('invisible'); - const UserStatusType(this.value); + const NextcloudUserStatusType(this.value); final String value; - static UserStatusType fromValue(String value) { + static NextcloudUserStatusType fromValue(String value) { switch (value) { case 'online': - return UserStatusType.online; + return NextcloudUserStatusType.online; case 'offline': - return UserStatusType.offline; + return NextcloudUserStatusType.offline; case 'dnd': - return UserStatusType.dnd; + return NextcloudUserStatusType.dnd; case 'away': - return UserStatusType.away; + return NextcloudUserStatusType.away; case 'invisible': - return UserStatusType.invisible; + return NextcloudUserStatusType.invisible; default: - throw Exception('Can not parse UserStatusType from "$value"'); + throw Exception('Can not parse NextcloudUserStatusType from "$value"'); } } } @JsonSerializable() -class UserStatusPublicUserStatus { - UserStatusPublicUserStatus({ +class NextcloudUserStatusPublicUserStatus { + NextcloudUserStatusPublicUserStatus({ required this.userId, this.message, this.icon, @@ -4614,12 +4715,13 @@ class UserStatusPublicUserStatus { }); // coverage:ignore-start - factory UserStatusPublicUserStatus.fromJson(Map json) => _$UserStatusPublicUserStatusFromJson(json); + factory NextcloudUserStatusPublicUserStatus.fromJson(Map json) => + _$NextcloudUserStatusPublicUserStatusFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory UserStatusPublicUserStatus.fromJsonString(String data) => - UserStatusPublicUserStatus.fromJson(json.decode(data) as Map); + factory NextcloudUserStatusPublicUserStatus.fromJsonString(String data) => + NextcloudUserStatusPublicUserStatus.fromJson(json.decode(data) as Map); // coverage:ignore-end final String userId; @@ -4628,89 +4730,93 @@ class UserStatusPublicUserStatus { final String? icon; - final UserStatusPublicUserStatus_ClearAt clearAt; + final NextcloudUserStatusPublicUserStatus_ClearAt clearAt; - final UserStatusType status; + final NextcloudUserStatusType status; // coverage:ignore-start - Map toJson() => _$UserStatusPublicUserStatusToJson(this); + Map toJson() => _$NextcloudUserStatusPublicUserStatusToJson(this); // coverage:ignore-end - static String? toJsonString(UserStatusPublicUserStatus? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudUserStatusPublicUserStatus? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class UserStatusFindAllStatuses_Ocs { - UserStatusFindAllStatuses_Ocs({ +class NextcloudUserStatusFindAllStatuses_Ocs { + NextcloudUserStatusFindAllStatuses_Ocs({ required this.meta, required this.data, }); // coverage:ignore-start - factory UserStatusFindAllStatuses_Ocs.fromJson(Map json) => - _$UserStatusFindAllStatuses_OcsFromJson(json); + factory NextcloudUserStatusFindAllStatuses_Ocs.fromJson(Map json) => + _$NextcloudUserStatusFindAllStatuses_OcsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory UserStatusFindAllStatuses_Ocs.fromJsonString(String data) => - UserStatusFindAllStatuses_Ocs.fromJson(json.decode(data) as Map); + factory NextcloudUserStatusFindAllStatuses_Ocs.fromJsonString(String data) => + NextcloudUserStatusFindAllStatuses_Ocs.fromJson(json.decode(data) as Map); // coverage:ignore-end - final OCSMeta meta; + final NextcloudOCSMeta meta; - final List data; + final List data; // coverage:ignore-start - Map toJson() => _$UserStatusFindAllStatuses_OcsToJson(this); + Map toJson() => _$NextcloudUserStatusFindAllStatuses_OcsToJson(this); // coverage:ignore-end - static String? toJsonString(UserStatusFindAllStatuses_Ocs? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudUserStatusFindAllStatuses_Ocs? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class UserStatusFindAllStatuses { - UserStatusFindAllStatuses({required this.ocs}); +class NextcloudUserStatusFindAllStatuses { + NextcloudUserStatusFindAllStatuses({required this.ocs}); // coverage:ignore-start - factory UserStatusFindAllStatuses.fromJson(Map json) => _$UserStatusFindAllStatusesFromJson(json); + factory NextcloudUserStatusFindAllStatuses.fromJson(Map json) => + _$NextcloudUserStatusFindAllStatusesFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory UserStatusFindAllStatuses.fromJsonString(String data) => - UserStatusFindAllStatuses.fromJson(json.decode(data) as Map); + factory NextcloudUserStatusFindAllStatuses.fromJsonString(String data) => + NextcloudUserStatusFindAllStatuses.fromJson(json.decode(data) as Map); // coverage:ignore-end - final UserStatusFindAllStatuses_Ocs ocs; + final NextcloudUserStatusFindAllStatuses_Ocs ocs; // coverage:ignore-start - Map toJson() => _$UserStatusFindAllStatusesToJson(this); + Map toJson() => _$NextcloudUserStatusFindAllStatusesToJson(this); // coverage:ignore-end - static String? toJsonString(UserStatusFindAllStatuses? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudUserStatusFindAllStatuses? data) => + data == null ? null : json.encode(data.toJson()); } -class UserStatusFindStatus_Ocs_Data { - UserStatusFindStatus_Ocs_Data( +class NextcloudUserStatusFindStatus_Ocs_Data { + NextcloudUserStatusFindStatus_Ocs_Data( this._data, { this.userStatusPublicUserStatus, }); - factory UserStatusFindStatus_Ocs_Data.fromJson(dynamic data) { - UserStatusPublicUserStatus? userStatusPublicUserStatus; + factory NextcloudUserStatusFindStatus_Ocs_Data.fromJson(dynamic data) { + NextcloudUserStatusPublicUserStatus? userStatusPublicUserStatus; try { - userStatusPublicUserStatus = UserStatusPublicUserStatus.fromJson(data as Map); + userStatusPublicUserStatus = NextcloudUserStatusPublicUserStatus.fromJson(data as Map); } catch (_) {} - return UserStatusFindStatus_Ocs_Data( + return NextcloudUserStatusFindStatus_Ocs_Data( data, userStatusPublicUserStatus: userStatusPublicUserStatus, ); } // coverage:ignore-start - factory UserStatusFindStatus_Ocs_Data.fromJsonString(String data) => - UserStatusFindStatus_Ocs_Data.fromJson(json.decode(data)); + factory NextcloudUserStatusFindStatus_Ocs_Data.fromJsonString(String data) => + NextcloudUserStatusFindStatus_Ocs_Data.fromJson(json.decode(data)); // coverage:ignore-end final dynamic _data; - final UserStatusPublicUserStatus? userStatusPublicUserStatus; + final NextcloudUserStatusPublicUserStatus? userStatusPublicUserStatus; // coverage:ignore-start dynamic toJson() => _data; @@ -4721,69 +4827,72 @@ class UserStatusFindStatus_Ocs_Data { } @JsonSerializable() -class UserStatusFindStatus_Ocs { - UserStatusFindStatus_Ocs({ +class NextcloudUserStatusFindStatus_Ocs { + NextcloudUserStatusFindStatus_Ocs({ required this.meta, required this.data, }); // coverage:ignore-start - factory UserStatusFindStatus_Ocs.fromJson(Map json) => _$UserStatusFindStatus_OcsFromJson(json); + factory NextcloudUserStatusFindStatus_Ocs.fromJson(Map json) => + _$NextcloudUserStatusFindStatus_OcsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory UserStatusFindStatus_Ocs.fromJsonString(String data) => - UserStatusFindStatus_Ocs.fromJson(json.decode(data) as Map); + factory NextcloudUserStatusFindStatus_Ocs.fromJsonString(String data) => + NextcloudUserStatusFindStatus_Ocs.fromJson(json.decode(data) as Map); // coverage:ignore-end - final OCSMeta meta; + final NextcloudOCSMeta meta; - final UserStatusFindStatus_Ocs_Data data; + final NextcloudUserStatusFindStatus_Ocs_Data data; // coverage:ignore-start - Map toJson() => _$UserStatusFindStatus_OcsToJson(this); + Map toJson() => _$NextcloudUserStatusFindStatus_OcsToJson(this); // coverage:ignore-end - static String? toJsonString(UserStatusFindStatus_Ocs? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudUserStatusFindStatus_Ocs? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class UserStatusFindStatus { - UserStatusFindStatus({required this.ocs}); +class NextcloudUserStatusFindStatus { + NextcloudUserStatusFindStatus({required this.ocs}); // coverage:ignore-start - factory UserStatusFindStatus.fromJson(Map json) => _$UserStatusFindStatusFromJson(json); + factory NextcloudUserStatusFindStatus.fromJson(Map json) => + _$NextcloudUserStatusFindStatusFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory UserStatusFindStatus.fromJsonString(String data) => - UserStatusFindStatus.fromJson(json.decode(data) as Map); + factory NextcloudUserStatusFindStatus.fromJsonString(String data) => + NextcloudUserStatusFindStatus.fromJson(json.decode(data) as Map); // coverage:ignore-end - final UserStatusFindStatus_Ocs ocs; + final NextcloudUserStatusFindStatus_Ocs ocs; // coverage:ignore-start - Map toJson() => _$UserStatusFindStatusToJson(this); + Map toJson() => _$NextcloudUserStatusFindStatusToJson(this); // coverage:ignore-end - static String? toJsonString(UserStatusFindStatus? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudUserStatusFindStatus? data) => data == null ? null : json.encode(data.toJson()); } -class UserStatus_ClearAt { - UserStatus_ClearAt( +class NextcloudUserStatus_ClearAt { + NextcloudUserStatus_ClearAt( this._data, { this.userStatusClearAt, this.$int, }); - factory UserStatus_ClearAt.fromJson(dynamic data) { - UserStatusClearAt? userStatusClearAt; + factory NextcloudUserStatus_ClearAt.fromJson(dynamic data) { + NextcloudUserStatusClearAt? userStatusClearAt; int? $int; try { - userStatusClearAt = UserStatusClearAt.fromJson(data as Map); + userStatusClearAt = NextcloudUserStatusClearAt.fromJson(data as Map); } catch (_) {} try { $int = (data as int); } catch (_) {} - return UserStatus_ClearAt( + return NextcloudUserStatus_ClearAt( data, userStatusClearAt: userStatusClearAt, $int: $int, @@ -4791,12 +4900,13 @@ class UserStatus_ClearAt { } // coverage:ignore-start - factory UserStatus_ClearAt.fromJsonString(String data) => UserStatus_ClearAt.fromJson(json.decode(data)); + factory NextcloudUserStatus_ClearAt.fromJsonString(String data) => + NextcloudUserStatus_ClearAt.fromJson(json.decode(data)); // coverage:ignore-end final dynamic _data; - final UserStatusClearAt? userStatusClearAt; + final NextcloudUserStatusClearAt? userStatusClearAt; /// Time as unix timestamp final int? $int; @@ -4810,8 +4920,8 @@ class UserStatus_ClearAt { } @JsonSerializable() -class UserStatus { - UserStatus({ +class NextcloudUserStatus { + NextcloudUserStatus({ required this.userId, this.message, this.messageId, @@ -4823,11 +4933,12 @@ class UserStatus { }); // coverage:ignore-start - factory UserStatus.fromJson(Map json) => _$UserStatusFromJson(json); + factory NextcloudUserStatus.fromJson(Map json) => _$NextcloudUserStatusFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory UserStatus.fromJsonString(String data) => UserStatus.fromJson(json.decode(data) as Map); + factory NextcloudUserStatus.fromJsonString(String data) => + NextcloudUserStatus.fromJson(json.decode(data) as Map); // coverage:ignore-end final String userId; @@ -4840,43 +4951,43 @@ class UserStatus { final String? icon; - final UserStatus_ClearAt clearAt; + final NextcloudUserStatus_ClearAt clearAt; - final UserStatusType status; + final NextcloudUserStatusType status; final bool statusIsUserDefined; // coverage:ignore-start - Map toJson() => _$UserStatusToJson(this); + Map toJson() => _$NextcloudUserStatusToJson(this); // coverage:ignore-end - static String? toJsonString(UserStatus? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudUserStatus? data) => data == null ? null : json.encode(data.toJson()); } -class UserStatusGetUserStatus_Ocs_Data { - UserStatusGetUserStatus_Ocs_Data( +class NextcloudUserStatusGetUserStatus_Ocs_Data { + NextcloudUserStatusGetUserStatus_Ocs_Data( this._data, { this.userStatus, }); - factory UserStatusGetUserStatus_Ocs_Data.fromJson(dynamic data) { - UserStatus? userStatus; + factory NextcloudUserStatusGetUserStatus_Ocs_Data.fromJson(dynamic data) { + NextcloudUserStatus? userStatus; try { - userStatus = UserStatus.fromJson(data as Map); + userStatus = NextcloudUserStatus.fromJson(data as Map); } catch (_) {} - return UserStatusGetUserStatus_Ocs_Data( + return NextcloudUserStatusGetUserStatus_Ocs_Data( data, userStatus: userStatus, ); } // coverage:ignore-start - factory UserStatusGetUserStatus_Ocs_Data.fromJsonString(String data) => - UserStatusGetUserStatus_Ocs_Data.fromJson(json.decode(data)); + factory NextcloudUserStatusGetUserStatus_Ocs_Data.fromJsonString(String data) => + NextcloudUserStatusGetUserStatus_Ocs_Data.fromJson(json.decode(data)); // coverage:ignore-end final dynamic _data; - final UserStatus? userStatus; + final NextcloudUserStatus? userStatus; // coverage:ignore-start dynamic toJson() => _data; @@ -4887,70 +4998,73 @@ class UserStatusGetUserStatus_Ocs_Data { } @JsonSerializable() -class UserStatusGetUserStatus_Ocs { - UserStatusGetUserStatus_Ocs({ +class NextcloudUserStatusGetUserStatus_Ocs { + NextcloudUserStatusGetUserStatus_Ocs({ required this.meta, required this.data, }); // coverage:ignore-start - factory UserStatusGetUserStatus_Ocs.fromJson(Map json) => - _$UserStatusGetUserStatus_OcsFromJson(json); + factory NextcloudUserStatusGetUserStatus_Ocs.fromJson(Map json) => + _$NextcloudUserStatusGetUserStatus_OcsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory UserStatusGetUserStatus_Ocs.fromJsonString(String data) => - UserStatusGetUserStatus_Ocs.fromJson(json.decode(data) as Map); + factory NextcloudUserStatusGetUserStatus_Ocs.fromJsonString(String data) => + NextcloudUserStatusGetUserStatus_Ocs.fromJson(json.decode(data) as Map); // coverage:ignore-end - final OCSMeta meta; + final NextcloudOCSMeta meta; - final UserStatusGetUserStatus_Ocs_Data data; + final NextcloudUserStatusGetUserStatus_Ocs_Data data; // coverage:ignore-start - Map toJson() => _$UserStatusGetUserStatus_OcsToJson(this); + Map toJson() => _$NextcloudUserStatusGetUserStatus_OcsToJson(this); // coverage:ignore-end - static String? toJsonString(UserStatusGetUserStatus_Ocs? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudUserStatusGetUserStatus_Ocs? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class UserStatusGetUserStatus { - UserStatusGetUserStatus({required this.ocs}); +class NextcloudUserStatusGetUserStatus { + NextcloudUserStatusGetUserStatus({required this.ocs}); // coverage:ignore-start - factory UserStatusGetUserStatus.fromJson(Map json) => _$UserStatusGetUserStatusFromJson(json); + factory NextcloudUserStatusGetUserStatus.fromJson(Map json) => + _$NextcloudUserStatusGetUserStatusFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory UserStatusGetUserStatus.fromJsonString(String data) => - UserStatusGetUserStatus.fromJson(json.decode(data) as Map); + factory NextcloudUserStatusGetUserStatus.fromJsonString(String data) => + NextcloudUserStatusGetUserStatus.fromJson(json.decode(data) as Map); // coverage:ignore-end - final UserStatusGetUserStatus_Ocs ocs; + final NextcloudUserStatusGetUserStatus_Ocs ocs; // coverage:ignore-start - Map toJson() => _$UserStatusGetUserStatusToJson(this); + Map toJson() => _$NextcloudUserStatusGetUserStatusToJson(this); // coverage:ignore-end - static String? toJsonString(UserStatusGetUserStatus? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudUserStatusGetUserStatus? data) => + data == null ? null : json.encode(data.toJson()); } -class UserStatusPredefinedStatus_ClearAt { - UserStatusPredefinedStatus_ClearAt( +class NextcloudUserStatusPredefinedStatus_ClearAt { + NextcloudUserStatusPredefinedStatus_ClearAt( this._data, { this.userStatusClearAt, this.$int, }); - factory UserStatusPredefinedStatus_ClearAt.fromJson(dynamic data) { - UserStatusClearAt? userStatusClearAt; + factory NextcloudUserStatusPredefinedStatus_ClearAt.fromJson(dynamic data) { + NextcloudUserStatusClearAt? userStatusClearAt; int? $int; try { - userStatusClearAt = UserStatusClearAt.fromJson(data as Map); + userStatusClearAt = NextcloudUserStatusClearAt.fromJson(data as Map); } catch (_) {} try { $int = (data as int); } catch (_) {} - return UserStatusPredefinedStatus_ClearAt( + return NextcloudUserStatusPredefinedStatus_ClearAt( data, userStatusClearAt: userStatusClearAt, $int: $int, @@ -4958,13 +5072,13 @@ class UserStatusPredefinedStatus_ClearAt { } // coverage:ignore-start - factory UserStatusPredefinedStatus_ClearAt.fromJsonString(String data) => - UserStatusPredefinedStatus_ClearAt.fromJson(json.decode(data)); + factory NextcloudUserStatusPredefinedStatus_ClearAt.fromJsonString(String data) => + NextcloudUserStatusPredefinedStatus_ClearAt.fromJson(json.decode(data)); // coverage:ignore-end final dynamic _data; - final UserStatusClearAt? userStatusClearAt; + final NextcloudUserStatusClearAt? userStatusClearAt; /// Time as unix timestamp final int? $int; @@ -4978,8 +5092,8 @@ class UserStatusPredefinedStatus_ClearAt { } @JsonSerializable() -class UserStatusPredefinedStatus { - UserStatusPredefinedStatus({ +class NextcloudUserStatusPredefinedStatus { + NextcloudUserStatusPredefinedStatus({ required this.id, required this.icon, required this.message, @@ -4987,12 +5101,13 @@ class UserStatusPredefinedStatus { }); // coverage:ignore-start - factory UserStatusPredefinedStatus.fromJson(Map json) => _$UserStatusPredefinedStatusFromJson(json); + factory NextcloudUserStatusPredefinedStatus.fromJson(Map json) => + _$NextcloudUserStatusPredefinedStatusFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory UserStatusPredefinedStatus.fromJsonString(String data) => - UserStatusPredefinedStatus.fromJson(json.decode(data) as Map); + factory NextcloudUserStatusPredefinedStatus.fromJsonString(String data) => + NextcloudUserStatusPredefinedStatus.fromJson(json.decode(data) as Map); // coverage:ignore-end final String id; @@ -5001,67 +5116,69 @@ class UserStatusPredefinedStatus { final String message; - final UserStatusPredefinedStatus_ClearAt clearAt; + final NextcloudUserStatusPredefinedStatus_ClearAt clearAt; // coverage:ignore-start - Map toJson() => _$UserStatusPredefinedStatusToJson(this); + Map toJson() => _$NextcloudUserStatusPredefinedStatusToJson(this); // coverage:ignore-end - static String? toJsonString(UserStatusPredefinedStatus? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudUserStatusPredefinedStatus? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class UserStatusPredefinedStatuses_Ocs { - UserStatusPredefinedStatuses_Ocs({ +class NextcloudUserStatusPredefinedStatuses_Ocs { + NextcloudUserStatusPredefinedStatuses_Ocs({ required this.meta, required this.data, }); // coverage:ignore-start - factory UserStatusPredefinedStatuses_Ocs.fromJson(Map json) => - _$UserStatusPredefinedStatuses_OcsFromJson(json); + factory NextcloudUserStatusPredefinedStatuses_Ocs.fromJson(Map json) => + _$NextcloudUserStatusPredefinedStatuses_OcsFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory UserStatusPredefinedStatuses_Ocs.fromJsonString(String data) => - UserStatusPredefinedStatuses_Ocs.fromJson(json.decode(data) as Map); + factory NextcloudUserStatusPredefinedStatuses_Ocs.fromJsonString(String data) => + NextcloudUserStatusPredefinedStatuses_Ocs.fromJson(json.decode(data) as Map); // coverage:ignore-end - final OCSMeta meta; + final NextcloudOCSMeta meta; - final List data; + final List data; // coverage:ignore-start - Map toJson() => _$UserStatusPredefinedStatuses_OcsToJson(this); + Map toJson() => _$NextcloudUserStatusPredefinedStatuses_OcsToJson(this); // coverage:ignore-end - static String? toJsonString(UserStatusPredefinedStatuses_Ocs? data) => + static String? toJsonString(NextcloudUserStatusPredefinedStatuses_Ocs? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class UserStatusPredefinedStatuses { - UserStatusPredefinedStatuses({required this.ocs}); +class NextcloudUserStatusPredefinedStatuses { + NextcloudUserStatusPredefinedStatuses({required this.ocs}); // coverage:ignore-start - factory UserStatusPredefinedStatuses.fromJson(Map json) => - _$UserStatusPredefinedStatusesFromJson(json); + factory NextcloudUserStatusPredefinedStatuses.fromJson(Map json) => + _$NextcloudUserStatusPredefinedStatusesFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory UserStatusPredefinedStatuses.fromJsonString(String data) => - UserStatusPredefinedStatuses.fromJson(json.decode(data) as Map); + factory NextcloudUserStatusPredefinedStatuses.fromJsonString(String data) => + NextcloudUserStatusPredefinedStatuses.fromJson(json.decode(data) as Map); // coverage:ignore-end - final UserStatusPredefinedStatuses_Ocs ocs; + final NextcloudUserStatusPredefinedStatuses_Ocs ocs; // coverage:ignore-start - Map toJson() => _$UserStatusPredefinedStatusesToJson(this); + Map toJson() => _$NextcloudUserStatusPredefinedStatusesToJson(this); // coverage:ignore-end - static String? toJsonString(UserStatusPredefinedStatuses? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudUserStatusPredefinedStatuses? data) => + data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NotificationsPushNotificationDecryptedSubject { - NotificationsPushNotificationDecryptedSubject({ +class NextcloudNotificationsPushNotificationDecryptedSubject { + NextcloudNotificationsPushNotificationDecryptedSubject({ this.nid, this.app, this.subject, @@ -5072,13 +5189,13 @@ class NotificationsPushNotificationDecryptedSubject { }); // coverage:ignore-start - factory NotificationsPushNotificationDecryptedSubject.fromJson(Map json) => - _$NotificationsPushNotificationDecryptedSubjectFromJson(json); + factory NextcloudNotificationsPushNotificationDecryptedSubject.fromJson(Map json) => + _$NextcloudNotificationsPushNotificationDecryptedSubjectFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotificationsPushNotificationDecryptedSubject.fromJsonString(String data) => - NotificationsPushNotificationDecryptedSubject.fromJson(json.decode(data) as Map); + factory NextcloudNotificationsPushNotificationDecryptedSubject.fromJsonString(String data) => + NextcloudNotificationsPushNotificationDecryptedSubject.fromJson(json.decode(data) as Map); // coverage:ignore-end final int? nid; @@ -5097,15 +5214,15 @@ class NotificationsPushNotificationDecryptedSubject { final bool? deleteAll; // coverage:ignore-start - Map toJson() => _$NotificationsPushNotificationDecryptedSubjectToJson(this); + Map toJson() => _$NextcloudNotificationsPushNotificationDecryptedSubjectToJson(this); // coverage:ignore-end - static String? toJsonString(NotificationsPushNotificationDecryptedSubject? data) => + static String? toJsonString(NextcloudNotificationsPushNotificationDecryptedSubject? data) => data == null ? null : json.encode(data.toJson()); } @JsonSerializable() -class NotificationsPushNotification { - NotificationsPushNotification({ +class NextcloudNotificationsPushNotification { + NextcloudNotificationsPushNotification({ required this.accountID, required this.priority, required this.type, @@ -5113,13 +5230,13 @@ class NotificationsPushNotification { }); // coverage:ignore-start - factory NotificationsPushNotification.fromJson(Map json) => - _$NotificationsPushNotificationFromJson(json); + factory NextcloudNotificationsPushNotification.fromJson(Map json) => + _$NextcloudNotificationsPushNotificationFromJson(json); // coverage:ignore-end // coverage:ignore-start - factory NotificationsPushNotification.fromJsonString(String data) => - NotificationsPushNotification.fromJson(json.decode(data) as Map); + factory NextcloudNotificationsPushNotification.fromJsonString(String data) => + NextcloudNotificationsPushNotification.fromJson(json.decode(data) as Map); // coverage:ignore-end final String accountID; @@ -5128,710 +5245,800 @@ class NotificationsPushNotification { final String type; - final NotificationsPushNotificationDecryptedSubject subject; + final NextcloudNotificationsPushNotificationDecryptedSubject subject; // coverage:ignore-start - Map toJson() => _$NotificationsPushNotificationToJson(this); + Map toJson() => _$NextcloudNotificationsPushNotificationToJson(this); // coverage:ignore-end - static String? toJsonString(NotificationsPushNotification? data) => data == null ? null : json.encode(data.toJson()); + static String? toJsonString(NextcloudNotificationsPushNotification? data) => + data == null ? null : json.encode(data.toJson()); } // coverage:ignore-start final _deserializers = { - CoreServerStatus: (final data) => CoreServerStatus.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => CoreServerStatus.fromJson(e as Map)).toList(), - CoreServerCapabilities: (final data) => CoreServerCapabilities.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => CoreServerCapabilities.fromJson(e as Map)).toList(), - 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(), - 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(), - 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)) + NextcloudCoreServerStatus: (final data) => NextcloudCoreServerStatus.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudCoreServerStatus.fromJson(e as Map)).toList(), + NextcloudCoreServerCapabilities: (final data) => + NextcloudCoreServerCapabilities.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudCoreServerCapabilities.fromJson(e as Map)).toList(), + NextcloudCoreServerCapabilities_Ocs: (final data) => + NextcloudCoreServerCapabilities_Ocs.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudCoreServerCapabilities_Ocs.fromJson(e as Map)).toList(), + NextcloudOCSMeta: (final data) => NextcloudOCSMeta.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudOCSMeta.fromJson(e as Map)).toList(), + NextcloudCoreServerCapabilities_Ocs_Data: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Version: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Version.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Version.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(e as Map)) .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(data as Map), - List: (final data) => (data as List) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(data as Map), + List: (final data) => (data as List) .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(e as Map)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(e as Map)) .toList(), - 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(), - CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(data as Map), - List: (final data) => (data as List) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(data as Map), + List: (final data) => (data as List) .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(e as Map)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(e as Map)) .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(data as Map), - List: (final data) => (data as List) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(data as Map), + List: (final data) => (data as List) .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(e as Map)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(e as Map)) .toList(), - 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) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(data as Map), + List: (final data) => (data as List) .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson(e as Map)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(e as Map)) .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(e as Map)) + .toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants: (final data) => + NextcloudCoreServerCapabilities_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_Source.fromJson( + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( + data as Map), + List: (final data) => (data + as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( + e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( + data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( + e as Map)) .toList(), - 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) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(data as Map), + List: (final data) => (data as List) .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson(e as Map)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( + data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( + e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(e as Map)) .toList(), - 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) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.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(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( + data as Map), + List: (final data) => + (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( + e as Map)) + .toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(e as Map)) .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(data as Map), - List: (final data) => (data as List) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson(data as Map), + List: (final data) => (data as List) .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(e as Map)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson(e as Map)) .toList(), - 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) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(data as Map), + List: (final data) => (data as List) .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson(e as Map)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(e as Map)) .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password: (final data) => + NextcloudCoreServerCapabilities_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_ExpireDate.fromJson( - e as Map)) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( + List: (final data) => + (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( + e as Map)) + .toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( data as Map), - List: (final data) => (data + List: (final data) => (data as List) - .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( e as Map)) .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( data as Map), - List: (final data) => + List: (final data) => (data as List) - .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( - e as Map)) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.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) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( + data as Map), + List: (final data) => + (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( + e as Map)) + .toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User: (final data) => + NextcloudCoreServerCapabilities_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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(e as Map)) .toList(), - 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) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( + data as Map), + List: (final data) => + (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( + e as Map)) + .toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson(data as Map), + List: (final data) => (data as List) .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson(e as Map)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( + data as Map), + List: (final data) => (data + as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( + e as Map)) .toList(), - 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( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( + data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( e as Map)) .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson(data as Map), - List: (final data) => (data as List) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( + data as Map), + List: (final data) => + (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( + e as Map)) + .toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( + data as Map), + List: + (final data) => (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported + .fromJson(e as Map)) + .toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson(data as Map), + List: (final data) => (data as List) .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson(e as Map)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson(e as Map)) .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( data as Map), - List: (final data) => (data as List) - .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( e as Map)) .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( data as Map), - List: (final data) => + List: (final data) => (data as List) .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( e as Map)) .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson(data as Map), - List: (final data) => (data as List) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( + data as Map), + List: (final data) => + (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( + e as Map)) + .toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( + data as Map), + List: (final data) => + (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( + e as Map)) + .toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(e as Map)) + .toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson(data as Map), + List: (final data) => (data as List) .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson(e as Map)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson(e as Map)) .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail: (final data) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson(data as Map), - List: (final data) => (data as List) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson(data as Map), + List: (final data) => (data as List) .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson(e as Map)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson(e as Map)) .toList(), - 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) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( - e as Map)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreNavigationApps: (final data) => NextcloudCoreNavigationApps.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudCoreNavigationApps.fromJson(e as Map)).toList(), + NextcloudCoreNavigationApps_Ocs: (final data) => + NextcloudCoreNavigationApps_Ocs.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudCoreNavigationApps_Ocs.fromJson(e as Map)).toList(), + NextcloudCoreNavigationApps_Ocs_Data: (final data) => + NextcloudCoreNavigationApps_Ocs_Data.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreNavigationApps_Ocs_Data.fromJson(e as Map)) .toList(), - 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)) + NextcloudCoreLoginFlowInit: (final data) => NextcloudCoreLoginFlowInit.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudCoreLoginFlowInit.fromJson(e as Map)).toList(), + NextcloudCoreLoginFlowInit_Poll: (final data) => + NextcloudCoreLoginFlowInit_Poll.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudCoreLoginFlowInit_Poll.fromJson(e as Map)).toList(), + NextcloudCoreLoginFlowResult: (final data) => NextcloudCoreLoginFlowResult.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudCoreLoginFlowResult.fromJson(e as Map)).toList(), + NextcloudCoreAutocompleteResult: (final data) => + NextcloudCoreAutocompleteResult.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudCoreAutocompleteResult.fromJson(e as Map)).toList(), + NextcloudCoreAutocompleteResult_Ocs: (final data) => + NextcloudCoreAutocompleteResult_Ocs.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudCoreAutocompleteResult_Ocs.fromJson(e as Map)).toList(), + NextcloudCoreAutocompleteResult_Ocs_Data: (final data) => + NextcloudCoreAutocompleteResult_Ocs_Data.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudCoreAutocompleteResult_Ocs_Data.fromJson(e as Map)) .toList(), - 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)) + NextcloudNewsSupportedAPIVersions: (final data) => + NextcloudNewsSupportedAPIVersions.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudNewsSupportedAPIVersions.fromJson(e as Map)).toList(), + NextcloudNewsListFolders: (final data) => NextcloudNewsListFolders.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudNewsListFolders.fromJson(e as Map)).toList(), + NextcloudNewsFolder: (final data) => NextcloudNewsFolder.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudNewsFolder.fromJson(e as Map)).toList(), + NextcloudNewsFeed: (final data) => NextcloudNewsFeed.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudNewsFeed.fromJson(e as Map)).toList(), + NextcloudNewsArticle: (final data) => NextcloudNewsArticle.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudNewsArticle.fromJson(e as Map)).toList(), + NextcloudNewsListFeeds: (final data) => NextcloudNewsListFeeds.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudNewsListFeeds.fromJson(e as Map)).toList(), + NextcloudNewsListArticles: (final data) => NextcloudNewsListArticles.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudNewsListArticles.fromJson(e as Map)).toList(), + NextcloudNotesNote: (final data) => NextcloudNotesNote.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudNotesNote.fromJson(e as Map)).toList(), + NextcloudNotesSettings: (final data) => NextcloudNotesSettings.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudNotesSettings.fromJson(e as Map)).toList(), + NextcloudNotificationsListNotifications: (final data) => + NextcloudNotificationsListNotifications.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudNotificationsListNotifications.fromJson(e as Map)) .toList(), - 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)) + NextcloudNotificationsListNotifications_Ocs: (final data) => + NextcloudNotificationsListNotifications_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudNotificationsListNotifications_Ocs.fromJson(e as Map)) .toList(), - 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)) + NextcloudNotificationsNotification: (final data) => + NextcloudNotificationsNotification.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudNotificationsNotification.fromJson(e as Map)).toList(), + NextcloudNotificationsNotificationAction: (final data) => + NextcloudNotificationsNotificationAction.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudNotificationsNotificationAction.fromJson(e as Map)) .toList(), - 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)) + NextcloudNotificationsGetNotification: (final data) => + NextcloudNotificationsGetNotification.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudNotificationsGetNotification.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(), - 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(), - 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(), - 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).map((final e) => CoreLoginFlowResult.fromJson(e as Map)).toList(), - CoreAutocompleteResult: (final data) => CoreAutocompleteResult.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => CoreAutocompleteResult.fromJson(e as Map)).toList(), - CoreAutocompleteResult_Ocs: (final data) => CoreAutocompleteResult_Ocs.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => CoreAutocompleteResult_Ocs.fromJson(e as Map)).toList(), - CoreAutocompleteResult_Ocs_Data: (final data) => - CoreAutocompleteResult_Ocs_Data.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => CoreAutocompleteResult_Ocs_Data.fromJson(e as Map)).toList(), - NewsSupportedAPIVersions: (final data) => NewsSupportedAPIVersions.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NewsSupportedAPIVersions.fromJson(e as Map)).toList(), - NewsListFolders: (final data) => NewsListFolders.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NewsListFolders.fromJson(e as Map)).toList(), - NewsFolder: (final data) => NewsFolder.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NewsFolder.fromJson(e as Map)).toList(), - NewsFeed: (final data) => NewsFeed.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NewsFeed.fromJson(e as Map)).toList(), - NewsArticle: (final data) => NewsArticle.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NewsArticle.fromJson(e as Map)).toList(), - NewsListFeeds: (final data) => NewsListFeeds.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NewsListFeeds.fromJson(e as Map)).toList(), - NewsListArticles: (final data) => NewsListArticles.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NewsListArticles.fromJson(e as Map)).toList(), - NotesNote: (final data) => NotesNote.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NotesNote.fromJson(e as Map)).toList(), - NotesSettings: (final data) => NotesSettings.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NotesSettings.fromJson(e as Map)).toList(), - NotificationsListNotifications: (final data) => NotificationsListNotifications.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NotificationsListNotifications.fromJson(e as Map)).toList(), - 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).map((final e) => NotificationsNotification.fromJson(e as Map)).toList(), - NotificationsNotificationAction: (final data) => - NotificationsNotificationAction.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NotificationsNotificationAction.fromJson(e as Map)).toList(), - NotificationsGetNotification: (final data) => NotificationsGetNotification.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NotificationsGetNotification.fromJson(e as Map)).toList(), - 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(), - EmptyOCS: (final data) => EmptyOCS.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => EmptyOCS.fromJson(e as Map)).toList(), - EmptyOCS_Ocs: (final data) => EmptyOCS_Ocs.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => EmptyOCS_Ocs.fromJson(e as Map)).toList(), - NotificationsPushServerRegistration: (final data) => - NotificationsPushServerRegistration.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NotificationsPushServerRegistration.fromJson(e as Map)).toList(), - 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)) + NextcloudNotificationsGetNotification_Ocs: (final data) => + NextcloudNotificationsGetNotification_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudNotificationsGetNotification_Ocs.fromJson(e as Map)) .toList(), - NotificationsPushServerSubscription: (final data) => - NotificationsPushServerSubscription.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NotificationsPushServerSubscription.fromJson(e as Map)).toList(), - ProvisioningApiUser: (final data) => ProvisioningApiUser.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => ProvisioningApiUser.fromJson(e as Map)).toList(), - 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(), - 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(), - 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)) + NextcloudEmptyOCS: (final data) => NextcloudEmptyOCS.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudEmptyOCS.fromJson(e as Map)).toList(), + NextcloudEmptyOCS_Ocs: (final data) => NextcloudEmptyOCS_Ocs.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudEmptyOCS_Ocs.fromJson(e as Map)).toList(), + NextcloudNotificationsPushServerRegistration: (final data) => + NextcloudNotificationsPushServerRegistration.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudNotificationsPushServerRegistration.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(), - 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).map((final e) => UserStatusPublicUserStatus.fromJson(e as Map)).toList(), - UserStatusClearAt: (final data) => UserStatusClearAt.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => UserStatusClearAt.fromJson(e as Map)).toList(), - UserStatusFindStatus: (final data) => UserStatusFindStatus.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => UserStatusFindStatus.fromJson(e as Map)).toList(), - 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(), - 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) => - (data as List).map((final e) => UserStatus.fromJson(e as Map)).toList(), - UserStatusPredefinedStatuses: (final data) => UserStatusPredefinedStatuses.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => UserStatusPredefinedStatuses.fromJson(e as Map)).toList(), - 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).map((final e) => UserStatusPredefinedStatus.fromJson(e as Map)).toList(), - NotificationsPushNotification: (final data) => NotificationsPushNotification.fromJson(data as Map), - List: (final data) => - (data as List).map((final e) => NotificationsPushNotification.fromJson(e as Map)).toList(), - NotificationsPushNotificationDecryptedSubject: (final data) => - NotificationsPushNotificationDecryptedSubject.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => NotificationsPushNotificationDecryptedSubject.fromJson(e as Map)) + NextcloudNotificationsPushServerRegistration_Ocs: (final data) => + NextcloudNotificationsPushServerRegistration_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudNotificationsPushServerRegistration_Ocs.fromJson(e as Map)) + .toList(), + NextcloudNotificationsPushServerSubscription: (final data) => + NextcloudNotificationsPushServerSubscription.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudNotificationsPushServerSubscription.fromJson(e as Map)) + .toList(), + NextcloudProvisioningApiUser: (final data) => NextcloudProvisioningApiUser.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudProvisioningApiUser.fromJson(e as Map)).toList(), + NextcloudProvisioningApiUser_Ocs: (final data) => + NextcloudProvisioningApiUser_Ocs.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudProvisioningApiUser_Ocs.fromJson(e as Map)).toList(), + NextcloudProvisioningApiUserDetails: (final data) => + NextcloudProvisioningApiUserDetails.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudProvisioningApiUserDetails.fromJson(e as Map)).toList(), + NextcloudProvisioningApiUserDetails_Quota: (final data) => + NextcloudProvisioningApiUserDetails_Quota.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudProvisioningApiUserDetails_Quota.fromJson(e as Map)) + .toList(), + NextcloudProvisioningApiUserDetails_BackendCapabilities: (final data) => + NextcloudProvisioningApiUserDetails_BackendCapabilities.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudProvisioningApiUserDetails_BackendCapabilities.fromJson(e as Map)) + .toList(), + NextcloudUserStatusFindAllStatuses: (final data) => + NextcloudUserStatusFindAllStatuses.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudUserStatusFindAllStatuses.fromJson(e as Map)).toList(), + NextcloudUserStatusFindAllStatuses_Ocs: (final data) => + NextcloudUserStatusFindAllStatuses_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudUserStatusFindAllStatuses_Ocs.fromJson(e as Map)) + .toList(), + NextcloudUserStatusPublicUserStatus: (final data) => + NextcloudUserStatusPublicUserStatus.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudUserStatusPublicUserStatus.fromJson(e as Map)).toList(), + NextcloudUserStatusClearAt: (final data) => NextcloudUserStatusClearAt.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudUserStatusClearAt.fromJson(e as Map)).toList(), + NextcloudUserStatusFindStatus: (final data) => NextcloudUserStatusFindStatus.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudUserStatusFindStatus.fromJson(e as Map)).toList(), + NextcloudUserStatusFindStatus_Ocs: (final data) => + NextcloudUserStatusFindStatus_Ocs.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudUserStatusFindStatus_Ocs.fromJson(e as Map)).toList(), + NextcloudUserStatusGetUserStatus: (final data) => + NextcloudUserStatusGetUserStatus.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudUserStatusGetUserStatus.fromJson(e as Map)).toList(), + NextcloudUserStatusGetUserStatus_Ocs: (final data) => + NextcloudUserStatusGetUserStatus_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudUserStatusGetUserStatus_Ocs.fromJson(e as Map)) + .toList(), + NextcloudUserStatus: (final data) => NextcloudUserStatus.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudUserStatus.fromJson(e as Map)).toList(), + NextcloudUserStatusPredefinedStatuses: (final data) => + NextcloudUserStatusPredefinedStatuses.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudUserStatusPredefinedStatuses.fromJson(e as Map)) + .toList(), + NextcloudUserStatusPredefinedStatuses_Ocs: (final data) => + NextcloudUserStatusPredefinedStatuses_Ocs.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudUserStatusPredefinedStatuses_Ocs.fromJson(e as Map)) + .toList(), + NextcloudUserStatusPredefinedStatus: (final data) => + NextcloudUserStatusPredefinedStatus.fromJson(data as Map), + List: (final data) => + (data as List).map((final e) => NextcloudUserStatusPredefinedStatus.fromJson(e as Map)).toList(), + NextcloudNotificationsPushNotification: (final data) => + NextcloudNotificationsPushNotification.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudNotificationsPushNotification.fromJson(e as Map)) + .toList(), + NextcloudNotificationsPushNotificationDecryptedSubject: (final data) => + NextcloudNotificationsPushNotificationDecryptedSubject.fromJson(data as Map), + List: (final data) => (data as List) + .map((final e) => NextcloudNotificationsPushNotificationDecryptedSubject.fromJson(e as Map)) .toList(), }; final _serializers = { - CoreServerStatus: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - OCSMeta: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Version: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Core: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerStatus: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities_Ocs: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudOCSMeta: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities_Ocs_Data: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Version: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities: (final data) => data.toJson(), + List: (final data) => + data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core: (final data) => data.toJson(), + List: (final data) => + data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Files: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Activity: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Dav: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal: (final data) => + data.toJson(), + List: (final data) => + data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote: (final data) => + data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate: (final data) => data.toJson(), + List: (final data) => + data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation: (final data) => data.toJson(), + List: (final data) => + data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate: (final data) => + data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported: (final data) => data.toJson(), - List: (final data) => + List: + (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop: (final data) => + data.toJson(), + List: (final data) => + data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password: (final data) => + data.toJson(), + List: (final data) => + data.map((final e) => e.toJson()).toList(), + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate: (final data) => + data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Notes: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Notifications: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Theming: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus: (final data) => data.toJson(), - List: (final data) => + NextcloudCoreNavigationApps: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreNavigationApps_Ocs: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreNavigationApps_Ocs_Data: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreLoginFlowInit: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreLoginFlowInit_Poll: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreLoginFlowResult: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreAutocompleteResult: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreAutocompleteResult_Ocs: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudCoreAutocompleteResult_Ocs_Data: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNewsSupportedAPIVersions: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNewsListFolders: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNewsFolder: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNewsFeed: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNewsArticle: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNewsListFeeds: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNewsListArticles: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotesNote: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotesSettings: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotificationsListNotifications: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotificationsListNotifications_Ocs: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotificationsNotification: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotificationsNotificationAction: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotificationsGetNotification: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotificationsGetNotification_Ocs: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudEmptyOCS: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudEmptyOCS_Ocs: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotificationsPushServerRegistration: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotificationsPushServerRegistration_Ocs: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotificationsPushServerSubscription: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudProvisioningApiUser: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudProvisioningApiUser_Ocs: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudProvisioningApiUserDetails: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudProvisioningApiUserDetails_Quota: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudProvisioningApiUserDetails_BackendCapabilities: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus: (final data) => data.toJson(), - List: (final data) => + NextcloudUserStatusFindAllStatuses: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudUserStatusFindAllStatuses_Ocs: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudUserStatusPublicUserStatus: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudUserStatusClearAt: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudUserStatusFindStatus: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudUserStatusFindStatus_Ocs: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudUserStatusGetUserStatus: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudUserStatusGetUserStatus_Ocs: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudUserStatus: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudUserStatusPredefinedStatuses: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudUserStatusPredefinedStatuses_Ocs: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudUserStatusPredefinedStatus: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotificationsPushNotification: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), + NextcloudNotificationsPushNotificationDecryptedSubject: (final data) => data.toJson(), + List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreNavigationApps: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreNavigationApps_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreNavigationApps_Ocs_Data: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreLoginFlowInit: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreLoginFlowInit_Poll: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreLoginFlowResult: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreAutocompleteResult: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreAutocompleteResult_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - CoreAutocompleteResult_Ocs_Data: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NewsSupportedAPIVersions: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NewsListFolders: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NewsFolder: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NewsFeed: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NewsArticle: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NewsListFeeds: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NewsListArticles: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotesNote: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotesSettings: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotificationsListNotifications: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotificationsListNotifications_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotificationsNotification: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotificationsNotificationAction: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotificationsGetNotification: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotificationsGetNotification_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - EmptyOCS: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - EmptyOCS_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotificationsPushServerRegistration: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotificationsPushServerRegistration_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotificationsPushServerSubscription: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - ProvisioningApiUser: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - ProvisioningApiUser_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - ProvisioningApiUserDetails: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - ProvisioningApiUserDetails_Quota: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - ProvisioningApiUserDetails_BackendCapabilities: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - UserStatusFindAllStatuses: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - UserStatusFindAllStatuses_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - UserStatusPublicUserStatus: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - UserStatusClearAt: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - UserStatusFindStatus: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - UserStatusFindStatus_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - UserStatusGetUserStatus: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - UserStatusGetUserStatus_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - UserStatus: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - UserStatusPredefinedStatuses: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - UserStatusPredefinedStatuses_Ocs: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - UserStatusPredefinedStatus: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotificationsPushNotification: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), - NotificationsPushNotificationDecryptedSubject: (final data) => data.toJson(), - List: (final data) => data.map((final e) => e.toJson()).toList(), }; T deserialize(final dynamic data) => _deserializers[T]!(data) as T; diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.g.dart b/packages/nextcloud/lib/src/nextcloud.openapi.g.dart index 941a3f3d..04b8b438 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.g.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.g.dart @@ -6,7 +6,7 @@ part of 'nextcloud.openapi.dart'; // JsonSerializableGenerator // ************************************************************************** -CoreServerStatus _$CoreServerStatusFromJson(Map json) { +NextcloudCoreServerStatus _$NextcloudCoreServerStatusFromJson(Map json) { $checkKeys( json, allowedKeys: const [ @@ -20,7 +20,7 @@ CoreServerStatus _$CoreServerStatusFromJson(Map json) { 'extendedSupport' ], ); - return CoreServerStatus( + return NextcloudCoreServerStatus( installed: json['installed'] as bool, maintenance: json['maintenance'] as bool, needsDbUpgrade: json['needsDbUpgrade'] as bool, @@ -32,7 +32,7 @@ CoreServerStatus _$CoreServerStatusFromJson(Map json) { ); } -Map _$CoreServerStatusToJson(CoreServerStatus instance) => { +Map _$NextcloudCoreServerStatusToJson(NextcloudCoreServerStatus instance) => { 'installed': instance.installed, 'maintenance': instance.maintenance, 'needsDbUpgrade': instance.needsDbUpgrade, @@ -43,12 +43,12 @@ Map _$CoreServerStatusToJson(CoreServerStatus instance) => json) { +NextcloudOCSMeta _$NextcloudOCSMetaFromJson(Map json) { $checkKeys( json, allowedKeys: const ['status', 'statuscode', 'message', 'totalitems', 'itemsperpage'], ); - return OCSMeta( + return NextcloudOCSMeta( status: json['status'] as String, statuscode: json['statuscode'] as int, message: json['message'] as String?, @@ -57,7 +57,7 @@ OCSMeta _$OCSMetaFromJson(Map json) { ); } -Map _$OCSMetaToJson(OCSMeta instance) => { +Map _$NextcloudOCSMetaToJson(NextcloudOCSMeta instance) => { 'status': instance.status, 'statuscode': instance.statuscode, 'message': instance.message, @@ -65,12 +65,13 @@ Map _$OCSMetaToJson(OCSMeta instance) => { 'itemsperpage': instance.itemsperpage, }; -CoreServerCapabilities_Ocs_Data_Version _$CoreServerCapabilities_Ocs_Data_VersionFromJson(Map json) { +NextcloudCoreServerCapabilities_Ocs_Data_Version _$NextcloudCoreServerCapabilities_Ocs_Data_VersionFromJson( + Map json) { $checkKeys( json, allowedKeys: const ['major', 'minor', 'micro', 'string', 'edition', 'extendedSupport'], ); - return CoreServerCapabilities_Ocs_Data_Version( + return NextcloudCoreServerCapabilities_Ocs_Data_Version( major: json['major'] as int?, minor: json['minor'] as int?, micro: json['micro'] as int?, @@ -80,8 +81,8 @@ CoreServerCapabilities_Ocs_Data_Version _$CoreServerCapabilities_Ocs_Data_Versio ); } -Map _$CoreServerCapabilities_Ocs_Data_VersionToJson( - CoreServerCapabilities_Ocs_Data_Version instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_VersionToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Version instance) => { 'major': instance.major, 'minor': instance.minor, @@ -91,17 +92,17 @@ Map _$CoreServerCapabilities_Ocs_Data_VersionToJson( 'extendedSupport': instance.extendedSupport, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Core _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreFromJson( - Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Core( - pollinterval: json['pollinterval'] as int?, - webdavRoot: json['webdav-root'] as String?, - referenceApi: json['reference-api'] as bool?, - referenceRegex: json['reference-regex'] as String?, - ); +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core( + pollinterval: json['pollinterval'] as int?, + webdavRoot: json['webdav-root'] as String?, + referenceApi: json['reference-api'] as bool?, + referenceRegex: json['reference-regex'] as String?, + ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Core instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core instance) => { 'pollinterval': instance.pollinterval, 'webdav-root': instance.webdavRoot, @@ -109,62 +110,62 @@ Map _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson( 'reference-regex': instance.referenceRegex, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce - _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce( delay: json['delay'] as int?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_BruteforceToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce instance) => { 'delay': instance.delay, }; -CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable - _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable( size: (json['size'] as List?)?.map((e) => e as String).toList(), gps: (json['gps'] as List?)?.map((e) => e as String).toList(), ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable instance) => { 'size': instance.size, 'gps': instance.gps, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing - _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing( url: json['url'] as String?, etag: json['etag'] as String?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing instance) => { 'url': instance.url, 'etag': instance.etag, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Files _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesFromJson( - Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Files( - bigfilechunking: json['bigfilechunking'] as bool?, - blacklistedFiles: (json['blacklisted_files'] as List?)?.map((e) => e as String).toList(), - directEditing: json['directEditing'] == null - ? null - : 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?, - ); +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files( + bigfilechunking: json['bigfilechunking'] as bool?, + blacklistedFiles: (json['blacklisted_files'] as List?)?.map((e) => e as String).toList(), + directEditing: json['directEditing'] == null + ? null + : NextcloudCoreServerCapabilities_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) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files instance) => { 'bigfilechunking': instance.bigfilechunking, 'blacklisted_files': instance.blacklistedFiles, @@ -174,41 +175,41 @@ Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson( 'versioning': instance.versioning, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Activity _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityFromJson( - Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Activity( - apiv2: (json['apiv2'] as List?)?.map((e) => e as String).toList(), - ); +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity( + apiv2: (json['apiv2'] as List?)?.map((e) => e as String).toList(), + ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Activity instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity instance) => { 'apiv2': instance.apiv2, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status( globalScale: json['globalScale'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status instance) => { 'globalScale': instance.globalScale, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(Map json) => + NextcloudCoreServerCapabilities_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 _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings instance) => { 'frontendEnabled': instance.frontendEnabled, 'allowedCircles': instance.allowedCircles, @@ -216,124 +217,127 @@ Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Sett 'membersLimit': instance.membersLimit, }; -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( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceFromJson( + Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source( core: json['core'], extra: json['extra'], ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source instance) => { 'core': instance.core, 'extra': instance.extra, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsFromJson( + Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants( flags: json['flags'], source: json['source'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( json['source'] as Map), ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants instance) => { 'flags': instance.flags, 'source': instance.source?.toJson(), }; -CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(Map json) => + NextcloudCoreServerCapabilities_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 _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config instance) => { 'coreFlags': instance.coreFlags, 'systemFlags': instance.systemFlags, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle( constants: json['constants'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( json['constants'] as Map), config: json['config'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( json['config'] as Map), ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle instance) => { 'constants': instance.constants?.toJson(), 'config': instance.config?.toJson(), }; -CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsFromJson( + Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants( level: json['level'], ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants instance) => { 'level': instance.level, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member - _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member( constants: json['constants'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( json['constants'] as Map), type: json['type'], ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member instance) => { 'constants': instance.constants?.toJson(), 'type': instance.type, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Circles _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson( - Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles( - version: json['version'] as String?, - status: json['status'] == null - ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson( - json['status'] as Map), - settings: json['settings'] == null - ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson( - json['settings'] as Map), - circle: json['circle'] == null - ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson( - json['circle'] as Map), - member: json['member'] == null - ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson( - json['member'] as Map), - ); +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles( + version: json['version'] as String?, + status: json['status'] == null + ? null + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson( + json['status'] as Map), + settings: json['settings'] == null + ? null + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson( + json['settings'] as Map), + circle: json['circle'] == null + ? null + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson( + json['circle'] as Map), + member: json['member'] == null + ? null + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson( + json['member'] as Map), + ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Circles instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles instance) => { 'version': instance.version, 'status': instance.status?.toJson(), @@ -342,51 +346,52 @@ Map _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJso 'member': instance.member?.toJson(), }; -CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols - _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson( + Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols( webdav: json['webdav'] as String?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols instance) => { 'webdav': instance.webdav, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes - _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes( name: json['name'] as String?, shareTypes: (json['shareTypes'] as List?)?.map((e) => e as String).toList(), protocols: json['protocols'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( json['protocols'] as Map), ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes instance) => { 'name': instance.name, 'shareTypes': instance.shareTypes, 'protocols': instance.protocols?.toJson(), }; -CoreServerCapabilities_Ocs_Data_Capabilities_Ocm _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson( - Map json) => - 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(), - ); +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson(Map json) => + NextcloudCoreServerCapabilities_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) => NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson( + e as Map)) + .toList(), + ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm instance) => { 'enabled': instance.enabled, 'apiVersion': instance.apiVersion, @@ -394,100 +399,103 @@ Map _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson( 'resourceTypes': instance.resourceTypes?.map((e) => e.toJson()).toList(), }; -CoreServerCapabilities_Ocs_Data_Capabilities_Dav _$CoreServerCapabilities_Ocs_Data_Capabilities_DavFromJson( - Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Dav( - bulkupload: json['bulkupload'] as String?, - chunking: json['chunking'] as String?, - ); +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav( + bulkupload: json['bulkupload'] as String?, + chunking: json['chunking'] as String?, + ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_DavToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Dav instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_DavToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav instance) => { 'bulkupload': instance.bulkupload, 'chunking': instance.chunking, }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson( + Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password( enforced: json['enforced'] as bool?, askForOptionalPassword: json['askForOptionalPassword'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password instance) => { 'enforced': instance.enforced, 'askForOptionalPassword': instance.askForOptionalPassword, }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson( + Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate( enabled: json['enabled'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalFromJson( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalFromJson( Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal( enabled: json['enabled'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal instance) => - { - 'enabled': instance.enabled, - }; +Map + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal instance) => + { + 'enabled': instance.enabled, + }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteFromJson( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteFromJson( Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote( enabled: json['enabled'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public( enabled: json['enabled'] as bool?, password: json['password'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( json['password'] as Map), expireDate: json['expire_date'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( json['expire_date'] as Map), multipleLinks: json['multiple_links'] as bool?, expireDateInternal: json['expire_date_internal'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( json['expire_date_internal'] as Map), expireDateRemote: json['expire_date_remote'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( + : NextcloudCoreServerCapabilities_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 _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public instance) => { 'enabled': instance.enabled, 'password': instance.password?.toJson(), @@ -500,107 +508,111 @@ Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing 'upload_files_drop': instance.uploadFilesDrop, }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson( + Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate( enabled: json['enabled'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User( sendMail: json['send_mail'] as bool?, expireDate: json['expire_date'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( json['expire_date'] as Map), ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User instance) => { 'send_mail': instance.sendMail, 'expire_date': instance.expireDate?.toJson(), }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson( + Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate( enabled: json['enabled'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group( enabled: json['enabled'] as bool?, expireDate: json['expire_date'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( json['expire_date'] as Map), ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group instance) => { 'enabled': instance.enabled, 'expire_date': instance.expireDate?.toJson(), }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson( Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate( enabled: json['enabled'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedFromJson( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedFromJson( Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported( enabled: json['enabled'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson( + Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation( outgoing: json['outgoing'] as bool?, incoming: json['incoming'] as bool?, expireDate: json['expire_date'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( json['expire_date'] as Map), expireDateSupported: json['expire_date_supported'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( - json['expire_date_supported'] as Map), + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported + .fromJson(json['expire_date_supported'] as Map), ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation instance) => { 'outgoing': instance.outgoing, 'incoming': instance.incoming, @@ -608,84 +620,86 @@ Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing 'expire_date_supported': instance.expireDateSupported?.toJson(), }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee( queryLookupDefault: json['query_lookup_default'] as bool?, alwaysShowUnique: json['always_show_unique'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee instance) => { 'query_lookup_default': instance.queryLookupDefault, 'always_show_unique': instance.alwaysShowUnique, }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropFromJson( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropFromJson( Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop( enabled: json['enabled'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop instance) => - { - 'enabled': instance.enabled, - }; +Map + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop instance) => + { + 'enabled': instance.enabled, + }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordFromJson( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordFromJson( Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password( enabled: json['enabled'] as bool?, enforced: json['enforced'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password instance) => { 'enabled': instance.enabled, 'enforced': instance.enforced, }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateFromJson( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateFromJson( Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate( enabled: json['enabled'] as bool?, enforced: json['enforced'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate instance) => { 'enabled': instance.enabled, 'enforced': instance.enforced, }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson( + Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail( enabled: json['enabled'] as bool?, sendPasswordByMail: json['send_password_by_mail'] as bool?, uploadFilesDrop: json['upload_files_drop'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( json['upload_files_drop'] as Map), password: json['password'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( json['password'] as Map), expireDate: json['expire_date'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( json['expire_date'] as Map), ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail instance) => { 'enabled': instance.enabled, 'send_password_by_mail': instance.sendPasswordByMail, @@ -694,41 +708,41 @@ Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing 'expire_date': instance.expireDate?.toJson(), }; -CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing - _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing( apiEnabled: json['api_enabled'] as bool?, public: json['public'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson( json['public'] as Map), resharing: json['resharing'] as bool?, user: json['user'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson( json['user'] as Map), groupSharing: json['group_sharing'] as bool?, group: json['group'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson( json['group'] as Map), defaultPermissions: json['default_permissions'] as int?, federation: json['federation'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( json['federation'] as Map), sharee: json['sharee'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( json['sharee'] as Map), sharebymail: json['sharebymail'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( json['sharebymail'] as Map), ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing instance) => { 'api_enabled': instance.apiEnabled, 'public': instance.public?.toJson(), @@ -742,53 +756,53 @@ Map _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing 'sharebymail': instance.sharebymail?.toJson(), }; -CoreServerCapabilities_Ocs_Data_Capabilities_Notes _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson( - Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Notes( - apiVersion: (json['api_version'] as List?)?.map((e) => e as String).toList(), - version: json['version'] as String?, - ); +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes( + apiVersion: (json['api_version'] as List?)?.map((e) => e as String).toList(), + version: json['version'] as String?, + ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Notes instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes instance) => { 'api_version': instance.apiVersion, 'version': instance.version, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Notifications - _$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_Notifications( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(Map json) => + NextcloudCoreServerCapabilities_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 _$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_Notifications instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_NotificationsToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications instance) => { 'ocs-endpoints': instance.ocsEndpoints, 'push': instance.push, 'admin-notifications': instance.adminNotifications, }; -CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api - _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api( generate: json['generate'] as String?, validate: json['validate'] as String?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api instance) => { 'generate': instance.generate, 'validate': instance.validate, }; -CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy - _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy( minLength: json['minLength'] as int?, enforceNonCommonPassword: json['enforceNonCommonPassword'] as bool?, enforceNumericCharacters: json['enforceNumericCharacters'] as bool?, @@ -796,12 +810,12 @@ CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy enforceUpperLowerCase: json['enforceUpperLowerCase'] as bool?, api: json['api'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson( json['api'] as Map), ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy instance) => { 'minLength': instance.minLength, 'enforceNonCommonPassword': instance.enforceNonCommonPassword, @@ -811,17 +825,17 @@ Map _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPoli 'api': instance.api?.toJson(), }; -CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi - _$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(Map json) => + NextcloudCoreServerCapabilities_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 _$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi instance) => { 'version': instance.version, 'AccountPropertyScopesVersion': instance.accountPropertyScopesVersion, @@ -829,27 +843,27 @@ Map _$CoreServerCapabilities_Ocs_Data_Capabilities_Provisioning 'AccountPropertyScopesPublishedEnabled': instance.accountPropertyScopesPublishedEnabled, }; -CoreServerCapabilities_Ocs_Data_Capabilities_Theming _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingFromJson( - Map json) => - 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?, - ); +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingFromJson(Map json) => + NextcloudCoreServerCapabilities_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) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming instance) => { 'name': instance.name, 'url': instance.url, @@ -867,100 +881,103 @@ Map _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJso 'favicon': instance.favicon, }; -CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus - _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(Map json) => + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus( enabled: json['enabled'] as bool?, supportsEmoji: json['supports_emoji'] as bool?, ); -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus instance) => { 'enabled': instance.enabled, 'supports_emoji': instance.supportsEmoji, }; -CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus - _$CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusFromJson(Map json) { +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus + _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusFromJson(Map json) { $checkKeys( json, allowedKeys: const ['enabled'], ); - return CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus( + return NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus( enabled: json['enabled'] as bool?, ); } -Map _$CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusToJson( - CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatusToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus instance) => { 'enabled': instance.enabled, }; -CoreServerCapabilities_Ocs_Data_Capabilities _$CoreServerCapabilities_Ocs_Data_CapabilitiesFromJson( +NextcloudCoreServerCapabilities_Ocs_Data_Capabilities _$NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesFromJson( Map json) => - CoreServerCapabilities_Ocs_Data_Capabilities( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities( core: json['core'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json['core'] as Map), + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json['core'] as Map), bruteforce: json['bruteforce'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson( json['bruteforce'] as Map), metadataAvailable: json['metadataAvailable'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson( json['metadataAvailable'] as Map), files: json['files'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(json['files'] as Map), + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(json['files'] as Map), activity: json['activity'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(json['activity'] as Map), + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson( + json['activity'] as Map), circles: json['circles'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(json['circles'] as Map), + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson( + json['circles'] as Map), ocm: json['ocm'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(json['ocm'] as Map), + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(json['ocm'] as Map), dav: json['dav'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(json['dav'] as Map), + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(json['dav'] as Map), filesSharing: json['files_sharing'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson( json['files_sharing'] as Map), notes: json['notes'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(json['notes'] as Map), + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notes.fromJson(json['notes'] as Map), notifications: json['notifications'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Notifications.fromJson( json['notifications'] as Map), passwordPolicy: json['password_policy'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.fromJson( json['password_policy'] as Map), provisioningApi: json['provisioning_api'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.fromJson( json['provisioning_api'] as Map), theming: json['theming'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson(json['theming'] as Map), + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_Theming.fromJson( + json['theming'] as Map), userStatus: json['user_status'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.fromJson( json['user_status'] as Map), weatherStatus: json['weather_status'] == null ? null - : CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson( + : NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson( json['weather_status'] as Map), ); -Map _$CoreServerCapabilities_Ocs_Data_CapabilitiesToJson( - CoreServerCapabilities_Ocs_Data_Capabilities instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_Data_CapabilitiesToJson( + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities instance) => { 'core': instance.core?.toJson(), 'bruteforce': instance.bruteforce?.toJson(), @@ -980,61 +997,65 @@ Map _$CoreServerCapabilities_Ocs_Data_CapabilitiesToJson( 'weather_status': instance.weatherStatus?.toJson(), }; -CoreServerCapabilities_Ocs_Data _$CoreServerCapabilities_Ocs_DataFromJson(Map json) { +NextcloudCoreServerCapabilities_Ocs_Data _$NextcloudCoreServerCapabilities_Ocs_DataFromJson(Map json) { $checkKeys( json, allowedKeys: const ['version', 'capabilities'], ); - return CoreServerCapabilities_Ocs_Data( - version: CoreServerCapabilities_Ocs_Data_Version.fromJson(json['version'] as Map), - capabilities: CoreServerCapabilities_Ocs_Data_Capabilities.fromJson(json['capabilities'] as Map), + return NextcloudCoreServerCapabilities_Ocs_Data( + version: NextcloudCoreServerCapabilities_Ocs_Data_Version.fromJson(json['version'] as Map), + capabilities: + NextcloudCoreServerCapabilities_Ocs_Data_Capabilities.fromJson(json['capabilities'] as Map), ); } -Map _$CoreServerCapabilities_Ocs_DataToJson(CoreServerCapabilities_Ocs_Data instance) => +Map _$NextcloudCoreServerCapabilities_Ocs_DataToJson( + NextcloudCoreServerCapabilities_Ocs_Data instance) => { 'version': instance.version.toJson(), 'capabilities': instance.capabilities.toJson(), }; -CoreServerCapabilities_Ocs _$CoreServerCapabilities_OcsFromJson(Map json) { +NextcloudCoreServerCapabilities_Ocs _$NextcloudCoreServerCapabilities_OcsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['meta', 'data'], ); - return CoreServerCapabilities_Ocs( - meta: OCSMeta.fromJson(json['meta'] as Map), - data: CoreServerCapabilities_Ocs_Data.fromJson(json['data'] as Map), + return NextcloudCoreServerCapabilities_Ocs( + meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), + data: NextcloudCoreServerCapabilities_Ocs_Data.fromJson(json['data'] as Map), ); } -Map _$CoreServerCapabilities_OcsToJson(CoreServerCapabilities_Ocs instance) => { +Map _$NextcloudCoreServerCapabilities_OcsToJson(NextcloudCoreServerCapabilities_Ocs instance) => + { 'meta': instance.meta.toJson(), 'data': instance.data.toJson(), }; -CoreServerCapabilities _$CoreServerCapabilitiesFromJson(Map json) { +NextcloudCoreServerCapabilities _$NextcloudCoreServerCapabilitiesFromJson(Map json) { $checkKeys( json, allowedKeys: const ['ocs'], ); - return CoreServerCapabilities( - ocs: CoreServerCapabilities_Ocs.fromJson(json['ocs'] as Map), + return NextcloudCoreServerCapabilities( + ocs: NextcloudCoreServerCapabilities_Ocs.fromJson(json['ocs'] as Map), ); } -Map _$CoreServerCapabilitiesToJson(CoreServerCapabilities instance) => { +Map _$NextcloudCoreServerCapabilitiesToJson(NextcloudCoreServerCapabilities instance) => + { 'ocs': instance.ocs.toJson(), }; -CoreNavigationApps_Ocs_Data _$CoreNavigationApps_Ocs_DataFromJson(Map json) { +NextcloudCoreNavigationApps_Ocs_Data _$NextcloudCoreNavigationApps_Ocs_DataFromJson(Map json) { $checkKeys( json, allowedKeys: const ['id', 'order', 'href', 'icon', 'type', 'name', 'active', 'classes', 'unread'], ); - return CoreNavigationApps_Ocs_Data( + return NextcloudCoreNavigationApps_Ocs_Data( id: json['id'] as String, - order: CoreNavigationApps_Ocs_Data_Order.fromJson(json['order']), + order: NextcloudCoreNavigationApps_Ocs_Data_Order.fromJson(json['order']), href: json['href'] as String, icon: json['icon'] as String, type: json['type'] as String, @@ -1045,7 +1066,8 @@ CoreNavigationApps_Ocs_Data _$CoreNavigationApps_Ocs_DataFromJson(Map _$CoreNavigationApps_Ocs_DataToJson(CoreNavigationApps_Ocs_Data instance) => { +Map _$NextcloudCoreNavigationApps_Ocs_DataToJson(NextcloudCoreNavigationApps_Ocs_Data instance) => + { 'id': instance.id, 'order': instance.order.toJson(), 'href': instance.href, @@ -1057,105 +1079,108 @@ Map _$CoreNavigationApps_Ocs_DataToJson(CoreNavigationApps_Ocs_ 'unread': instance.unread, }; -CoreNavigationApps_Ocs _$CoreNavigationApps_OcsFromJson(Map json) { +NextcloudCoreNavigationApps_Ocs _$NextcloudCoreNavigationApps_OcsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['meta', 'data'], ); - return CoreNavigationApps_Ocs( - meta: OCSMeta.fromJson(json['meta'] as Map), + return NextcloudCoreNavigationApps_Ocs( + meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), data: (json['data'] as List) - .map((e) => CoreNavigationApps_Ocs_Data.fromJson(e as Map)) + .map((e) => NextcloudCoreNavigationApps_Ocs_Data.fromJson(e as Map)) .toList(), ); } -Map _$CoreNavigationApps_OcsToJson(CoreNavigationApps_Ocs instance) => { +Map _$NextcloudCoreNavigationApps_OcsToJson(NextcloudCoreNavigationApps_Ocs instance) => + { 'meta': instance.meta.toJson(), 'data': instance.data.map((e) => e.toJson()).toList(), }; -CoreNavigationApps _$CoreNavigationAppsFromJson(Map json) { +NextcloudCoreNavigationApps _$NextcloudCoreNavigationAppsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['ocs'], ); - return CoreNavigationApps( - ocs: CoreNavigationApps_Ocs.fromJson(json['ocs'] as Map), + return NextcloudCoreNavigationApps( + ocs: NextcloudCoreNavigationApps_Ocs.fromJson(json['ocs'] as Map), ); } -Map _$CoreNavigationAppsToJson(CoreNavigationApps instance) => { +Map _$NextcloudCoreNavigationAppsToJson(NextcloudCoreNavigationApps instance) => { 'ocs': instance.ocs.toJson(), }; -CoreLoginFlowInit_Poll _$CoreLoginFlowInit_PollFromJson(Map json) { +NextcloudCoreLoginFlowInit_Poll _$NextcloudCoreLoginFlowInit_PollFromJson(Map json) { $checkKeys( json, allowedKeys: const ['token', 'endpoint'], ); - return CoreLoginFlowInit_Poll( + return NextcloudCoreLoginFlowInit_Poll( token: json['token'] as String, endpoint: json['endpoint'] as String, ); } -Map _$CoreLoginFlowInit_PollToJson(CoreLoginFlowInit_Poll instance) => { +Map _$NextcloudCoreLoginFlowInit_PollToJson(NextcloudCoreLoginFlowInit_Poll instance) => + { 'token': instance.token, 'endpoint': instance.endpoint, }; -CoreLoginFlowInit _$CoreLoginFlowInitFromJson(Map json) { +NextcloudCoreLoginFlowInit _$NextcloudCoreLoginFlowInitFromJson(Map json) { $checkKeys( json, allowedKeys: const ['poll', 'login'], ); - return CoreLoginFlowInit( - poll: CoreLoginFlowInit_Poll.fromJson(json['poll'] as Map), + return NextcloudCoreLoginFlowInit( + poll: NextcloudCoreLoginFlowInit_Poll.fromJson(json['poll'] as Map), login: json['login'] as String, ); } -Map _$CoreLoginFlowInitToJson(CoreLoginFlowInit instance) => { +Map _$NextcloudCoreLoginFlowInitToJson(NextcloudCoreLoginFlowInit instance) => { 'poll': instance.poll.toJson(), 'login': instance.login, }; -CoreLoginFlowResult _$CoreLoginFlowResultFromJson(Map json) { +NextcloudCoreLoginFlowResult _$NextcloudCoreLoginFlowResultFromJson(Map json) { $checkKeys( json, allowedKeys: const ['server', 'loginName', 'appPassword'], ); - return CoreLoginFlowResult( + return NextcloudCoreLoginFlowResult( server: json['server'] as String, loginName: json['loginName'] as String, appPassword: json['appPassword'] as String, ); } -Map _$CoreLoginFlowResultToJson(CoreLoginFlowResult instance) => { +Map _$NextcloudCoreLoginFlowResultToJson(NextcloudCoreLoginFlowResult instance) => { 'server': instance.server, 'loginName': instance.loginName, 'appPassword': instance.appPassword, }; -CoreAutocompleteResult_Ocs_Data _$CoreAutocompleteResult_Ocs_DataFromJson(Map json) { +NextcloudCoreAutocompleteResult_Ocs_Data _$NextcloudCoreAutocompleteResult_Ocs_DataFromJson(Map json) { $checkKeys( json, allowedKeys: const ['id', 'label', 'icon', 'source', 'status', 'subline', 'shareWithDisplayNameUnique'], ); - return CoreAutocompleteResult_Ocs_Data( + return NextcloudCoreAutocompleteResult_Ocs_Data( id: json['id'] as String, label: json['label'] as String, icon: json['icon'] as String, source: json['source'] as String, - status: CoreAutocompleteResult_Ocs_Data_Status.fromJson(json['status']), + status: NextcloudCoreAutocompleteResult_Ocs_Data_Status.fromJson(json['status']), subline: json['subline'] as String, shareWithDisplayNameUnique: json['shareWithDisplayNameUnique'] as String, ); } -Map _$CoreAutocompleteResult_Ocs_DataToJson(CoreAutocompleteResult_Ocs_Data instance) => +Map _$NextcloudCoreAutocompleteResult_Ocs_DataToJson( + NextcloudCoreAutocompleteResult_Ocs_Data instance) => { 'id': instance.id, 'label': instance.label, @@ -1166,53 +1191,56 @@ Map _$CoreAutocompleteResult_Ocs_DataToJson(CoreAutocompleteRes 'shareWithDisplayNameUnique': instance.shareWithDisplayNameUnique, }; -CoreAutocompleteResult_Ocs _$CoreAutocompleteResult_OcsFromJson(Map json) { +NextcloudCoreAutocompleteResult_Ocs _$NextcloudCoreAutocompleteResult_OcsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['meta', 'data'], ); - return CoreAutocompleteResult_Ocs( - meta: OCSMeta.fromJson(json['meta'] as Map), + return NextcloudCoreAutocompleteResult_Ocs( + meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), data: (json['data'] as List) - .map((e) => CoreAutocompleteResult_Ocs_Data.fromJson(e as Map)) + .map((e) => NextcloudCoreAutocompleteResult_Ocs_Data.fromJson(e as Map)) .toList(), ); } -Map _$CoreAutocompleteResult_OcsToJson(CoreAutocompleteResult_Ocs instance) => { +Map _$NextcloudCoreAutocompleteResult_OcsToJson(NextcloudCoreAutocompleteResult_Ocs instance) => + { 'meta': instance.meta.toJson(), 'data': instance.data.map((e) => e.toJson()).toList(), }; -CoreAutocompleteResult _$CoreAutocompleteResultFromJson(Map json) { +NextcloudCoreAutocompleteResult _$NextcloudCoreAutocompleteResultFromJson(Map json) { $checkKeys( json, allowedKeys: const ['ocs'], ); - return CoreAutocompleteResult( - ocs: CoreAutocompleteResult_Ocs.fromJson(json['ocs'] as Map), + return NextcloudCoreAutocompleteResult( + ocs: NextcloudCoreAutocompleteResult_Ocs.fromJson(json['ocs'] as Map), ); } -Map _$CoreAutocompleteResultToJson(CoreAutocompleteResult instance) => { +Map _$NextcloudCoreAutocompleteResultToJson(NextcloudCoreAutocompleteResult instance) => + { 'ocs': instance.ocs.toJson(), }; -NewsSupportedAPIVersions _$NewsSupportedAPIVersionsFromJson(Map json) { +NextcloudNewsSupportedAPIVersions _$NextcloudNewsSupportedAPIVersionsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['apiLevels'], ); - return NewsSupportedAPIVersions( + return NextcloudNewsSupportedAPIVersions( apiLevels: (json['apiLevels'] as List?)?.map((e) => e as String).toList(), ); } -Map _$NewsSupportedAPIVersionsToJson(NewsSupportedAPIVersions instance) => { +Map _$NextcloudNewsSupportedAPIVersionsToJson(NextcloudNewsSupportedAPIVersions instance) => + { 'apiLevels': instance.apiLevels, }; -NewsArticle _$NewsArticleFromJson(Map json) { +NextcloudNewsArticle _$NextcloudNewsArticleFromJson(Map json) { $checkKeys( json, allowedKeys: const [ @@ -1238,7 +1266,7 @@ NewsArticle _$NewsArticleFromJson(Map json) { 'contentHash' ], ); - return NewsArticle( + return NextcloudNewsArticle( id: json['id'] as int, guid: json['guid'] as String, guidHash: json['guidHash'] as String, @@ -1262,7 +1290,7 @@ NewsArticle _$NewsArticleFromJson(Map json) { ); } -Map _$NewsArticleToJson(NewsArticle instance) => { +Map _$NextcloudNewsArticleToJson(NextcloudNewsArticle instance) => { 'id': instance.id, 'guid': instance.guid, 'guidHash': instance.guidHash, @@ -1285,7 +1313,7 @@ Map _$NewsArticleToJson(NewsArticle instance) => json) { +NextcloudNewsFeed _$NextcloudNewsFeedFromJson(Map json) { $checkKeys( json, allowedKeys: const [ @@ -1304,7 +1332,7 @@ NewsFeed _$NewsFeedFromJson(Map json) { 'items' ], ); - return NewsFeed( + return NextcloudNewsFeed( id: json['id'] as int, url: json['url'] as String, title: json['title'] as String, @@ -1317,11 +1345,12 @@ NewsFeed _$NewsFeedFromJson(Map json) { 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) => NextcloudNewsArticle.fromJson(e as Map)).toList(), ); } -Map _$NewsFeedToJson(NewsFeed instance) => { +Map _$NextcloudNewsFeedToJson(NextcloudNewsFeed instance) => { 'id': instance.id, 'url': instance.url, 'title': instance.title, @@ -1337,73 +1366,75 @@ Map _$NewsFeedToJson(NewsFeed instance) => { 'items': instance.items.map((e) => e.toJson()).toList(), }; -NewsFolder _$NewsFolderFromJson(Map json) { +NextcloudNewsFolder _$NextcloudNewsFolderFromJson(Map json) { $checkKeys( json, allowedKeys: const ['id', 'name', 'opened', 'feeds'], ); - return NewsFolder( + return NextcloudNewsFolder( 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(), + feeds: (json['feeds'] as List).map((e) => NextcloudNewsFeed.fromJson(e as Map)).toList(), ); } -Map _$NewsFolderToJson(NewsFolder instance) => { +Map _$NextcloudNewsFolderToJson(NextcloudNewsFolder instance) => { 'id': instance.id, 'name': instance.name, 'opened': instance.opened, 'feeds': instance.feeds.map((e) => e.toJson()).toList(), }; -NewsListFolders _$NewsListFoldersFromJson(Map json) { +NextcloudNewsListFolders _$NextcloudNewsListFoldersFromJson(Map json) { $checkKeys( json, allowedKeys: const ['folders'], ); - return NewsListFolders( - folders: (json['folders'] as List).map((e) => NewsFolder.fromJson(e as Map)).toList(), + return NextcloudNewsListFolders( + folders: + (json['folders'] as List).map((e) => NextcloudNewsFolder.fromJson(e as Map)).toList(), ); } -Map _$NewsListFoldersToJson(NewsListFolders instance) => { +Map _$NextcloudNewsListFoldersToJson(NextcloudNewsListFolders instance) => { 'folders': instance.folders.map((e) => e.toJson()).toList(), }; -NewsListFeeds _$NewsListFeedsFromJson(Map json) { +NextcloudNewsListFeeds _$NextcloudNewsListFeedsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['starredCount', 'newestItemId', 'feeds'], ); - return NewsListFeeds( + return NextcloudNewsListFeeds( 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) => NextcloudNewsFeed.fromJson(e as Map)).toList(), ); } -Map _$NewsListFeedsToJson(NewsListFeeds instance) => { +Map _$NextcloudNewsListFeedsToJson(NextcloudNewsListFeeds instance) => { 'starredCount': instance.starredCount, 'newestItemId': instance.newestItemId, 'feeds': instance.feeds.map((e) => e.toJson()).toList(), }; -NewsListArticles _$NewsListArticlesFromJson(Map json) { +NextcloudNewsListArticles _$NextcloudNewsListArticlesFromJson(Map json) { $checkKeys( json, allowedKeys: const ['items'], ); - return NewsListArticles( - items: (json['items'] as List).map((e) => NewsArticle.fromJson(e as Map)).toList(), + return NextcloudNewsListArticles( + items: + (json['items'] as List).map((e) => NextcloudNewsArticle.fromJson(e as Map)).toList(), ); } -Map _$NewsListArticlesToJson(NewsListArticles instance) => { +Map _$NextcloudNewsListArticlesToJson(NextcloudNewsListArticles instance) => { 'items': instance.items.map((e) => e.toJson()).toList(), }; -NotesNote _$NotesNoteFromJson(Map json) { +NextcloudNotesNote _$NextcloudNotesNoteFromJson(Map json) { $checkKeys( json, allowedKeys: const [ @@ -1419,7 +1450,7 @@ NotesNote _$NotesNoteFromJson(Map json) { 'errorType' ], ); - return NotesNote( + return NextcloudNotesNote( id: json['id'] as int, etag: json['etag'] as String, readonly: json['readonly'] as bool, @@ -1433,7 +1464,7 @@ NotesNote _$NotesNoteFromJson(Map json) { ); } -Map _$NotesNoteToJson(NotesNote instance) => { +Map _$NextcloudNotesNoteToJson(NextcloudNotesNote instance) => { 'id': instance.id, 'etag': instance.etag, 'readonly': instance.readonly, @@ -1446,35 +1477,35 @@ Map _$NotesNoteToJson(NotesNote instance) => { 'errorType': instance.errorType, }; -NotesSettings _$NotesSettingsFromJson(Map json) { +NextcloudNotesSettings _$NextcloudNotesSettingsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['notesPath', 'fileSuffix', 'noteMode'], ); - return NotesSettings( + return NextcloudNotesSettings( notesPath: json['notesPath'] as String, fileSuffix: json['fileSuffix'] as String, - noteMode: $enumDecode(_$NotesSettings_NoteModeEnumMap, json['noteMode']), + noteMode: $enumDecode(_$NextcloudNotesSettings_NoteModeEnumMap, json['noteMode']), ); } -Map _$NotesSettingsToJson(NotesSettings instance) => { +Map _$NextcloudNotesSettingsToJson(NextcloudNotesSettings instance) => { 'notesPath': instance.notesPath, 'fileSuffix': instance.fileSuffix, - 'noteMode': _$NotesSettings_NoteModeEnumMap[instance.noteMode]!, + 'noteMode': _$NextcloudNotesSettings_NoteModeEnumMap[instance.noteMode]!, }; -const _$NotesSettings_NoteModeEnumMap = { - NotesSettings_NoteMode.edit: 'edit', - NotesSettings_NoteMode.preview: 'preview', +const _$NextcloudNotesSettings_NoteModeEnumMap = { + NextcloudNotesSettings_NoteMode.edit: 'edit', + NextcloudNotesSettings_NoteMode.preview: 'preview', }; -NotificationsNotificationAction _$NotificationsNotificationActionFromJson(Map json) { +NextcloudNotificationsNotificationAction _$NextcloudNotificationsNotificationActionFromJson(Map json) { $checkKeys( json, allowedKeys: const ['label', 'link', 'type', 'primary'], ); - return NotificationsNotificationAction( + return NextcloudNotificationsNotificationAction( label: json['label'] as String, link: json['link'] as String, type: json['type'] as String, @@ -1482,7 +1513,8 @@ NotificationsNotificationAction _$NotificationsNotificationActionFromJson(Map _$NotificationsNotificationActionToJson(NotificationsNotificationAction instance) => +Map _$NextcloudNotificationsNotificationActionToJson( + NextcloudNotificationsNotificationAction instance) => { 'label': instance.label, 'link': instance.link, @@ -1490,7 +1522,7 @@ Map _$NotificationsNotificationActionToJson(NotificationsNotifi 'primary': instance.primary, }; -NotificationsNotification _$NotificationsNotificationFromJson(Map json) { +NextcloudNotificationsNotification _$NextcloudNotificationsNotificationFromJson(Map json) { $checkKeys( json, allowedKeys: const [ @@ -1511,7 +1543,7 @@ NotificationsNotification _$NotificationsNotificationFromJson(Map) - .map((e) => NotificationsNotificationAction.fromJson(e as Map)) + .map((e) => NextcloudNotificationsNotificationAction.fromJson(e as Map)) .toList(), ); } -Map _$NotificationsNotificationToJson(NotificationsNotification instance) => { +Map _$NextcloudNotificationsNotificationToJson(NextcloudNotificationsNotification instance) => + { 'notification_id': instance.notificationId, 'app': instance.app, 'user': instance.user, @@ -1550,107 +1585,114 @@ Map _$NotificationsNotificationToJson(NotificationsNotification 'actions': instance.actions.map((e) => e.toJson()).toList(), }; -NotificationsListNotifications_Ocs _$NotificationsListNotifications_OcsFromJson(Map json) { +NextcloudNotificationsListNotifications_Ocs _$NextcloudNotificationsListNotifications_OcsFromJson( + Map json) { $checkKeys( json, allowedKeys: const ['meta', 'data'], ); - return NotificationsListNotifications_Ocs( - meta: OCSMeta.fromJson(json['meta'] as Map), + return NextcloudNotificationsListNotifications_Ocs( + meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), data: (json['data'] as List) - .map((e) => NotificationsNotification.fromJson(e as Map)) + .map((e) => NextcloudNotificationsNotification.fromJson(e as Map)) .toList(), ); } -Map _$NotificationsListNotifications_OcsToJson(NotificationsListNotifications_Ocs instance) => +Map _$NextcloudNotificationsListNotifications_OcsToJson( + NextcloudNotificationsListNotifications_Ocs instance) => { 'meta': instance.meta.toJson(), 'data': instance.data.map((e) => e.toJson()).toList(), }; -NotificationsListNotifications _$NotificationsListNotificationsFromJson(Map json) { +NextcloudNotificationsListNotifications _$NextcloudNotificationsListNotificationsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['ocs'], ); - return NotificationsListNotifications( - ocs: NotificationsListNotifications_Ocs.fromJson(json['ocs'] as Map), + return NextcloudNotificationsListNotifications( + ocs: NextcloudNotificationsListNotifications_Ocs.fromJson(json['ocs'] as Map), ); } -Map _$NotificationsListNotificationsToJson(NotificationsListNotifications instance) => +Map _$NextcloudNotificationsListNotificationsToJson( + NextcloudNotificationsListNotifications instance) => { 'ocs': instance.ocs.toJson(), }; -NotificationsGetNotification_Ocs _$NotificationsGetNotification_OcsFromJson(Map json) { +NextcloudNotificationsGetNotification_Ocs _$NextcloudNotificationsGetNotification_OcsFromJson( + Map json) { $checkKeys( json, allowedKeys: const ['meta', 'data'], ); - return NotificationsGetNotification_Ocs( - meta: OCSMeta.fromJson(json['meta'] as Map), - data: NotificationsNotification.fromJson(json['data'] as Map), + return NextcloudNotificationsGetNotification_Ocs( + meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), + data: NextcloudNotificationsNotification.fromJson(json['data'] as Map), ); } -Map _$NotificationsGetNotification_OcsToJson(NotificationsGetNotification_Ocs instance) => +Map _$NextcloudNotificationsGetNotification_OcsToJson( + NextcloudNotificationsGetNotification_Ocs instance) => { 'meta': instance.meta.toJson(), 'data': instance.data.toJson(), }; -NotificationsGetNotification _$NotificationsGetNotificationFromJson(Map json) { +NextcloudNotificationsGetNotification _$NextcloudNotificationsGetNotificationFromJson(Map json) { $checkKeys( json, allowedKeys: const ['ocs'], ); - return NotificationsGetNotification( - ocs: NotificationsGetNotification_Ocs.fromJson(json['ocs'] as Map), + return NextcloudNotificationsGetNotification( + ocs: NextcloudNotificationsGetNotification_Ocs.fromJson(json['ocs'] as Map), ); } -Map _$NotificationsGetNotificationToJson(NotificationsGetNotification instance) => { +Map _$NextcloudNotificationsGetNotificationToJson(NextcloudNotificationsGetNotification instance) => + { 'ocs': instance.ocs.toJson(), }; -EmptyOCS_Ocs _$EmptyOCS_OcsFromJson(Map json) { +NextcloudEmptyOCS_Ocs _$NextcloudEmptyOCS_OcsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['meta', 'data'], ); - return EmptyOCS_Ocs( - meta: OCSMeta.fromJson(json['meta'] as Map), + return NextcloudEmptyOCS_Ocs( + meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), data: json['data'] as List, ); } -Map _$EmptyOCS_OcsToJson(EmptyOCS_Ocs instance) => { +Map _$NextcloudEmptyOCS_OcsToJson(NextcloudEmptyOCS_Ocs instance) => { 'meta': instance.meta.toJson(), 'data': instance.data, }; -EmptyOCS _$EmptyOCSFromJson(Map json) { +NextcloudEmptyOCS _$NextcloudEmptyOCSFromJson(Map json) { $checkKeys( json, allowedKeys: const ['ocs'], ); - return EmptyOCS( - ocs: EmptyOCS_Ocs.fromJson(json['ocs'] as Map), + return NextcloudEmptyOCS( + ocs: NextcloudEmptyOCS_Ocs.fromJson(json['ocs'] as Map), ); } -Map _$EmptyOCSToJson(EmptyOCS instance) => { +Map _$NextcloudEmptyOCSToJson(NextcloudEmptyOCS instance) => { 'ocs': instance.ocs.toJson(), }; -NotificationsPushServerSubscription _$NotificationsPushServerSubscriptionFromJson(Map json) { +NextcloudNotificationsPushServerSubscription _$NextcloudNotificationsPushServerSubscriptionFromJson( + Map json) { $checkKeys( json, allowedKeys: const ['publicKey', 'deviceIdentifier', 'signature', 'message'], ); - return NotificationsPushServerSubscription( + return NextcloudNotificationsPushServerSubscription( publicKey: json['publicKey'] as String, deviceIdentifier: json['deviceIdentifier'] as String, signature: json['signature'] as String, @@ -1658,7 +1700,8 @@ NotificationsPushServerSubscription _$NotificationsPushServerSubscriptionFromJso ); } -Map _$NotificationsPushServerSubscriptionToJson(NotificationsPushServerSubscription instance) => +Map _$NextcloudNotificationsPushServerSubscriptionToJson( + NextcloudNotificationsPushServerSubscription instance) => { 'publicKey': instance.publicKey, 'deviceIdentifier': instance.deviceIdentifier, @@ -1666,45 +1709,49 @@ Map _$NotificationsPushServerSubscriptionToJson(NotificationsPu 'message': instance.message, }; -NotificationsPushServerRegistration_Ocs _$NotificationsPushServerRegistration_OcsFromJson(Map json) { +NextcloudNotificationsPushServerRegistration_Ocs _$NextcloudNotificationsPushServerRegistration_OcsFromJson( + Map json) { $checkKeys( json, allowedKeys: const ['meta', 'data'], ); - return NotificationsPushServerRegistration_Ocs( - meta: OCSMeta.fromJson(json['meta'] as Map), - data: NotificationsPushServerSubscription.fromJson(json['data'] as Map), + return NextcloudNotificationsPushServerRegistration_Ocs( + meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), + data: NextcloudNotificationsPushServerSubscription.fromJson(json['data'] as Map), ); } -Map _$NotificationsPushServerRegistration_OcsToJson( - NotificationsPushServerRegistration_Ocs instance) => +Map _$NextcloudNotificationsPushServerRegistration_OcsToJson( + NextcloudNotificationsPushServerRegistration_Ocs instance) => { 'meta': instance.meta.toJson(), 'data': instance.data.toJson(), }; -NotificationsPushServerRegistration _$NotificationsPushServerRegistrationFromJson(Map json) { +NextcloudNotificationsPushServerRegistration _$NextcloudNotificationsPushServerRegistrationFromJson( + Map json) { $checkKeys( json, allowedKeys: const ['ocs'], ); - return NotificationsPushServerRegistration( - ocs: NotificationsPushServerRegistration_Ocs.fromJson(json['ocs'] as Map), + return NextcloudNotificationsPushServerRegistration( + ocs: NextcloudNotificationsPushServerRegistration_Ocs.fromJson(json['ocs'] as Map), ); } -Map _$NotificationsPushServerRegistrationToJson(NotificationsPushServerRegistration instance) => +Map _$NextcloudNotificationsPushServerRegistrationToJson( + NextcloudNotificationsPushServerRegistration instance) => { 'ocs': instance.ocs.toJson(), }; -ProvisioningApiUserDetails_Quota _$ProvisioningApiUserDetails_QuotaFromJson(Map json) { +NextcloudProvisioningApiUserDetails_Quota _$NextcloudProvisioningApiUserDetails_QuotaFromJson( + Map json) { $checkKeys( json, allowedKeys: const ['free', 'used', 'total', 'relative', 'quota'], ); - return ProvisioningApiUserDetails_Quota( + return NextcloudProvisioningApiUserDetails_Quota( free: json['free'] as int, used: json['used'] as int, total: json['total'] as int, @@ -1713,7 +1760,8 @@ ProvisioningApiUserDetails_Quota _$ProvisioningApiUserDetails_QuotaFromJson(Map< ); } -Map _$ProvisioningApiUserDetails_QuotaToJson(ProvisioningApiUserDetails_Quota instance) => +Map _$NextcloudProvisioningApiUserDetails_QuotaToJson( + NextcloudProvisioningApiUserDetails_Quota instance) => { 'free': instance.free, 'used': instance.used, @@ -1722,26 +1770,26 @@ Map _$ProvisioningApiUserDetails_QuotaToJson(ProvisioningApiUse 'quota': instance.quota, }; -ProvisioningApiUserDetails_BackendCapabilities _$ProvisioningApiUserDetails_BackendCapabilitiesFromJson( - Map json) { +NextcloudProvisioningApiUserDetails_BackendCapabilities + _$NextcloudProvisioningApiUserDetails_BackendCapabilitiesFromJson(Map json) { $checkKeys( json, allowedKeys: const ['setDisplayName', 'setPassword'], ); - return ProvisioningApiUserDetails_BackendCapabilities( + return NextcloudProvisioningApiUserDetails_BackendCapabilities( setDisplayName: json['setDisplayName'] as bool, setPassword: json['setPassword'] as bool, ); } -Map _$ProvisioningApiUserDetails_BackendCapabilitiesToJson( - ProvisioningApiUserDetails_BackendCapabilities instance) => +Map _$NextcloudProvisioningApiUserDetails_BackendCapabilitiesToJson( + NextcloudProvisioningApiUserDetails_BackendCapabilities instance) => { 'setDisplayName': instance.setDisplayName, 'setPassword': instance.setPassword, }; -ProvisioningApiUserDetails _$ProvisioningApiUserDetailsFromJson(Map json) { +NextcloudProvisioningApiUserDetails _$NextcloudProvisioningApiUserDetailsFromJson(Map json) { $checkKeys( json, allowedKeys: const [ @@ -1785,14 +1833,14 @@ ProvisioningApiUserDetails _$ProvisioningApiUserDetailsFromJson(Map).map((e) => e as String).toList(), - quota: ProvisioningApiUserDetails_Quota.fromJson(json['quota'] as Map), + quota: NextcloudProvisioningApiUserDetails_Quota.fromJson(json['quota'] as Map), avatarScope: json['avatarScope'] as String, email: json['email'] as String?, emailScope: json['emailScope'] as String, @@ -1822,13 +1870,14 @@ ProvisioningApiUserDetails _$ProvisioningApiUserDetailsFromJson(Map), + backendCapabilities: NextcloudProvisioningApiUserDetails_BackendCapabilities.fromJson( + json['backendCapabilities'] as Map), displayName: json['display-name'] as String?, ); } -Map _$ProvisioningApiUserDetailsToJson(ProvisioningApiUserDetails instance) => { +Map _$NextcloudProvisioningApiUserDetailsToJson(NextcloudProvisioningApiUserDetails instance) => + { 'enabled': instance.enabled, 'storageLocation': instance.storageLocation, 'id': instance.id, @@ -1869,150 +1918,155 @@ Map _$ProvisioningApiUserDetailsToJson(ProvisioningApiUserDetai 'display-name': instance.displayName, }; -ProvisioningApiUser_Ocs _$ProvisioningApiUser_OcsFromJson(Map json) { +NextcloudProvisioningApiUser_Ocs _$NextcloudProvisioningApiUser_OcsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['meta', 'data'], ); - return ProvisioningApiUser_Ocs( - meta: OCSMeta.fromJson(json['meta'] as Map), - data: ProvisioningApiUserDetails.fromJson(json['data'] as Map), + return NextcloudProvisioningApiUser_Ocs( + meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), + data: NextcloudProvisioningApiUserDetails.fromJson(json['data'] as Map), ); } -Map _$ProvisioningApiUser_OcsToJson(ProvisioningApiUser_Ocs instance) => { +Map _$NextcloudProvisioningApiUser_OcsToJson(NextcloudProvisioningApiUser_Ocs instance) => + { 'meta': instance.meta.toJson(), 'data': instance.data.toJson(), }; -ProvisioningApiUser _$ProvisioningApiUserFromJson(Map json) { +NextcloudProvisioningApiUser _$NextcloudProvisioningApiUserFromJson(Map json) { $checkKeys( json, allowedKeys: const ['ocs'], ); - return ProvisioningApiUser( - ocs: ProvisioningApiUser_Ocs.fromJson(json['ocs'] as Map), + return NextcloudProvisioningApiUser( + ocs: NextcloudProvisioningApiUser_Ocs.fromJson(json['ocs'] as Map), ); } -Map _$ProvisioningApiUserToJson(ProvisioningApiUser instance) => { +Map _$NextcloudProvisioningApiUserToJson(NextcloudProvisioningApiUser instance) => { 'ocs': instance.ocs.toJson(), }; -UserStatusClearAt _$UserStatusClearAtFromJson(Map json) { +NextcloudUserStatusClearAt _$NextcloudUserStatusClearAtFromJson(Map json) { $checkKeys( json, allowedKeys: const ['type', 'time'], ); - return UserStatusClearAt( - type: $enumDecode(_$UserStatusClearAt_TypeEnumMap, json['type']), - time: UserStatusClearAt_Time.fromJson(json['time']), + return NextcloudUserStatusClearAt( + type: $enumDecode(_$NextcloudUserStatusClearAt_TypeEnumMap, json['type']), + time: NextcloudUserStatusClearAt_Time.fromJson(json['time']), ); } -Map _$UserStatusClearAtToJson(UserStatusClearAt instance) => { - 'type': _$UserStatusClearAt_TypeEnumMap[instance.type]!, +Map _$NextcloudUserStatusClearAtToJson(NextcloudUserStatusClearAt instance) => { + 'type': _$NextcloudUserStatusClearAt_TypeEnumMap[instance.type]!, 'time': instance.time.toJson(), }; -const _$UserStatusClearAt_TypeEnumMap = { - UserStatusClearAt_Type.period: 'period', - UserStatusClearAt_Type.endOf: 'end-of', +const _$NextcloudUserStatusClearAt_TypeEnumMap = { + NextcloudUserStatusClearAt_Type.period: 'period', + NextcloudUserStatusClearAt_Type.endOf: 'end-of', }; -UserStatusPublicUserStatus _$UserStatusPublicUserStatusFromJson(Map json) { +NextcloudUserStatusPublicUserStatus _$NextcloudUserStatusPublicUserStatusFromJson(Map json) { $checkKeys( json, allowedKeys: const ['userId', 'message', 'icon', 'clearAt', 'status'], ); - return UserStatusPublicUserStatus( + return NextcloudUserStatusPublicUserStatus( userId: json['userId'] as String, message: json['message'] as String?, icon: json['icon'] as String?, - clearAt: UserStatusPublicUserStatus_ClearAt.fromJson(json['clearAt']), - status: $enumDecode(_$UserStatusTypeEnumMap, json['status']), + clearAt: NextcloudUserStatusPublicUserStatus_ClearAt.fromJson(json['clearAt']), + status: $enumDecode(_$NextcloudUserStatusTypeEnumMap, json['status']), ); } -Map _$UserStatusPublicUserStatusToJson(UserStatusPublicUserStatus instance) => { +Map _$NextcloudUserStatusPublicUserStatusToJson(NextcloudUserStatusPublicUserStatus instance) => + { 'userId': instance.userId, 'message': instance.message, 'icon': instance.icon, 'clearAt': instance.clearAt.toJson(), - 'status': _$UserStatusTypeEnumMap[instance.status]!, + 'status': _$NextcloudUserStatusTypeEnumMap[instance.status]!, }; -const _$UserStatusTypeEnumMap = { - UserStatusType.online: 'online', - UserStatusType.offline: 'offline', - UserStatusType.dnd: 'dnd', - UserStatusType.away: 'away', - UserStatusType.invisible: 'invisible', +const _$NextcloudUserStatusTypeEnumMap = { + NextcloudUserStatusType.online: 'online', + NextcloudUserStatusType.offline: 'offline', + NextcloudUserStatusType.dnd: 'dnd', + NextcloudUserStatusType.away: 'away', + NextcloudUserStatusType.invisible: 'invisible', }; -UserStatusFindAllStatuses_Ocs _$UserStatusFindAllStatuses_OcsFromJson(Map json) { +NextcloudUserStatusFindAllStatuses_Ocs _$NextcloudUserStatusFindAllStatuses_OcsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['meta', 'data'], ); - return UserStatusFindAllStatuses_Ocs( - meta: OCSMeta.fromJson(json['meta'] as Map), + return NextcloudUserStatusFindAllStatuses_Ocs( + meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), data: (json['data'] as List) - .map((e) => UserStatusPublicUserStatus.fromJson(e as Map)) + .map((e) => NextcloudUserStatusPublicUserStatus.fromJson(e as Map)) .toList(), ); } -Map _$UserStatusFindAllStatuses_OcsToJson(UserStatusFindAllStatuses_Ocs instance) => { +Map _$NextcloudUserStatusFindAllStatuses_OcsToJson(NextcloudUserStatusFindAllStatuses_Ocs instance) => + { 'meta': instance.meta.toJson(), 'data': instance.data.map((e) => e.toJson()).toList(), }; -UserStatusFindAllStatuses _$UserStatusFindAllStatusesFromJson(Map json) { +NextcloudUserStatusFindAllStatuses _$NextcloudUserStatusFindAllStatusesFromJson(Map json) { $checkKeys( json, allowedKeys: const ['ocs'], ); - return UserStatusFindAllStatuses( - ocs: UserStatusFindAllStatuses_Ocs.fromJson(json['ocs'] as Map), + return NextcloudUserStatusFindAllStatuses( + ocs: NextcloudUserStatusFindAllStatuses_Ocs.fromJson(json['ocs'] as Map), ); } -Map _$UserStatusFindAllStatusesToJson(UserStatusFindAllStatuses instance) => { +Map _$NextcloudUserStatusFindAllStatusesToJson(NextcloudUserStatusFindAllStatuses instance) => + { 'ocs': instance.ocs.toJson(), }; -UserStatusFindStatus_Ocs _$UserStatusFindStatus_OcsFromJson(Map json) { +NextcloudUserStatusFindStatus_Ocs _$NextcloudUserStatusFindStatus_OcsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['meta', 'data'], ); - return UserStatusFindStatus_Ocs( - meta: OCSMeta.fromJson(json['meta'] as Map), - data: UserStatusFindStatus_Ocs_Data.fromJson(json['data']), + return NextcloudUserStatusFindStatus_Ocs( + meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), + data: NextcloudUserStatusFindStatus_Ocs_Data.fromJson(json['data']), ); } -Map _$UserStatusFindStatus_OcsToJson(UserStatusFindStatus_Ocs instance) => { +Map _$NextcloudUserStatusFindStatus_OcsToJson(NextcloudUserStatusFindStatus_Ocs instance) => + { 'meta': instance.meta.toJson(), 'data': instance.data.toJson(), }; -UserStatusFindStatus _$UserStatusFindStatusFromJson(Map json) { +NextcloudUserStatusFindStatus _$NextcloudUserStatusFindStatusFromJson(Map json) { $checkKeys( json, allowedKeys: const ['ocs'], ); - return UserStatusFindStatus( - ocs: UserStatusFindStatus_Ocs.fromJson(json['ocs'] as Map), + return NextcloudUserStatusFindStatus( + ocs: NextcloudUserStatusFindStatus_Ocs.fromJson(json['ocs'] as Map), ); } -Map _$UserStatusFindStatusToJson(UserStatusFindStatus instance) => { +Map _$NextcloudUserStatusFindStatusToJson(NextcloudUserStatusFindStatus instance) => { 'ocs': instance.ocs.toJson(), }; -UserStatus _$UserStatusFromJson(Map json) { +NextcloudUserStatus _$NextcloudUserStatusFromJson(Map json) { $checkKeys( json, allowedKeys: const [ @@ -2026,119 +2080,125 @@ UserStatus _$UserStatusFromJson(Map json) { 'statusIsUserDefined' ], ); - return UserStatus( + return NextcloudUserStatus( userId: json['userId'] as String, message: json['message'] as String?, messageId: json['messageId'] as String?, messageIsPredefined: json['messageIsPredefined'] as bool, icon: json['icon'] as String?, - clearAt: UserStatus_ClearAt.fromJson(json['clearAt']), - status: $enumDecode(_$UserStatusTypeEnumMap, json['status']), + clearAt: NextcloudUserStatus_ClearAt.fromJson(json['clearAt']), + status: $enumDecode(_$NextcloudUserStatusTypeEnumMap, json['status']), statusIsUserDefined: json['statusIsUserDefined'] as bool, ); } -Map _$UserStatusToJson(UserStatus instance) => { +Map _$NextcloudUserStatusToJson(NextcloudUserStatus instance) => { 'userId': instance.userId, 'message': instance.message, 'messageId': instance.messageId, 'messageIsPredefined': instance.messageIsPredefined, 'icon': instance.icon, 'clearAt': instance.clearAt.toJson(), - 'status': _$UserStatusTypeEnumMap[instance.status]!, + 'status': _$NextcloudUserStatusTypeEnumMap[instance.status]!, 'statusIsUserDefined': instance.statusIsUserDefined, }; -UserStatusGetUserStatus_Ocs _$UserStatusGetUserStatus_OcsFromJson(Map json) { +NextcloudUserStatusGetUserStatus_Ocs _$NextcloudUserStatusGetUserStatus_OcsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['meta', 'data'], ); - return UserStatusGetUserStatus_Ocs( - meta: OCSMeta.fromJson(json['meta'] as Map), - data: UserStatusGetUserStatus_Ocs_Data.fromJson(json['data']), + return NextcloudUserStatusGetUserStatus_Ocs( + meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), + data: NextcloudUserStatusGetUserStatus_Ocs_Data.fromJson(json['data']), ); } -Map _$UserStatusGetUserStatus_OcsToJson(UserStatusGetUserStatus_Ocs instance) => { +Map _$NextcloudUserStatusGetUserStatus_OcsToJson(NextcloudUserStatusGetUserStatus_Ocs instance) => + { 'meta': instance.meta.toJson(), 'data': instance.data.toJson(), }; -UserStatusGetUserStatus _$UserStatusGetUserStatusFromJson(Map json) { +NextcloudUserStatusGetUserStatus _$NextcloudUserStatusGetUserStatusFromJson(Map json) { $checkKeys( json, allowedKeys: const ['ocs'], ); - return UserStatusGetUserStatus( - ocs: UserStatusGetUserStatus_Ocs.fromJson(json['ocs'] as Map), + return NextcloudUserStatusGetUserStatus( + ocs: NextcloudUserStatusGetUserStatus_Ocs.fromJson(json['ocs'] as Map), ); } -Map _$UserStatusGetUserStatusToJson(UserStatusGetUserStatus instance) => { +Map _$NextcloudUserStatusGetUserStatusToJson(NextcloudUserStatusGetUserStatus instance) => + { 'ocs': instance.ocs.toJson(), }; -UserStatusPredefinedStatus _$UserStatusPredefinedStatusFromJson(Map json) { +NextcloudUserStatusPredefinedStatus _$NextcloudUserStatusPredefinedStatusFromJson(Map json) { $checkKeys( json, allowedKeys: const ['id', 'icon', 'message', 'clearAt'], ); - return UserStatusPredefinedStatus( + return NextcloudUserStatusPredefinedStatus( id: json['id'] as String, icon: json['icon'] as String, message: json['message'] as String, - clearAt: UserStatusPredefinedStatus_ClearAt.fromJson(json['clearAt']), + clearAt: NextcloudUserStatusPredefinedStatus_ClearAt.fromJson(json['clearAt']), ); } -Map _$UserStatusPredefinedStatusToJson(UserStatusPredefinedStatus instance) => { +Map _$NextcloudUserStatusPredefinedStatusToJson(NextcloudUserStatusPredefinedStatus instance) => + { 'id': instance.id, 'icon': instance.icon, 'message': instance.message, 'clearAt': instance.clearAt.toJson(), }; -UserStatusPredefinedStatuses_Ocs _$UserStatusPredefinedStatuses_OcsFromJson(Map json) { +NextcloudUserStatusPredefinedStatuses_Ocs _$NextcloudUserStatusPredefinedStatuses_OcsFromJson( + Map json) { $checkKeys( json, allowedKeys: const ['meta', 'data'], ); - return UserStatusPredefinedStatuses_Ocs( - meta: OCSMeta.fromJson(json['meta'] as Map), + return NextcloudUserStatusPredefinedStatuses_Ocs( + meta: NextcloudOCSMeta.fromJson(json['meta'] as Map), data: (json['data'] as List) - .map((e) => UserStatusPredefinedStatus.fromJson(e as Map)) + .map((e) => NextcloudUserStatusPredefinedStatus.fromJson(e as Map)) .toList(), ); } -Map _$UserStatusPredefinedStatuses_OcsToJson(UserStatusPredefinedStatuses_Ocs instance) => +Map _$NextcloudUserStatusPredefinedStatuses_OcsToJson( + NextcloudUserStatusPredefinedStatuses_Ocs instance) => { 'meta': instance.meta.toJson(), 'data': instance.data.map((e) => e.toJson()).toList(), }; -UserStatusPredefinedStatuses _$UserStatusPredefinedStatusesFromJson(Map json) { +NextcloudUserStatusPredefinedStatuses _$NextcloudUserStatusPredefinedStatusesFromJson(Map json) { $checkKeys( json, allowedKeys: const ['ocs'], ); - return UserStatusPredefinedStatuses( - ocs: UserStatusPredefinedStatuses_Ocs.fromJson(json['ocs'] as Map), + return NextcloudUserStatusPredefinedStatuses( + ocs: NextcloudUserStatusPredefinedStatuses_Ocs.fromJson(json['ocs'] as Map), ); } -Map _$UserStatusPredefinedStatusesToJson(UserStatusPredefinedStatuses instance) => { +Map _$NextcloudUserStatusPredefinedStatusesToJson(NextcloudUserStatusPredefinedStatuses instance) => + { 'ocs': instance.ocs.toJson(), }; -NotificationsPushNotificationDecryptedSubject _$NotificationsPushNotificationDecryptedSubjectFromJson( +NextcloudNotificationsPushNotificationDecryptedSubject _$NextcloudNotificationsPushNotificationDecryptedSubjectFromJson( Map json) { $checkKeys( json, allowedKeys: const ['nid', 'app', 'subject', 'type', 'id', 'delete', 'delete-all'], ); - return NotificationsPushNotificationDecryptedSubject( + return NextcloudNotificationsPushNotificationDecryptedSubject( nid: json['nid'] as int?, app: json['app'] as String?, subject: json['subject'] as String?, @@ -2149,8 +2209,8 @@ NotificationsPushNotificationDecryptedSubject _$NotificationsPushNotificationDec ); } -Map _$NotificationsPushNotificationDecryptedSubjectToJson( - NotificationsPushNotificationDecryptedSubject instance) => +Map _$NextcloudNotificationsPushNotificationDecryptedSubjectToJson( + NextcloudNotificationsPushNotificationDecryptedSubject instance) => { 'nid': instance.nid, 'app': instance.app, @@ -2161,20 +2221,21 @@ Map _$NotificationsPushNotificationDecryptedSubjectToJson( 'delete-all': instance.deleteAll, }; -NotificationsPushNotification _$NotificationsPushNotificationFromJson(Map json) { +NextcloudNotificationsPushNotification _$NextcloudNotificationsPushNotificationFromJson(Map json) { $checkKeys( json, allowedKeys: const ['accountID', 'priority', 'type', 'subject'], ); - return NotificationsPushNotification( + return NextcloudNotificationsPushNotification( accountID: json['accountID'] as String, priority: json['priority'] as String, type: json['type'] as String, - subject: NotificationsPushNotificationDecryptedSubject.fromJson(json['subject'] as Map), + subject: NextcloudNotificationsPushNotificationDecryptedSubject.fromJson(json['subject'] as Map), ); } -Map _$NotificationsPushNotificationToJson(NotificationsPushNotification instance) => { +Map _$NextcloudNotificationsPushNotificationToJson(NextcloudNotificationsPushNotification instance) => + { 'accountID': instance.accountID, 'priority': instance.priority, 'type': instance.type, diff --git a/packages/nextcloud/lib/src/version_supported.dart b/packages/nextcloud/lib/src/version_supported.dart index 0c1a3fb4..6ccc4410 100644 --- a/packages/nextcloud/lib/src/version_supported.dart +++ b/packages/nextcloud/lib/src/version_supported.dart @@ -1,14 +1,14 @@ part of '../nextcloud.dart'; // ignore: public_member_api_docs -extension CoreVersionSupported on CoreClient { +extension CoreVersionSupported on NextcloudCoreClient { /// Checks if the app on the server is supported by the client - Future isSupported([final CoreServerCapabilities_Ocs_Data? capabilities]) async => + Future isSupported([final NextcloudCoreServerCapabilities_Ocs_Data? capabilities]) async => (capabilities ?? (await getCapabilities()).ocs.data).version.major == 25; } // ignore: public_member_api_docs -extension NewsVersionSupported on NewsClient { +extension NewsVersionSupported on NextcloudNewsClient { /// Checks if the app on the server is supported by the client Future isSupported() async { final versions = await getSupportedApiVersions(); @@ -17,9 +17,9 @@ extension NewsVersionSupported on NewsClient { } // ignore: public_member_api_docs -extension NotesVersionSupported on NotesClient { +extension NotesVersionSupported on NextcloudNotesClient { /// Checks if the app on the server is supported by the client - Future isSupported([final CoreServerCapabilities_Ocs_Data? capabilities]) async => + Future isSupported([final NextcloudCoreServerCapabilities_Ocs_Data? capabilities]) async => (capabilities ?? (await rootClient.core.getCapabilities()).ocs.data) .capabilities .notes diff --git a/packages/nextcloud/lib/src/webdav/client.dart b/packages/nextcloud/lib/src/webdav/client.dart index 2d3633d6..f3e334ec 100644 --- a/packages/nextcloud/lib/src/webdav/client.dart +++ b/packages/nextcloud/lib/src/webdav/client.dart @@ -9,7 +9,7 @@ class WebDavClient { ); // ignore: public_member_api_docs - final Client rootClient; + final NextcloudClient rootClient; /// Base path used on the server final String basePath; @@ -54,7 +54,7 @@ class WebDavClient { final response = await request.close(); if (!expectedCodes.contains(response.statusCode)) { - throw ApiException( + throw NextcloudApiException( response.statusCode, {}, // TODO await response.bodyBytes, diff --git a/packages/nextcloud/test/news.dart b/packages/nextcloud/test/news.dart index d4000094..7a2b3c7c 100644 --- a/packages/nextcloud/test/news.dart +++ b/packages/nextcloud/test/news.dart @@ -20,12 +20,12 @@ Future run(final DockerImage image) async { }); tearDown(() => container.destroy()); - Future addWikipediaFeed([final int? folderID]) => client.news.addFeed( + Future addWikipediaFeed([final int? folderID]) => client.news.addFeed( url: wikipediaFeedURL, folderId: folderID, ); - Future addNasaFeed() => client.news.addFeed( + Future addNasaFeed() => client.news.addFeed( url: nasaFeedURL, ); diff --git a/packages/nextcloud/test/notes.dart b/packages/nextcloud/test/notes.dart index ff6583bf..9b6fed66 100644 --- a/packages/nextcloud/test/notes.dart +++ b/packages/nextcloud/test/notes.dart @@ -96,7 +96,7 @@ Future run(final DockerImage image) async { title: 'c', ifMatch: '"${response.etag}"', ), - throwsA(predicate((final e) => (e! as ApiException).statusCode == 412)), + throwsA(predicate((final e) => (e! as NextcloudApiException).statusCode == 412)), ); }); @@ -116,25 +116,25 @@ Future run(final DockerImage image) async { final response = await client.notes.getSettings(); expect(response.notesPath, 'Notes'); expect(response.fileSuffix, '.txt'); - expect(response.noteMode, NotesSettings_NoteMode.edit); + expect(response.noteMode, NextcloudNotesSettings_NoteMode.edit); }); test('Update settings', () async { var response = await client.notes.updateSettings( - notesSettings: NotesSettings( + notesSettings: NextcloudNotesSettings( notesPath: 'Test Notes', fileSuffix: '.md', - noteMode: NotesSettings_NoteMode.preview, + noteMode: NextcloudNotesSettings_NoteMode.preview, ), ); expect(response.notesPath, 'Test Notes'); expect(response.fileSuffix, '.md'); - expect(response.noteMode, NotesSettings_NoteMode.preview); + expect(response.noteMode, NextcloudNotesSettings_NoteMode.preview); response = await client.notes.getSettings(); expect(response.notesPath, 'Test Notes'); expect(response.fileSuffix, '.md'); - expect(response.noteMode, NotesSettings_NoteMode.preview); + expect(response.noteMode, NextcloudNotesSettings_NoteMode.preview); }); }); } diff --git a/packages/nextcloud/test/user_status.dart b/packages/nextcloud/test/user_status.dart index a8104254..9ad0d344 100644 --- a/packages/nextcloud/test/user_status.dart +++ b/packages/nextcloud/test/user_status.dart @@ -29,20 +29,20 @@ Future run(final DockerImage image) async { } final meeting = response.ocs.data.singleWhere((final s) => s.id == 'meeting').clearAt.userStatusClearAt!; - expect(meeting.type, UserStatusClearAt_Type.period); + expect(meeting.type, NextcloudUserStatusClearAt_Type.period); expect(meeting.time.$int, 3600); final commuting = response.ocs.data.singleWhere((final s) => s.id == 'commuting').clearAt.userStatusClearAt!; - expect(commuting.type, UserStatusClearAt_Type.period); + expect(commuting.type, NextcloudUserStatusClearAt_Type.period); expect(commuting.time.$int, 1800); 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); + expect(remoteWork.type, NextcloudUserStatusClearAt_Type.endOf); + expect(remoteWork.time.userStatusClearAtTime0, NextcloudUserStatusClearAt_Time0.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(sickLeave.type, NextcloudUserStatusClearAt_Type.endOf); + expect(sickLeave.time.userStatusClearAtTime0, NextcloudUserStatusClearAt_Time0.day); final vacationing = response.ocs.data.singleWhere((final s) => s.id == 'vacationing').clearAt; expect(vacationing.userStatusClearAt, null); @@ -50,7 +50,7 @@ Future run(final DockerImage image) async { }); test('Set status', () async { - final response = await client.userStatus.setStatus(statusType: UserStatusType.online); + final response = await client.userStatus.setStatus(statusType: NextcloudUserStatusType.online); expect(response.ocs.data.userStatus!.userId, 'user1'); expect(response.ocs.data.userStatus!.message, null); @@ -59,14 +59,14 @@ Future run(final DockerImage image) async { 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!.status, NextcloudUserStatusType.online); expect(response.ocs.data.userStatus!.statusIsUserDefined, true); }); test('Get status', () async { // There seems to be a bug in Nextcloud which makes getting the status fail before it has been set once. // The error message from Nextcloud is "Could not create folder" - await client.userStatus.setStatus(statusType: UserStatusType.online); + await client.userStatus.setStatus(statusType: NextcloudUserStatusType.online); final response = await client.userStatus.getStatus(); expect(response.ocs.data.userStatus!.userId, 'user1'); @@ -76,7 +76,7 @@ Future run(final DockerImage image) async { 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!.status, NextcloudUserStatusType.online); expect(response.ocs.data.userStatus!.statusIsUserDefined, true); }); @@ -84,7 +84,7 @@ Future run(final DockerImage image) async { var response = await client.userStatus.findAllStatuses(); expect(response.ocs.data, hasLength(0)); - await client.userStatus.setStatus(statusType: UserStatusType.online); + await client.userStatus.setStatus(statusType: NextcloudUserStatusType.online); response = await client.userStatus.findAllStatuses(); expect(response.ocs.data, hasLength(1)); @@ -93,12 +93,12 @@ Future run(final DockerImage image) async { 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); + expect(response.ocs.data[0].status, NextcloudUserStatusType.online); }); test('Find status', () async { // Same as getting status - await client.userStatus.setStatus(statusType: UserStatusType.online); + await client.userStatus.setStatus(statusType: NextcloudUserStatusType.online); final response = await client.userStatus.findStatus(userId: 'user1'); expect(response.ocs.data.userStatusPublicUserStatus!.userId, 'user1'); @@ -106,7 +106,7 @@ Future run(final DockerImage image) async { 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); + expect(response.ocs.data.userStatusPublicUserStatus!.status, NextcloudUserStatusType.online); }); test('Set predefined message', () async { @@ -121,7 +121,7 @@ Future run(final DockerImage image) async { 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!.status, NextcloudUserStatusType.offline); expect(response.ocs.data.userStatus!.statusIsUserDefined, false); }); @@ -138,7 +138,7 @@ Future run(final DockerImage image) async { 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!.status, NextcloudUserStatusType.offline); expect(response.ocs.data.userStatus!.statusIsUserDefined, false); }); @@ -159,12 +159,12 @@ Future run(final DockerImage image) async { 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!.status, NextcloudUserStatusType.offline); expect(response.ocs.data.userStatus!.statusIsUserDefined, false); }); test('Heartbeat', () async { - final response = await client.userStatus.heartbeat(status: UserStatusType.online); + final response = await client.userStatus.heartbeat(status: NextcloudUserStatusType.online); expect(response.userId, 'user1'); expect(response.message, null); expect(response.messageId, null); @@ -172,7 +172,7 @@ Future run(final DockerImage image) async { expect(response.icon, null); expect(response.clearAt.userStatusClearAt, null); expect(response.clearAt.$int, null); - expect(response.status, UserStatusType.online); + expect(response.status, NextcloudUserStatusType.online); expect(response.statusIsUserDefined, false); }); }); diff --git a/packages/nextcloud/test/webdav.dart b/packages/nextcloud/test/webdav.dart index 41e31f85..09c948f1 100644 --- a/packages/nextcloud/test/webdav.dart +++ b/packages/nextcloud/test/webdav.dart @@ -107,7 +107,7 @@ Future run(final DockerImage image) async { expect( () => client.webdav.copy('1.txt', '2.txt'), - throwsA(predicate((final e) => (e! as ApiException).statusCode == 412)), + throwsA(predicate((final e) => (e! as NextcloudApiException).statusCode == 412)), ); }); @@ -140,7 +140,7 @@ Future run(final DockerImage image) async { expect( () => client.webdav.move('1.txt', '2.txt'), - throwsA(predicate((final e) => (e! as ApiException).statusCode == 412)), + throwsA(predicate((final e) => (e! as NextcloudApiException).statusCode == 412)), ); });