From 7bbfeed5c580db570085eeaf9081cd3a7307ab66 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 23 Nov 2022 10:01:39 +0100 Subject: [PATCH] dynamite,nextcloud: Refactor data conversion --- packages/dynamite/lib/dynamite.dart | 6 + .../dynamite/lib/src/openapi_builder.dart | 227 +--- .../dynamite/lib/src/type_result/base.dart | 26 + .../dynamite/lib/src/type_result/enum.dart | 22 + .../dynamite/lib/src/type_result/list.dart | 22 + .../dynamite/lib/src/type_result/map.dart | 22 + .../dynamite/lib/src/type_result/object.dart | 19 + .../lib/src/type_result/type_result.dart | 15 + .../nextcloud/lib/src/nextcloud.openapi.dart | 1081 ++++++----------- 9 files changed, 585 insertions(+), 855 deletions(-) create mode 100644 packages/dynamite/lib/src/type_result/base.dart create mode 100644 packages/dynamite/lib/src/type_result/enum.dart create mode 100644 packages/dynamite/lib/src/type_result/list.dart create mode 100644 packages/dynamite/lib/src/type_result/map.dart create mode 100644 packages/dynamite/lib/src/type_result/object.dart create mode 100644 packages/dynamite/lib/src/type_result/type_result.dart diff --git a/packages/dynamite/lib/dynamite.dart b/packages/dynamite/lib/dynamite.dart index 2e59b2df..a030c8e1 100644 --- a/packages/dynamite/lib/dynamite.dart +++ b/packages/dynamite/lib/dynamite.dart @@ -13,3 +13,9 @@ import 'package:dynamite/src/models/tag.dart'; import 'package:path/path.dart' as p; part 'src/openapi_builder.dart'; +part 'src/type_result/base.dart'; +part 'src/type_result/enum.dart'; +part 'src/type_result/list.dart'; +part 'src/type_result/map.dart'; +part 'src/type_result/object.dart'; +part 'src/type_result/type_result.dart'; diff --git a/packages/dynamite/lib/src/openapi_builder.dart b/packages/dynamite/lib/src/openapi_builder.dart index 0ad95e98..3d65474e 100644 --- a/packages/dynamite/lib/src/openapi_builder.dart +++ b/packages/dynamite/lib/src/openapi_builder.dart @@ -302,14 +302,14 @@ class OpenAPIBuilder implements Builder { } } - TypeResolveResult resolveType( + TypeResult resolveType( final String identifier, final Schema schema, { final bool ignoreEnum = false, final Map? extraJsonSerializableValues, final Map>? extraJsonKeyValues, }) { - TypeResolveResult? result; + TypeResult? result; if (schema.ref != null) { final name = schema.ref!.split('/').last; result = resolveType( @@ -341,8 +341,8 @@ class OpenAPIBuilder implements Builder { (final b) { final fields = {}; for (final result in results) { - final dartName = _toDartName(result.typeName); - fields[result.typeName] = _toFieldName(dartName, result.typeName); + final dartName = _toDartName(result.name); + fields[result.name] = _toFieldName(dartName, result.name); } b @@ -361,8 +361,8 @@ class OpenAPIBuilder implements Builder { (final b) { final s = schema.ofs![results.indexOf(result)]; b - ..name = fields[result.typeName]! - ..type = refer(_makeNullable(result.typeName, true)) + ..name = fields[result.name]! + ..type = refer(_makeNullable(result.name, true)) ..modifier = FieldModifier.final$ ..docs.addAll([ if (s.description != null && s.description!.isNotEmpty) ...[ @@ -387,7 +387,7 @@ class OpenAPIBuilder implements Builder { for (final result in results) ...[ Parameter( (final b) => b - ..name = fields[result.typeName]! + ..name = fields[result.name]! ..toThis = true ..named = true, ), @@ -409,9 +409,9 @@ class OpenAPIBuilder implements Builder { ..body = Code( [ for (final result in results) ...[ - '${result.typeName}? ${fields[result.typeName]!};', + '${result.name}? ${fields[result.name]!};', 'try {', - '${fields[result.typeName]!} = ${_deserializeFunctionForType('data', result)};', + '${fields[result.name]!} = ${result.deserialize('data')};', '} catch (_) {', '}', ], @@ -424,7 +424,7 @@ class OpenAPIBuilder implements Builder { 'return $identifier(', 'data,', for (final result in results) ...[ - '${fields[result.typeName]!}: ${fields[result.typeName]!},', + '${fields[result.name]!}: ${fields[result.name]!},', ], ');', ].join(), @@ -446,28 +446,25 @@ class OpenAPIBuilder implements Builder { ); } - result = TypeResolveResult( - identifier, - isBaseType: false, - ); + result = TypeResultObject(identifier); } else { switch (schema.type) { case 'boolean': - result = TypeResolveResult('bool'); + result = TypeResultBase('bool'); break; case 'integer': - result = TypeResolveResult('int'); + result = TypeResultBase('int'); break; case 'number': - result = TypeResolveResult('num'); + result = TypeResultBase('num'); break; case 'string': switch (schema.format) { case 'binary': - result = TypeResolveResult('Uint8List'); + result = TypeResultBase('Uint8List'); break; case null: - result = TypeResolveResult( + result = TypeResultBase( 'String', ); break; @@ -480,30 +477,26 @@ class OpenAPIBuilder implements Builder { schema.items!, extraJsonSerializableValues: extraJsonSerializableValues, ); - result = TypeResolveResult( - 'List<${subResult.typeName}>', - isBaseType: false, - isList: true, - subType: subResult, + result = TypeResultList( + 'List<${subResult.name}>', + subResult, ); } else { - result = TypeResolveResult( + result = TypeResultList( 'List', - isBaseType: false, - isList: true, + TypeResultBase('dynamic'), ); } break; case 'object': if (schema.properties == null) { - result = TypeResolveResult('dynamic'); + result = TypeResultBase('dynamic'); break; } if (schema.properties!.isEmpty) { - result = TypeResolveResult( + result = TypeResultMap( 'Map', - isBaseType: false, - isMap: true, + TypeResultBase('dynamic'), ); break; } @@ -590,7 +583,7 @@ class OpenAPIBuilder implements Builder { ..name = _toDartName(propertyName) ..type = refer( _makeNullable( - result.typeName, + result.name, !(schema.required ?? []).contains(propertyName), ), ) @@ -628,10 +621,7 @@ class OpenAPIBuilder implements Builder { ).accept(emitter).toString(), ); } - result = TypeResolveResult( - identifier, - isBaseType: false, - ); + result = TypeResultObject(identifier); break; } } @@ -662,7 +652,7 @@ class OpenAPIBuilder implements Builder { Field( (final b) => b ..name = 'value' - ..type = refer(result!.typeName) + ..type = refer(result!.name) ..modifier = FieldModifier.final$, ), ) @@ -679,10 +669,10 @@ class OpenAPIBuilder implements Builder { b ..name = _toDartName(value.toString()) ..arguments.add( - refer(_valueToEscapedValue(result.typeName, value)), + refer(_valueToEscapedValue(result.name, value)), ); if (_toDartName(value.toString()) != value.toString()) { - if (result.typeName != 'String' && result.typeName != 'int') { + if (result.name != 'String' && result.name != 'int') { throw Exception( 'Sorry enum values are a bit broken. ' 'See https://github.com/google/json_serializable.dart/issues/616. ' @@ -691,7 +681,7 @@ class OpenAPIBuilder implements Builder { } b.annotations.add( refer('JsonValue').call([ - refer(_valueToEscapedValue(result.typeName, value.toString())), + refer(_valueToEscapedValue(result.name, value.toString())), ]), ); } @@ -709,14 +699,14 @@ class OpenAPIBuilder implements Builder { Parameter( (final b) => b ..name = 'value' - ..type = refer(result!.typeName), + ..type = refer(result!.name), ), ) ..body = Code( [ 'switch (value) {', for (final value in schema.enum_!) ...[ - 'case ${_valueToEscapedValue(result!.typeName, value)}:', + 'case ${_valueToEscapedValue(result!.name, value)}:', 'return $identifier.${_toDartName(value.toString())};', ], 'default:', @@ -729,12 +719,7 @@ class OpenAPIBuilder implements Builder { ).accept(emitter).toString(), ); } - result = TypeResolveResult( - identifier, - isBaseType: false, - isEnum: true, - subType: result, - ); + result = TypeResultEnum(identifier, result); } return result; @@ -1012,12 +997,12 @@ class OpenAPIBuilder implements Builder { parameter.schema!.type!, parameter.schema!, ); - b.defaultTo = Code(_valueToEscapedValue(result.typeName, value)); + b.defaultTo = Code(_valueToEscapedValue(result.name, value)); } b.type = refer( _makeNullable( - result.typeName, + result.name, nullable, ), ); @@ -1029,21 +1014,21 @@ class OpenAPIBuilder implements Builder { if (nullable) { code.write('if (${_toDartName(parameter.name)} != null) {'); } - final enumValueGetter = result.isEnum ? '.value' : ''; + final value = result.encode(result.serialize(_toDartName(parameter.name))); switch (parameter.in_) { case 'path': code.write( - "path = path.replaceAll('{${parameter.name}}', Uri.encodeQueryComponent(${_toDartName(parameter.name)}$enumValueGetter.toString()));", + "path = path.replaceAll('{${parameter.name}}', Uri.encodeQueryComponent($value));", ); break; case 'query': code.write( - "queryParameters['${parameter.name}${result.isList ? '[]' : ''}'] = ${_toDartName(parameter.name)}$enumValueGetter${result.isList ? '.map((final x) => x.toString()).toList()' : '.toString()'};", + "queryParameters['${parameter.name}${result is TypeResultList ? '[]' : ''}'] = $value;", ); break; case 'header': code.write( - "headers['${parameter.name}'] = ${_toDartName(parameter.name)}$enumValueGetter.toString();", + "headers['${parameter.name}'] = $value;", ); break; default: @@ -1072,8 +1057,8 @@ class OpenAPIBuilder implements Builder { b.optionalParameters.add( Parameter( (final b) => b - ..name = _toDartName(result.typeName) - ..type = refer(result.typeName) + ..name = _toDartName(result.name) + ..type = refer(result.name) ..named = true ..required = operation.requestBody!.required ?? false, ), @@ -1083,10 +1068,10 @@ class OpenAPIBuilder implements Builder { mediaType.schema?.default_, ); if (nullable) { - code.write('if (${_toDartName(result.typeName)} != null) {'); + code.write('if (${_toDartName(result.name)} != null) {'); } code.write( - 'body = Uint8List.fromList(utf8.encode(${result.isBaseType ? '' : 'json.encode('}${_serializeFunctionForType(_toDartName(result.typeName), result)}${result.isBaseType ? '' : ')'}));', + 'body = Uint8List.fromList(utf8.encode(${result.encode(result.serialize(_toDartName(result.name)))}));', ); if (nullable) { code.write('}'); @@ -1131,7 +1116,7 @@ class OpenAPIBuilder implements Builder { response.headers![headerName]!.schema!, ); output.add( - '${result.typeName} $functionIdentifier(final Map data, final String key) => ${_parseFromStringFunctionForType('data[key]', result)};', + '${result.name} $functionIdentifier(final Map data, final String key) => ${result.deserialize(result.decode('data[key]'))};', ); } final result = resolveType( @@ -1155,8 +1140,8 @@ class OpenAPIBuilder implements Builder { }, }, ); - headersType = result.typeName; - headersValue = _deserializeFunctionForType('response.headers', result); + headersType = result.name; + headersValue = result.deserialize('response.headers'); } String? dataType; @@ -1174,13 +1159,8 @@ class OpenAPIBuilder implements Builder { ); switch (mimeType) { case 'application/json': - dataType = result.typeName; - dataValue = _deserializeFunctionForType( - result.isBaseType - ? 'utf8.decode(response.body)' - : 'json.decode(utf8.decode(response.body))', - result, - ); + dataType = result.name; + dataValue = result.deserialize(result.decode('utf8.decode(response.body)')); break; case 'image/png': dataType = 'Uint8List'; @@ -1236,8 +1216,8 @@ class OpenAPIBuilder implements Builder { identifier, schema, ); - if (result.isBaseType) { - output.add('typedef $identifier = ${result.typeName};'); + if (result is TypeResultBase) { + output.add('typedef $identifier = ${result.name};'); } } } @@ -1248,47 +1228,15 @@ class OpenAPIBuilder implements Builder { '// coverage:ignore-start', 'final _deserializers = {', for (final name in registeredJsonObjects) ...[ - '$name: (final data) => ${_deserializeFunctionForType( - 'data', - TypeResolveResult( - name, - isBaseType: false, - ), - )},', - 'List<$name>: (final data) => ${_deserializeFunctionForType( - 'data', - TypeResolveResult( - 'List<$name>', - isList: true, - subType: TypeResolveResult( - name, - isBaseType: false, - ), - ), - )},', + '$name: (final data) => ${TypeResultObject(name).deserialize('data')},', + 'List<$name>: (final data) => ${TypeResultList('List<$name>', TypeResultObject(name)).deserialize('data')},', ], '};', '', 'final _serializers = {', for (final name in registeredJsonObjects) ...[ - '$name: (final data) => ${_serializeFunctionForType( - 'data', - TypeResolveResult( - name, - isBaseType: false, - ), - )},', - 'List<$name>: (final data) => ${_serializeFunctionForType( - 'data', - TypeResolveResult( - 'List<$name>', - isList: true, - subType: TypeResolveResult( - name, - isBaseType: false, - ), - ), - )},', + '$name: (final data) => ${TypeResultObject(name).serialize('data')},', + 'List<$name>: (final data) => ${TypeResultList('List<$name>', TypeResultObject(name)).serialize('data')},', ], '};', '', @@ -1433,73 +1381,6 @@ String _makeNullable(final String type, final bool nullable) => nullable && type String _toFieldName(final String dartName, final String type) => dartName == type ? '\$$dartName' : dartName; -class TypeResolveResult { - TypeResolveResult( - this.typeName, { - this.isBaseType = true, - this.isList = false, - this.isMap = false, - this.isEnum = false, - this.subType, - }); - - final String typeName; - final bool isBaseType; - final bool isList; - final bool isMap; - final bool isEnum; - final TypeResolveResult? subType; -} - -String _serializeFunctionForType(final String object, final TypeResolveResult result) { - if (result.isList) { - return '($object as ${result.typeName}).map((final e) => ${_serializeFunctionForType('e', result.subType!)}).toList()'; - } else if (result.isMap) { - return '($object as ${result.typeName})'; - } else if (result.isBaseType) { - return '$object.toString()'; - } else if (result.isEnum) { - return '($object as ${result.typeName}).value'; - } else { - return '($object as ${result.typeName}).toJson()'; - } -} - -String _deserializeFunctionForType(final String object, final TypeResolveResult result) { - if (result.isList) { - if (result.subType == null) { - return '$object as List'; - } - return '($object as List).map<${result.subType!.typeName}>((final e) => ${_deserializeFunctionForType('e', result.subType!)}).toList()'; - } else if (result.isMap) { - return '$object as Map'; - } else if (result.isBaseType) { - return '$object as ${result.typeName}'; - } else if (result.isEnum) { - return '${result.typeName}.fromValue($object as ${result.subType!.typeName})'; - } else { - return '${result.typeName}.fromJson($object as Map)'; - } -} - -String _parseFromStringFunctionForType(final String object, final TypeResolveResult result) { - final o = '$object as String'; - if (result.isBaseType) { - switch (result.typeName) { - case 'String': - return o; - case 'int': - return 'int.parse($o)'; - default: - throw Exception('Can not parse "${result.typeName}" from String'); - } - } else if (result.isEnum) { - return _parseFromStringFunctionForType(o, result.subType!); - } else { - return 'json.decode($o)'; - } -} - bool _isParameterNullable(final bool? required, final dynamic default_) => !(required ?? false) && default_ == null; String _valueToEscapedValue(final String type, final dynamic value) => type == 'String' ? "'$value'" : value.toString(); diff --git a/packages/dynamite/lib/src/type_result/base.dart b/packages/dynamite/lib/src/type_result/base.dart new file mode 100644 index 00000000..d477af21 --- /dev/null +++ b/packages/dynamite/lib/src/type_result/base.dart @@ -0,0 +1,26 @@ +part of '../../dynamite.dart'; + +class TypeResultBase extends TypeResult { + TypeResultBase(super.typeName); + + @override + String serialize(final String object) => object; + + @override + String encode(final String object) => '$object.toString()'; + + @override + String deserialize(final String object) => '($object as $name)'; + + @override + String decode(final String object) { + switch (name) { + case 'String': + return '($object as String)'; + case 'int': + return 'int.parse($object as String)'; + default: + throw Exception('Can not decode "$name" from String'); + } + } +} diff --git a/packages/dynamite/lib/src/type_result/enum.dart b/packages/dynamite/lib/src/type_result/enum.dart new file mode 100644 index 00000000..ec56a90c --- /dev/null +++ b/packages/dynamite/lib/src/type_result/enum.dart @@ -0,0 +1,22 @@ +part of '../../dynamite.dart'; + +class TypeResultEnum extends TypeResult { + TypeResultEnum( + super.typeName, + this.subType, + ); + + final TypeResult subType; + + @override + String serialize(final String object) => '$object.value'; + + @override + String encode(final String object) => subType.encode(object); + + @override + String deserialize(final String object) => '$name.fromValue($object as ${subType.name})'; + + @override + String decode(final String object) => subType.decode(object); +} diff --git a/packages/dynamite/lib/src/type_result/list.dart b/packages/dynamite/lib/src/type_result/list.dart new file mode 100644 index 00000000..a547a76e --- /dev/null +++ b/packages/dynamite/lib/src/type_result/list.dart @@ -0,0 +1,22 @@ +part of '../../dynamite.dart'; + +class TypeResultList extends TypeResult { + TypeResultList( + super.typeName, + this.subType, + ); + + final TypeResult subType; + + @override + String serialize(final String object) => '$object.map((final e) => ${subType.serialize('e')}).toList()'; + + @override + String encode(final String object) => 'json.encode($object)'; + + @override + String deserialize(final String object) => '($object as List).map((final e) => ${subType.deserialize('e')}).toList()'; + + @override + String decode(final String object) => 'json.decode($object as String)'; +} diff --git a/packages/dynamite/lib/src/type_result/map.dart b/packages/dynamite/lib/src/type_result/map.dart new file mode 100644 index 00000000..db5a56ef --- /dev/null +++ b/packages/dynamite/lib/src/type_result/map.dart @@ -0,0 +1,22 @@ +part of '../../dynamite.dart'; + +class TypeResultMap extends TypeResult { + TypeResultMap( + super.typeName, + this.subType, + ); + + final TypeResult subType; + + @override + String serialize(final String object) => object; + + @override + String encode(final String object) => 'json.encode($object)'; + + @override + String deserialize(final String object) => '($object as Map)'; + + @override + String decode(final String object) => 'json.decode($object as String)'; +} diff --git a/packages/dynamite/lib/src/type_result/object.dart b/packages/dynamite/lib/src/type_result/object.dart new file mode 100644 index 00000000..539f8431 --- /dev/null +++ b/packages/dynamite/lib/src/type_result/object.dart @@ -0,0 +1,19 @@ +part of '../../dynamite.dart'; + +class TypeResultObject extends TypeResult { + TypeResultObject( + super.typeName, + ); + + @override + String serialize(final String object) => '$object.toJson()'; + + @override + String encode(final String object) => 'json.encode($object)'; + + @override + String deserialize(final String object) => '$name.fromJson($object as Map)'; + + @override + String decode(final String object) => 'json.decode($object as String)'; +} diff --git a/packages/dynamite/lib/src/type_result/type_result.dart b/packages/dynamite/lib/src/type_result/type_result.dart new file mode 100644 index 00000000..25c79bed --- /dev/null +++ b/packages/dynamite/lib/src/type_result/type_result.dart @@ -0,0 +1,15 @@ +part of '../../dynamite.dart'; + +abstract class TypeResult { + TypeResult(this.name); + + final String name; + + String serialize(final String object); + + String deserialize(final String object); + + String decode(final String object); + + String encode(final String object); +} diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.dart b/packages/nextcloud/lib/src/nextcloud.openapi.dart index fe051775..0c79836b 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.dart @@ -1373,11 +1373,11 @@ class CoreNavigationApps_Ocs_Data_Order { factory CoreNavigationApps_Ocs_Data_Order.fromJson(dynamic data) { int? $int; try { - $int = data as int; + $int = (data as int); } catch (_) {} String? string; try { - string = data as String; + string = (data as String); } catch (_) {} assert([$int, string].where((final x) => x != null).length == 1, 'Need oneOf'); return CoreNavigationApps_Ocs_Data_Order( @@ -1544,7 +1544,7 @@ class CoreClient { body, ); if (response.statusCode == 200) { - return CoreServerStatus.fromJson(json.decode(utf8.decode(response.body)) as Map); + return CoreServerStatus.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -1561,7 +1561,7 @@ class CoreClient { body, ); if (response.statusCode == 200) { - return CoreServerCapabilities.fromJson(json.decode(utf8.decode(response.body)) as Map); + return CoreServerCapabilities.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -1578,7 +1578,7 @@ class CoreClient { body, ); if (response.statusCode == 200) { - return CoreNavigationApps.fromJson(json.decode(utf8.decode(response.body)) as Map); + return CoreNavigationApps.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -1595,7 +1595,7 @@ class CoreClient { body, ); if (response.statusCode == 200) { - return CoreLoginFlowInit.fromJson(json.decode(utf8.decode(response.body)) as Map); + return CoreLoginFlowInit.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -1613,7 +1613,7 @@ class CoreClient { body, ); if (response.statusCode == 200) { - return CoreLoginFlowResult.fromJson(json.decode(utf8.decode(response.body)) as Map); + return CoreLoginFlowResult.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -1918,7 +1918,8 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return GetSupportedApiVersions.fromJson(json.decode(utf8.decode(response.body)) as Map); + return GetSupportedApiVersions.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -1935,7 +1936,7 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsListFolders.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NewsListFolders.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -1953,7 +1954,7 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsListFolders.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NewsListFolders.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2032,7 +2033,7 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsListFeeds.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NewsListFeeds.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2056,7 +2057,7 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsListFeeds.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NewsListFeeds.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2172,7 +2173,7 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsListArticles.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NewsListArticles.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2196,7 +2197,7 @@ class NewsClient { body, ); if (response.statusCode == 200) { - return NewsListArticles.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NewsListArticles.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2393,8 +2394,8 @@ class NotesClient { body, ); if (response.statusCode == 200) { - return (json.decode(utf8.decode(response.body)) as List) - .map((final e) => NotesNote.fromJson(e as Map)) + return (json.decode(utf8.decode(response.body) as String) as List) + .map((final e) => NotesNote.fromJson(e as Map)) .toList(); } throw ApiException.fromResponse(response); // coverage:ignore-line @@ -2423,7 +2424,7 @@ class NotesClient { body, ); if (response.statusCode == 200) { - return NotesNote.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NotesNote.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2449,7 +2450,7 @@ class NotesClient { body, ); if (response.statusCode == 200) { - return NotesNote.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NotesNote.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2491,7 +2492,7 @@ class NotesClient { body, ); if (response.statusCode == 200) { - return NotesNote.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NotesNote.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2509,7 +2510,7 @@ class NotesClient { body, ); if (response.statusCode == 200) { - return utf8.decode(response.body) as String; + return ((utf8.decode(response.body) as String) as String); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2526,7 +2527,7 @@ class NotesClient { body, ); if (response.statusCode == 200) { - return NotesSettings.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NotesSettings.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2537,7 +2538,7 @@ class NotesClient { final headers = {}; Uint8List? body; headers['Content-Type'] = 'application/json'; - body = Uint8List.fromList(utf8.encode(json.encode((notesSettings as NotesSettings).toJson()))); + body = Uint8List.fromList(utf8.encode(json.encode(notesSettings.toJson()))); final response = await rootClient.doRequest( 'put', Uri(path: path, queryParameters: queryParameters).toString(), @@ -2545,7 +2546,7 @@ class NotesClient { body, ); if (response.statusCode == 200) { - return NotesSettings.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NotesSettings.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2560,7 +2561,7 @@ class NotificationsNotification_SubjectRichParameters { factory NotificationsNotification_SubjectRichParameters.fromJson(dynamic data) { Map? mapStringDynamic; try { - mapStringDynamic = data as Map; + mapStringDynamic = (data as Map); } catch (_) {} return NotificationsNotification_SubjectRichParameters( data, @@ -2586,7 +2587,7 @@ class NotificationsNotification_MessageRichParameters { factory NotificationsNotification_MessageRichParameters.fromJson(dynamic data) { Map? mapStringDynamic; try { - mapStringDynamic = data as Map; + mapStringDynamic = (data as Map); } catch (_) {} return NotificationsNotification_MessageRichParameters( data, @@ -2860,7 +2861,8 @@ class NotificationsClient { body, ); if (response.statusCode == 200) { - return NotificationsListNotifications.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NotificationsListNotifications.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2877,7 +2879,7 @@ class NotificationsClient { body, ); if (response.statusCode == 200) { - return utf8.decode(response.body) as String; + return ((utf8.decode(response.body) as String) as String); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2895,7 +2897,8 @@ class NotificationsClient { body, ); if (response.statusCode == 200) { - return NotificationsGetNotification.fromJson(json.decode(utf8.decode(response.body)) as Map); + return NotificationsGetNotification.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2913,7 +2916,7 @@ class NotificationsClient { body, ); if (response.statusCode == 200) { - return EmptyOCS.fromJson(json.decode(utf8.decode(response.body)) as Map); + return EmptyOCS.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2938,7 +2941,7 @@ class NotificationsClient { ); if (response.statusCode == 201) { return NotificationsPushServerRegistration.fromJson( - json.decode(utf8.decode(response.body)) as Map); + json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2955,7 +2958,7 @@ class NotificationsClient { body, ); if (response.statusCode == 202) { - return utf8.decode(response.body) as String; + return ((utf8.decode(response.body) as String) as String); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -2979,7 +2982,7 @@ class NotificationsClient { body, ); if (response.statusCode == 200) { - return EmptyOCS.fromJson(json.decode(utf8.decode(response.body)) as Map); + return EmptyOCS.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -3212,7 +3215,7 @@ class ProvisioningApiClient { body, ); if (response.statusCode == 200) { - return ProvisioningApiUser.fromJson(json.decode(utf8.decode(response.body)) as Map); + return ProvisioningApiUser.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -3230,7 +3233,7 @@ class ProvisioningApiClient { body, ); if (response.statusCode == 200) { - return ProvisioningApiUser.fromJson(json.decode(utf8.decode(response.body)) as Map); + return ProvisioningApiUser.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -3291,7 +3294,7 @@ class UserStatusClearAt_Time { } catch (_) {} int? $int; try { - $int = data as int; + $int = (data as int); } catch (_) {} assert([userStatusClearAtTime0, $int].where((final x) => x != null).length == 1, 'Need oneOf'); return UserStatusClearAt_Time( @@ -3345,7 +3348,7 @@ class UserStatusPublicUserStatus_ClearAt { } catch (_) {} int? $int; try { - $int = data as int; + $int = (data as int); } catch (_) {} return UserStatusPublicUserStatus_ClearAt( data, @@ -3525,7 +3528,7 @@ class UserStatus_ClearAt { } catch (_) {} int? $int; try { - $int = data as int; + $int = (data as int); } catch (_) {} return UserStatus_ClearAt( data, @@ -3654,7 +3657,7 @@ class UserStatusPredefinedStatus_ClearAt { } catch (_) {} int? $int; try { - $int = data as int; + $int = (data as int); } catch (_) {} return UserStatusPredefinedStatus_ClearAt( data, @@ -3749,7 +3752,8 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusFindAllStatuses.fromJson(json.decode(utf8.decode(response.body)) as Map); + return UserStatusFindAllStatuses.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -3767,7 +3771,7 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusFindStatus.fromJson(json.decode(utf8.decode(response.body)) as Map); + return UserStatusFindStatus.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -3784,7 +3788,8 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusGetUserStatus.fromJson(json.decode(utf8.decode(response.body)) as Map); + return UserStatusGetUserStatus.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -3802,7 +3807,8 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusGetUserStatus.fromJson(json.decode(utf8.decode(response.body)) as Map); + return UserStatusGetUserStatus.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -3826,7 +3832,8 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusGetUserStatus.fromJson(json.decode(utf8.decode(response.body)) as Map); + return UserStatusGetUserStatus.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -3856,7 +3863,8 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusGetUserStatus.fromJson(json.decode(utf8.decode(response.body)) as Map); + return UserStatusGetUserStatus.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -3890,7 +3898,8 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatusPredefinedStatuses.fromJson(json.decode(utf8.decode(response.body)) as Map); + return UserStatusPredefinedStatuses.fromJson( + json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -3908,7 +3917,7 @@ class UserStatusClient { body, ); if (response.statusCode == 200) { - return UserStatus.fromJson(json.decode(utf8.decode(response.body)) as Map); + return UserStatus.fromJson(json.decode(utf8.decode(response.body) as String) as Map); } throw ApiException.fromResponse(response); // coverage:ignore-line } @@ -3978,974 +3987,682 @@ class NotificationsPushNotification { 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(), + (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(), + 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(), + 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(), + 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(), + 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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Version.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Core.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.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) - .map((final e) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.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)) + .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) - .map((final e) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Activity.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.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) - .map((final e) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.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) - .map((final e) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson(e as Map)) .toList(), CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source: (final data) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( data as Map), List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( - e as Map)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.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) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.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) - .map((final e) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.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) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.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) - .map((final e) => + .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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Dav.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.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) - .map((final e) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.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) - .map((final e) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson(e as Map)) .toList(), CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate: (final data) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( data as Map), List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( - e as Map)) + .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( data as Map), - List: (final data) => - (data as List) - .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( - e as Map)) - .toList(), + List: (final data) => (data + as List) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( + e as Map)) + .toList(), CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote: (final data) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( data as Map), List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( - e as Map)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( + e as Map)) .toList(), CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User: (final data) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(data as Map), List: (final data) => (data as List) - .map((final e) => + .map((final e) => CoreServerCapabilities_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) - .map((final e) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.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) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.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( - e as Map)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.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) - .map((final e) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson(e as Map)) .toList(), CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate: (final data) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( data as Map), List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( - e as Map)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( + e as Map)) .toList(), CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported: (final data) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( data as Map), List: (final data) => (data as List) - .map((final e) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.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) - .map((final e) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.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) - .map((final e) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.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)) - .toList(), + List: (final data) => (data + as List) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( + e as Map)) + .toList(), CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password: (final data) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( data as Map), List: (final data) => (data as List) - .map((final e) => - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( - e as Map)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Notes.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Notifications.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy.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) => + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.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( + .map( (final e) => CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_Theming.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus.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)) + .map((final e) => CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus.fromJson(e as Map)) .toList(), CoreNavigationApps: (final data) => CoreNavigationApps.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => CoreNavigationApps.fromJson(e as Map)) - .toList(), + 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(), + 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(), + 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(), + 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(), + 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(), + List: (final data) => + (data as List).map((final e) => CoreLoginFlowResult.fromJson(e as Map)).toList(), GetSupportedApiVersions: (final data) => GetSupportedApiVersions.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => GetSupportedApiVersions.fromJson(e as Map)) - .toList(), + List: (final data) => + (data as List).map((final e) => GetSupportedApiVersions.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(), + (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(), + (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(), + (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(), + (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(), + (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(), + (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(), + (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(), + (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(), + 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(), + 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(), + 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(), + 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(), + 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(), + 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(), + (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(), + (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(), + 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)) + .map((final e) => NotificationsPushServerRegistration_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(), + 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(), + 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(), + 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(), + 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(), + 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)) + .map((final e) => ProvisioningApiUserDetails_BackendCapabilities.fromJson(e as Map)) .toList(), UserStatusFindAllStatuses: (final data) => UserStatusFindAllStatuses.fromJson(data as Map), - List: (final data) => (data as List) - .map((final e) => UserStatusFindAllStatuses.fromJson(e as Map)) - .toList(), + 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(), + 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(), + 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(), + 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(), + 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(), + 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(), + 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(), + 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(), + (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(), + 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(), + 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(), + 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(), + 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)) + .map((final e) => NotificationsPushNotificationDecryptedSubject.fromJson(e as Map)) .toList(), }; final _serializers = { - CoreServerStatus: (final data) => (data as CoreServerStatus).toJson(), - List: (final data) => - (data as List).map((final e) => (e as CoreServerStatus).toJson()).toList(), - CoreServerCapabilities: (final data) => (data as CoreServerCapabilities).toJson(), - List: (final data) => - (data as List).map((final e) => (e as CoreServerCapabilities).toJson()).toList(), - CoreServerCapabilities_Ocs: (final data) => (data as CoreServerCapabilities_Ocs).toJson(), - List: (final data) => - (data as List).map((final e) => (e as CoreServerCapabilities_Ocs).toJson()).toList(), - OCSMeta: (final data) => (data as OCSMeta).toJson(), - List: (final data) => (data as List).map((final e) => (e as OCSMeta).toJson()).toList(), - CoreServerCapabilities_Ocs_Data: (final data) => (data as CoreServerCapabilities_Ocs_Data).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Version: (final data) => (data as CoreServerCapabilities_Ocs_Data_Version).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Version).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Core: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Core).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Core).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce).toJson(), + 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) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Files: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Files).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Files).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing).toJson(), + 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) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Activity: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Activity).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Activity: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Activity).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Circles: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source).toJson(), - List: (final data) => (data - as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_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_Circle_Config: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Ocm).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Ocm).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes).toJson(), + 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) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Dav: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Dav).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Dav).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing).toJson(), + 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) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => - (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => - (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate).toJson(), - List: (final data) => (data - as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate).toJson()) - .toList(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_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) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported).toJson(), + data.toJson(), List: (final data) => - (data as List) - .map((final e) => - (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => - (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password).toJson(), - List: (final data) => (data - as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate).toJson(), - List: (final data) => (data - as List) - .map( - (final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Notes: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Notes).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Notes).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Notifications: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Notifications).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password: (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) => + 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) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Notifications).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_Theming: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_Theming).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_Theming: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_Theming).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus).toJson()) - .toList(), - CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus: (final data) => - (data as CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus).toJson(), + data.map((final e) => e.toJson()).toList(), + CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus: (final data) => data.toJson(), List: (final data) => - (data as List) - .map((final e) => (e as CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus).toJson()) - .toList(), - CoreNavigationApps: (final data) => (data as CoreNavigationApps).toJson(), - List: (final data) => - (data as List).map((final e) => (e as CoreNavigationApps).toJson()).toList(), - CoreNavigationApps_Ocs: (final data) => (data as CoreNavigationApps_Ocs).toJson(), - List: (final data) => - (data as List).map((final e) => (e as CoreNavigationApps_Ocs).toJson()).toList(), - CoreNavigationApps_Ocs_Data: (final data) => (data as CoreNavigationApps_Ocs_Data).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as CoreNavigationApps_Ocs_Data).toJson()) - .toList(), - CoreLoginFlowInit: (final data) => (data as CoreLoginFlowInit).toJson(), - List: (final data) => - (data as List).map((final e) => (e as CoreLoginFlowInit).toJson()).toList(), - CoreLoginFlowInit_Poll: (final data) => (data as CoreLoginFlowInit_Poll).toJson(), - List: (final data) => - (data as List).map((final e) => (e as CoreLoginFlowInit_Poll).toJson()).toList(), - CoreLoginFlowResult: (final data) => (data as CoreLoginFlowResult).toJson(), - List: (final data) => - (data as List).map((final e) => (e as CoreLoginFlowResult).toJson()).toList(), - GetSupportedApiVersions: (final data) => (data as GetSupportedApiVersions).toJson(), - List: (final data) => - (data as List).map((final e) => (e as GetSupportedApiVersions).toJson()).toList(), - NewsListFolders: (final data) => (data as NewsListFolders).toJson(), - List: (final data) => - (data as List).map((final e) => (e as NewsListFolders).toJson()).toList(), - NewsFolder: (final data) => (data as NewsFolder).toJson(), - List: (final data) => (data as List).map((final e) => (e as NewsFolder).toJson()).toList(), - NewsFeed: (final data) => (data as NewsFeed).toJson(), - List: (final data) => (data as List).map((final e) => (e as NewsFeed).toJson()).toList(), - NewsArticle: (final data) => (data as NewsArticle).toJson(), - List: (final data) => (data as List).map((final e) => (e as NewsArticle).toJson()).toList(), - NewsListFeeds: (final data) => (data as NewsListFeeds).toJson(), - List: (final data) => - (data as List).map((final e) => (e as NewsListFeeds).toJson()).toList(), - NewsListArticles: (final data) => (data as NewsListArticles).toJson(), - List: (final data) => - (data as List).map((final e) => (e as NewsListArticles).toJson()).toList(), - NotesNote: (final data) => (data as NotesNote).toJson(), - List: (final data) => (data as List).map((final e) => (e as NotesNote).toJson()).toList(), - NotesSettings: (final data) => (data as NotesSettings).toJson(), - List: (final data) => - (data as List).map((final e) => (e as NotesSettings).toJson()).toList(), - NotificationsListNotifications: (final data) => (data as NotificationsListNotifications).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as NotificationsListNotifications).toJson()) - .toList(), - NotificationsListNotifications_Ocs: (final data) => (data as NotificationsListNotifications_Ocs).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as NotificationsListNotifications_Ocs).toJson()) - .toList(), - NotificationsNotification: (final data) => (data as NotificationsNotification).toJson(), - List: (final data) => - (data as List).map((final e) => (e as NotificationsNotification).toJson()).toList(), - NotificationsNotificationAction: (final data) => (data as NotificationsNotificationAction).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as NotificationsNotificationAction).toJson()) - .toList(), - NotificationsGetNotification: (final data) => (data as NotificationsGetNotification).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as NotificationsGetNotification).toJson()) - .toList(), - NotificationsGetNotification_Ocs: (final data) => (data as NotificationsGetNotification_Ocs).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as NotificationsGetNotification_Ocs).toJson()) - .toList(), - EmptyOCS: (final data) => (data as EmptyOCS).toJson(), - List: (final data) => (data as List).map((final e) => (e as EmptyOCS).toJson()).toList(), - EmptyOCS_Ocs: (final data) => (data as EmptyOCS_Ocs).toJson(), - List: (final data) => - (data as List).map((final e) => (e as EmptyOCS_Ocs).toJson()).toList(), - NotificationsPushServerRegistration: (final data) => (data as NotificationsPushServerRegistration).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as NotificationsPushServerRegistration).toJson()) - .toList(), - NotificationsPushServerRegistration_Ocs: (final data) => (data as NotificationsPushServerRegistration_Ocs).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as NotificationsPushServerRegistration_Ocs).toJson()) - .toList(), - NotificationsPushServerSubscription: (final data) => (data as NotificationsPushServerSubscription).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as NotificationsPushServerSubscription).toJson()) - .toList(), - ProvisioningApiUser: (final data) => (data as ProvisioningApiUser).toJson(), - List: (final data) => - (data as List).map((final e) => (e as ProvisioningApiUser).toJson()).toList(), - ProvisioningApiUser_Ocs: (final data) => (data as ProvisioningApiUser_Ocs).toJson(), - List: (final data) => - (data as List).map((final e) => (e as ProvisioningApiUser_Ocs).toJson()).toList(), - ProvisioningApiUserDetails: (final data) => (data as ProvisioningApiUserDetails).toJson(), - List: (final data) => - (data as List).map((final e) => (e as ProvisioningApiUserDetails).toJson()).toList(), - ProvisioningApiUserDetails_Quota: (final data) => (data as ProvisioningApiUserDetails_Quota).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as ProvisioningApiUserDetails_Quota).toJson()) - .toList(), - ProvisioningApiUserDetails_BackendCapabilities: (final data) => - (data as ProvisioningApiUserDetails_BackendCapabilities).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as ProvisioningApiUserDetails_BackendCapabilities).toJson()) - .toList(), - UserStatusFindAllStatuses: (final data) => (data as UserStatusFindAllStatuses).toJson(), - List: (final data) => - (data as List).map((final e) => (e as UserStatusFindAllStatuses).toJson()).toList(), - UserStatusFindAllStatuses_Ocs: (final data) => (data as UserStatusFindAllStatuses_Ocs).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as UserStatusFindAllStatuses_Ocs).toJson()) - .toList(), - UserStatusPublicUserStatus: (final data) => (data as UserStatusPublicUserStatus).toJson(), - List: (final data) => - (data as List).map((final e) => (e as UserStatusPublicUserStatus).toJson()).toList(), - UserStatusClearAt: (final data) => (data as UserStatusClearAt).toJson(), - List: (final data) => - (data as List).map((final e) => (e as UserStatusClearAt).toJson()).toList(), - UserStatusFindStatus: (final data) => (data as UserStatusFindStatus).toJson(), - List: (final data) => - (data as List).map((final e) => (e as UserStatusFindStatus).toJson()).toList(), - UserStatusFindStatus_Ocs: (final data) => (data as UserStatusFindStatus_Ocs).toJson(), - List: (final data) => - (data as List).map((final e) => (e as UserStatusFindStatus_Ocs).toJson()).toList(), - UserStatusGetUserStatus: (final data) => (data as UserStatusGetUserStatus).toJson(), - List: (final data) => - (data as List).map((final e) => (e as UserStatusGetUserStatus).toJson()).toList(), - UserStatusGetUserStatus_Ocs: (final data) => (data as UserStatusGetUserStatus_Ocs).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as UserStatusGetUserStatus_Ocs).toJson()) - .toList(), - UserStatus: (final data) => (data as UserStatus).toJson(), - List: (final data) => (data as List).map((final e) => (e as UserStatus).toJson()).toList(), - UserStatusPredefinedStatuses: (final data) => (data as UserStatusPredefinedStatuses).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as UserStatusPredefinedStatuses).toJson()) - .toList(), - UserStatusPredefinedStatuses_Ocs: (final data) => (data as UserStatusPredefinedStatuses_Ocs).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as UserStatusPredefinedStatuses_Ocs).toJson()) - .toList(), - UserStatusPredefinedStatus: (final data) => (data as UserStatusPredefinedStatus).toJson(), - List: (final data) => - (data as List).map((final e) => (e as UserStatusPredefinedStatus).toJson()).toList(), - NotificationsPushNotification: (final data) => (data as NotificationsPushNotification).toJson(), - List: (final data) => (data as List) - .map((final e) => (e as NotificationsPushNotification).toJson()) - .toList(), - NotificationsPushNotificationDecryptedSubject: (final data) => - (data as NotificationsPushNotificationDecryptedSubject).toJson(), - List: (final data) => - (data as List) - .map((final e) => (e as NotificationsPushNotificationDecryptedSubject).toJson()) - .toList(), + 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(), + GetSupportedApiVersions: (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;