Browse Source

Merge pull request #147 from provokateurin/fix/capabilities

specs,nextcloud: Allow unknow capability keys at every level
pull/148/head
Kate 2 years ago committed by GitHub
parent
commit
fdfb10884f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 88
      packages/nextcloud/lib/src/nextcloud.openapi.dart
  2. 463
      packages/nextcloud/lib/src/nextcloud.openapi.g.dart
  3. 44
      packages/nextcloud/lib/src/nextcloud.openapi.json
  4. 44
      specs/core.json

88
packages/nextcloud/lib/src/nextcloud.openapi.dart

@ -1373,7 +1373,7 @@ class CoreServerCapabilities_Ocs_Data_Version {
static String toJsonString(CoreServerCapabilities_Ocs_Data_Version data) => json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Core {
CoreServerCapabilities_Ocs_Data_Capabilities_Core({
required this.pollinterval,
@ -1406,7 +1406,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Core {
static String toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Core data) => json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce {
CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce({required this.delay});
@ -1426,7 +1426,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable {
CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable({
required this.size,
@ -1452,7 +1452,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing {
CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing({
required this.url,
@ -1478,7 +1478,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Files {
CoreServerCapabilities_Ocs_Data_Capabilities_Files({
required this.bigfilechunking,
@ -1515,7 +1515,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Files {
static String toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Files data) => json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Activity {
CoreServerCapabilities_Ocs_Data_Capabilities_Activity({required this.apiv2});
@ -1534,7 +1534,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Activity {
static String toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Activity data) => json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status {
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status({required this.globalScale});
@ -1554,7 +1554,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings {
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings({
required this.frontendEnabled,
@ -1585,7 +1585,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source {
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source({
required this.core,
@ -1613,7 +1613,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Sour
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants {
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants({
required this.flags,
@ -1639,7 +1639,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config {
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config({
required this.coreFlags,
@ -1665,7 +1665,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle {
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle({
required this.constants,
@ -1690,7 +1690,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants {
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants({required this.level});
@ -1711,7 +1711,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member {
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member({
required this.constants,
@ -1736,7 +1736,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Circles {
CoreServerCapabilities_Ocs_Data_Capabilities_Circles({
required this.version,
@ -1769,7 +1769,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Circles {
static String toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Circles data) => json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols {
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols({required this.webdav});
@ -1792,7 +1792,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes {
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes({
required this.name,
@ -1821,7 +1821,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm {
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm({
required this.enabled,
@ -1851,7 +1851,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Ocm {
static String toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Ocm data) => json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Dav {
CoreServerCapabilities_Ocs_Data_Capabilities_Dav({
this.bulkupload,
@ -1875,7 +1875,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Dav {
static String toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Dav data) => json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password({
required this.enforced,
@ -1903,7 +1903,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate({required this.enabled});
@ -1926,7 +1926,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDat
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal({required this.enabled});
@ -1951,7 +1951,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDat
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote({required this.enabled});
@ -1975,7 +1975,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDat
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public({
required this.enabled,
@ -2028,7 +2028,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate({required this.enabled});
@ -2051,7 +2051,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User({
required this.sendMail,
@ -2079,7 +2079,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate({required this.enabled});
@ -2102,7 +2102,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group({
required this.enabled,
@ -2129,7 +2129,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate({required this.enabled});
@ -2152,7 +2152,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_Expir
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported({required this.enabled});
@ -2177,7 +2177,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_Expir
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation({
required this.outgoing,
@ -2211,7 +2211,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee({
required this.queryLookupDefault,
@ -2239,7 +2239,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop({required this.enabled});
@ -2264,7 +2264,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Uplo
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password({
required this.enabled,
@ -2292,7 +2292,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Pass
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate({
required this.enabled,
@ -2321,7 +2321,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Expi
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail({
required this.enabled,
@ -2359,7 +2359,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing {
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing({
required this.apiEnabled,
@ -2411,7 +2411,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Notes {
CoreServerCapabilities_Ocs_Data_Capabilities_Notes({
required this.apiVersion,
@ -2436,7 +2436,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Notes {
static String toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Notes data) => json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Notifications {
CoreServerCapabilities_Ocs_Data_Capabilities_Notifications({
required this.ocsEndpoints,
@ -2466,7 +2466,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Notifications {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api {
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api({
required this.generate,
@ -2492,7 +2492,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy {
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy({
required this.minLength,
@ -2529,7 +2529,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi {
CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi({
required this.version,
@ -2563,7 +2563,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi {
json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_Theming {
CoreServerCapabilities_Ocs_Data_Capabilities_Theming({
required this.name,
@ -2629,7 +2629,7 @@ class CoreServerCapabilities_Ocs_Data_Capabilities_Theming {
static String toJsonString(CoreServerCapabilities_Ocs_Data_Capabilities_Theming data) => json.encode(data.toJson());
}
@JsonSerializable()
@JsonSerializable(disallowUnrecognizedKeys: false)
class CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus {
CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus({
required this.enabled,

463
packages/nextcloud/lib/src/nextcloud.openapi.g.dart

@ -92,18 +92,13 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_VersionToJson(
};
CoreServerCapabilities_Ocs_Data_Capabilities_Core _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['pollinterval', 'webdav-root', 'reference-api', 'reference-regex'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Core(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Core(
pollinterval: json['pollinterval'] as int,
webdavRoot: json['webdav-root'] as String,
referenceApi: json['reference-api'] as bool,
referenceRegex: json['reference-regex'] as String,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Core instance) =>
@ -115,15 +110,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson(
};
CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce
_$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['delay'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce(
_$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce(
delay: json['delay'] as int,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce instance) =>
@ -132,16 +122,11 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceTo
};
CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable
_$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['size', 'gps'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable(
_$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable(
size: (json['size'] as List<dynamic>).map((e) => e as String).toList(),
gps: (json['gps'] as List<dynamic>).map((e) => e as String).toList(),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable instance) =>
@ -151,16 +136,11 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvai
};
CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing
_$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['url', 'etag'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing(
_$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing(
url: json['url'] as String,
etag: json['etag'] as String,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing instance) =>
@ -170,12 +150,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_Direct
};
CoreServerCapabilities_Ocs_Data_Capabilities_Files _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['bigfilechunking', 'blacklisted_files', 'directEditing', 'comments', 'undelete', 'versioning'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Files(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Files(
bigfilechunking: json['bigfilechunking'] as bool,
blacklistedFiles: (json['blacklisted_files'] as List<dynamic>).map((e) => e as String).toList(),
directEditing: CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(
@ -184,7 +160,6 @@ CoreServerCapabilities_Ocs_Data_Capabilities_Files _$CoreServerCapabilities_Ocs_
undelete: json['undelete'] as bool,
versioning: json['versioning'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Files instance) =>
@ -198,15 +173,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(
};
CoreServerCapabilities_Ocs_Data_Capabilities_Activity _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['apiv2'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Activity(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Activity(
apiv2: (json['apiv2'] as List<dynamic>).map((e) => e as String).toList(),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Activity instance) =>
@ -215,15 +185,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJs
};
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['globalScale'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status(
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status(
globalScale: json['globalScale'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status instance) =>
@ -232,18 +197,13 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Stat
};
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['frontendEnabled', 'allowedCircles', 'allowedUserTypes', 'membersLimit'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings(
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings(
frontendEnabled: json['frontendEnabled'] as bool,
allowedCircles: json['allowedCircles'] as int,
allowedUserTypes: json['allowedUserTypes'] as int,
membersLimit: json['membersLimit'] as int,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings instance) =>
@ -255,16 +215,11 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Sett
};
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['core', 'extra'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source(
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source(
core: json['core'],
extra: json['extra'],
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_SourceToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source instance) =>
@ -274,17 +229,12 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circ
};
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['flags', 'source'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants(
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants(
flags: json['flags'],
source: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson(
json['source'] as Map<String, dynamic>),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants instance) =>
@ -294,16 +244,11 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circ
};
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['coreFlags', 'systemFlags'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config(
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config(
coreFlags: (json['coreFlags'] as List<dynamic>).map((e) => e as int).toList(),
systemFlags: (json['systemFlags'] as List<dynamic>).map((e) => e as int).toList(),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config instance) =>
@ -313,18 +258,13 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circ
};
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['constants', 'config'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle(
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle(
constants: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson(
json['constants'] as Map<String, dynamic>),
config: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson(
json['config'] as Map<String, dynamic>),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle instance) =>
@ -334,15 +274,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circ
};
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['level'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants(
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants(
level: json['level'],
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_ConstantsToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants instance) =>
@ -351,17 +286,12 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Memb
};
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['constants', 'type'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member(
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member(
constants: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson(
json['constants'] as Map<String, dynamic>),
type: json['type'],
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member instance) =>
@ -371,12 +301,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Memb
};
CoreServerCapabilities_Ocs_Data_Capabilities_Circles _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['version', 'status', 'settings', 'circle', 'member'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Circles(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles(
version: json['version'] as String,
status:
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(json['status'] as Map<String, dynamic>),
@ -387,7 +313,6 @@ CoreServerCapabilities_Ocs_Data_Capabilities_Circles _$CoreServerCapabilities_Oc
member:
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(json['member'] as Map<String, dynamic>),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles instance) =>
@ -400,15 +325,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJso
};
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols
_$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['webdav'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols(
_$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols(
webdav: json['webdav'] as String,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols instance) =>
@ -417,18 +337,13 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_Resource
};
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes
_$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['name', 'shareTypes', 'protocols'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes(
_$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes(
name: json['name'] as String,
shareTypes: (json['shareTypes'] as List<dynamic>).map((e) => e as String).toList(),
protocols: CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson(
json['protocols'] as Map<String, dynamic>),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes instance) =>
@ -439,20 +354,16 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_Resource
};
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled', 'apiVersion', 'endPoint', 'resourceTypes'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Ocm(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm(
enabled: json['enabled'] as bool,
apiVersion: json['apiVersion'] as String,
endPoint: json['endPoint'] as String,
resourceTypes: (json['resourceTypes'] as List<dynamic>)
.map((e) => CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(e as Map<String, dynamic>))
.map(
(e) => CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(e as Map<String, dynamic>))
.toList(),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm instance) =>
@ -464,16 +375,11 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson(
};
CoreServerCapabilities_Ocs_Data_Capabilities_Dav _$CoreServerCapabilities_Ocs_Data_Capabilities_DavFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['bulkupload', 'chunking'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Dav(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Dav(
bulkupload: json['bulkupload'] as String?,
chunking: json['chunking'] as String,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_DavToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Dav instance) =>
@ -483,16 +389,11 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_DavToJson(
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enforced', 'askForOptionalPassword'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password(
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password(
enforced: json['enforced'] as bool,
askForOptionalPassword: json['askForOptionalPassword'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password instance) =>
@ -502,15 +403,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate(
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate(
enabled: json['enabled'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate instance) =>
@ -520,15 +416,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal(
enabled: json['enabled'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal instance) =>
@ -538,15 +429,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote(
enabled: json['enabled'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote instance) =>
@ -555,29 +441,16 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const [
'enabled',
'password',
'expire_date',
'multiple_links',
'expire_date_internal',
'expire_date_remote',
'send_mail',
'upload',
'upload_files_drop'
],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public(
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public(
enabled: json['enabled'] as bool,
password: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson(
json['password'] as Map<String, dynamic>),
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
multipleLinks: json['multiple_links'] as bool,
expireDateInternal: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson(
expireDateInternal:
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson(
json['expire_date_internal'] as Map<String, dynamic>),
expireDateRemote: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson(
json['expire_date_remote'] as Map<String, dynamic>),
@ -585,7 +458,6 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public
upload: json['upload'] as bool,
uploadFilesDrop: json['upload_files_drop'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public instance) =>
@ -602,15 +474,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate(
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate(
enabled: json['enabled'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate instance) =>
@ -619,17 +486,12 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['send_mail', 'expire_date'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User(
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User(
sendMail: json['send_mail'] as bool,
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User instance) =>
@ -639,15 +501,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate(
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate(
enabled: json['enabled'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate instance) =>
@ -656,17 +513,12 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled', 'expire_date'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group(
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group(
enabled: json['enabled'] as bool,
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group instance) =>
@ -677,15 +529,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate(
enabled: json['enabled'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate instance) =>
@ -695,15 +542,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported(
enabled: json['enabled'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported instance) =>
@ -712,12 +554,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['outgoing', 'incoming', 'expire_date', 'expire_date_supported'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation(
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation(
outgoing: json['outgoing'] as bool,
incoming: json['incoming'] as bool,
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson(
@ -726,7 +564,6 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson(
json['expire_date_supported'] as Map<String, dynamic>),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation instance) =>
@ -738,16 +575,11 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['query_lookup_default', 'always_show_unique'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee(
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee(
queryLookupDefault: json['query_lookup_default'] as bool,
alwaysShowUnique: json['always_show_unique'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee instance) =>
@ -758,15 +590,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop(
enabled: json['enabled'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop instance) =>
@ -776,16 +603,11 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled', 'enforced'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password(
enabled: json['enabled'] as bool,
enforced: json['enforced'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password instance) =>
@ -796,16 +618,11 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled', 'enforced'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate(
enabled: json['enabled'] as bool,
enforced: json['enforced'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate instance) =>
@ -815,22 +632,18 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled', 'send_password_by_mail', 'upload_files_drop', 'password', 'expire_date'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail(
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail(
enabled: json['enabled'] as bool,
sendPasswordByMail: json['send_password_by_mail'] as bool,
uploadFilesDrop: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson(
uploadFilesDrop:
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson(
json['upload_files_drop'] as Map<String, dynamic>),
password: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson(
json['password'] as Map<String, dynamic>),
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail instance) =>
@ -843,31 +656,17 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const [
'api_enabled',
'public',
'resharing',
'user',
'group_sharing',
'group',
'default_permissions',
'federation',
'sharee',
'sharebymail'
],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing(
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing(
apiEnabled: json['api_enabled'] as bool,
public: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(
json['public'] as Map<String, dynamic>),
resharing: json['resharing'] as bool,
user: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(json['user'] as Map<String, dynamic>),
user: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(
json['user'] as Map<String, dynamic>),
groupSharing: json['group_sharing'] as bool,
group:
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson(json['group'] as Map<String, dynamic>),
group: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson(
json['group'] as Map<String, dynamic>),
defaultPermissions: json['default_permissions'] as int,
federation: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson(
json['federation'] as Map<String, dynamic>),
@ -876,7 +675,6 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
sharebymail: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson(
json['sharebymail'] as Map<String, dynamic>),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing instance) =>
@ -894,16 +692,11 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
};
CoreServerCapabilities_Ocs_Data_Capabilities_Notes _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['api_version', 'version'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Notes(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Notes(
apiVersion: (json['api_version'] as List<dynamic>).map((e) => e as String).toList(),
version: json['version'] as String,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Notes instance) =>
@ -913,17 +706,12 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson(
};
CoreServerCapabilities_Ocs_Data_Capabilities_Notifications
_$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['ocs-endpoints', 'push', 'admin-notifications'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Notifications(
_$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Notifications(
ocsEndpoints: (json['ocs-endpoints'] as List<dynamic>).map((e) => e as String).toList(),
push: (json['push'] as List<dynamic>).map((e) => e as String).toList(),
adminNotifications: (json['admin-notifications'] as List<dynamic>).map((e) => e as String).toList(),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Notifications instance) =>
@ -934,16 +722,11 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Notification
};
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api
_$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['generate', 'validate'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api(
_$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api(
generate: json['generate'] as String,
validate: json['validate'] as String,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api instance) =>
@ -953,27 +736,16 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPoli
};
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy
_$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const [
'minLength',
'enforceNonCommonPassword',
'enforceNumericCharacters',
'enforceSpecialCharacters',
'enforceUpperLowerCase',
'api'
],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy(
_$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy(
minLength: json['minLength'] as int,
enforceNonCommonPassword: json['enforceNonCommonPassword'] as bool,
enforceNumericCharacters: json['enforceNumericCharacters'] as bool,
enforceSpecialCharacters: json['enforceSpecialCharacters'] as bool,
enforceUpperLowerCase: json['enforceUpperLowerCase'] as bool,
api: CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson(json['api'] as Map<String, dynamic>),
api: CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson(
json['api'] as Map<String, dynamic>),
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy instance) =>
@ -987,23 +759,13 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPoli
};
CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi
_$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const [
'version',
'AccountPropertyScopesVersion',
'AccountPropertyScopesFederatedEnabled',
'AccountPropertyScopesPublishedEnabled'
],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi(
_$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi(
version: json['version'] as String,
accountPropertyScopesVersion: json['AccountPropertyScopesVersion'] as int,
accountPropertyScopesFederatedEnabled: json['AccountPropertyScopesFederatedEnabled'] as bool,
accountPropertyScopesPublishedEnabled: json['AccountPropertyScopesPublishedEnabled'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi instance) =>
@ -1015,27 +777,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Provisioning
};
CoreServerCapabilities_Ocs_Data_Capabilities_Theming _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingFromJson(
Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const [
'name',
'url',
'slogan',
'color',
'color-text',
'color-element',
'color-element-bright',
'color-element-dark',
'logo',
'background',
'background-plain',
'background-default',
'logoheader',
'favicon'
],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_Theming(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Theming(
name: json['name'] as String,
url: json['url'] as String,
slogan: json['slogan'] as String,
@ -1051,7 +794,6 @@ CoreServerCapabilities_Ocs_Data_Capabilities_Theming _$CoreServerCapabilities_Oc
logoheader: json['logoheader'] as String,
favicon: json['favicon'] as String,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Theming instance) =>
@ -1073,16 +815,11 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJso
};
CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus
_$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
allowedKeys: const ['enabled', 'supports_emoji'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus(
_$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus(
enabled: json['enabled'] as bool,
supportsEmoji: json['supports_emoji'] as bool,
);
}
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus instance) =>

44
packages/nextcloud/lib/src/nextcloud.openapi.json

@ -202,6 +202,7 @@
"properties": {
"core": {
"type": "object",
"additionalProperties": true,
"required": [
"pollinterval",
"webdav-root",
@ -225,6 +226,7 @@
},
"bruteforce": {
"type": "object",
"additionalProperties": true,
"required": [
"delay"
],
@ -236,6 +238,7 @@
},
"metadataAvailable": {
"type": "object",
"additionalProperties": true,
"required": [
"size",
"gps"
@ -257,6 +260,7 @@
},
"files": {
"type": "object",
"additionalProperties": true,
"required": [
"bigfilechunking",
"blacklisted_files",
@ -277,6 +281,7 @@
},
"directEditing": {
"type": "object",
"additionalProperties": true,
"required": [
"url",
"etag"
@ -303,6 +308,7 @@
},
"activity": {
"type": "object",
"additionalProperties": true,
"required": [
"apiv2"
],
@ -317,6 +323,7 @@
},
"circles": {
"type": "object",
"additionalProperties": true,
"required": [
"version",
"status",
@ -330,6 +337,7 @@
},
"status": {
"type": "object",
"additionalProperties": true,
"required": [
"globalScale"
],
@ -341,6 +349,7 @@
},
"settings": {
"type": "object",
"additionalProperties": true,
"required": [
"frontendEnabled",
"allowedCircles",
@ -364,6 +373,7 @@
},
"circle": {
"type": "object",
"additionalProperties": true,
"required": [
"constants",
"config"
@ -371,6 +381,7 @@
"properties": {
"constants": {
"type": "object",
"additionalProperties": true,
"required": [
"flags",
"source"
@ -381,6 +392,7 @@
},
"source": {
"type": "object",
"additionalProperties": true,
"required": [
"core",
"extra"
@ -398,6 +410,7 @@
},
"config": {
"type": "object",
"additionalProperties": true,
"required": [
"coreFlags",
"systemFlags"
@ -421,6 +434,7 @@
},
"member": {
"type": "object",
"additionalProperties": true,
"required": [
"constants",
"type"
@ -428,6 +442,7 @@
"properties": {
"constants": {
"type": "object",
"additionalProperties": true,
"required": [
"level"
],
@ -446,6 +461,7 @@
},
"ocm": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"apiVersion",
@ -466,6 +482,7 @@
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"required": [
"name",
"shareTypes",
@ -483,6 +500,7 @@
},
"protocols": {
"type": "object",
"additionalProperties": true,
"required": [
"webdav"
],
@ -499,6 +517,7 @@
},
"dav": {
"type": "object",
"additionalProperties": true,
"required": [
"chunking"
],
@ -513,6 +532,7 @@
},
"files_sharing": {
"type": "object",
"additionalProperties": true,
"required": [
"api_enabled",
"public",
@ -531,6 +551,7 @@
},
"public": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"password",
@ -548,6 +569,7 @@
},
"password": {
"type": "object",
"additionalProperties": true,
"required": [
"enforced",
"askForOptionalPassword"
@ -563,6 +585,7 @@
},
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -577,6 +600,7 @@
},
"expire_date_internal": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -588,6 +612,7 @@
},
"expire_date_remote": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -613,6 +638,7 @@
},
"user": {
"type": "object",
"additionalProperties": true,
"required": [
"send_mail",
"expire_date"
@ -623,6 +649,7 @@
},
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -639,6 +666,7 @@
},
"group": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"expire_date"
@ -649,6 +677,7 @@
},
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -665,6 +694,7 @@
},
"federation": {
"type": "object",
"additionalProperties": true,
"required": [
"outgoing",
"incoming",
@ -680,6 +710,7 @@
},
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -691,6 +722,7 @@
},
"expire_date_supported": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -704,6 +736,7 @@
},
"sharee": {
"type": "object",
"additionalProperties": true,
"required": [
"query_lookup_default",
"always_show_unique"
@ -719,6 +752,7 @@
},
"sharebymail": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"send_password_by_mail",
@ -735,6 +769,7 @@
},
"upload_files_drop": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -746,6 +781,7 @@
},
"password": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"enforced"
@ -761,6 +797,7 @@
},
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"enforced"
@ -780,6 +817,7 @@
},
"notes": {
"type": "object",
"additionalProperties": true,
"required": [
"api_version",
"version"
@ -798,6 +836,7 @@
},
"notifications": {
"type": "object",
"additionalProperties": true,
"required": [
"ocs-endpoints",
"push",
@ -826,6 +865,7 @@
},
"password_policy": {
"type": "object",
"additionalProperties": true,
"required": [
"minLength",
"enforceNonCommonPassword",
@ -852,6 +892,7 @@
},
"api": {
"type": "object",
"additionalProperties": true,
"required": [
"generate",
"validate"
@ -869,6 +910,7 @@
},
"provisioning_api": {
"type": "object",
"additionalProperties": true,
"required": [
"version",
"AccountPropertyScopesVersion",
@ -892,6 +934,7 @@
},
"theming": {
"type": "object",
"additionalProperties": true,
"required": [
"name",
"url",
@ -955,6 +998,7 @@
},
"user_status": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"supports_emoji"

44
specs/core.json

@ -188,6 +188,7 @@
"properties": {
"core": {
"type": "object",
"additionalProperties": true,
"required": [
"pollinterval",
"webdav-root",
@ -211,6 +212,7 @@
},
"bruteforce": {
"type": "object",
"additionalProperties": true,
"required": [
"delay"
],
@ -222,6 +224,7 @@
},
"metadataAvailable": {
"type": "object",
"additionalProperties": true,
"required": [
"size",
"gps"
@ -243,6 +246,7 @@
},
"files": {
"type": "object",
"additionalProperties": true,
"required": [
"bigfilechunking",
"blacklisted_files",
@ -263,6 +267,7 @@
},
"directEditing": {
"type": "object",
"additionalProperties": true,
"required": [
"url",
"etag"
@ -289,6 +294,7 @@
},
"activity": {
"type": "object",
"additionalProperties": true,
"required": [
"apiv2"
],
@ -303,6 +309,7 @@
},
"circles": {
"type": "object",
"additionalProperties": true,
"required": [
"version",
"status",
@ -316,6 +323,7 @@
},
"status": {
"type": "object",
"additionalProperties": true,
"required": [
"globalScale"
],
@ -327,6 +335,7 @@
},
"settings": {
"type": "object",
"additionalProperties": true,
"required": [
"frontendEnabled",
"allowedCircles",
@ -350,6 +359,7 @@
},
"circle": {
"type": "object",
"additionalProperties": true,
"required": [
"constants",
"config"
@ -357,6 +367,7 @@
"properties": {
"constants": {
"type": "object",
"additionalProperties": true,
"required": [
"flags",
"source"
@ -367,6 +378,7 @@
},
"source": {
"type": "object",
"additionalProperties": true,
"required": [
"core",
"extra"
@ -384,6 +396,7 @@
},
"config": {
"type": "object",
"additionalProperties": true,
"required": [
"coreFlags",
"systemFlags"
@ -407,6 +420,7 @@
},
"member": {
"type": "object",
"additionalProperties": true,
"required": [
"constants",
"type"
@ -414,6 +428,7 @@
"properties": {
"constants": {
"type": "object",
"additionalProperties": true,
"required": [
"level"
],
@ -432,6 +447,7 @@
},
"ocm": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"apiVersion",
@ -452,6 +468,7 @@
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"required": [
"name",
"shareTypes",
@ -469,6 +486,7 @@
},
"protocols": {
"type": "object",
"additionalProperties": true,
"required": [
"webdav"
],
@ -485,6 +503,7 @@
},
"dav": {
"type": "object",
"additionalProperties": true,
"required": [
"chunking"
],
@ -499,6 +518,7 @@
},
"files_sharing": {
"type": "object",
"additionalProperties": true,
"required": [
"api_enabled",
"public",
@ -517,6 +537,7 @@
},
"public": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"password",
@ -534,6 +555,7 @@
},
"password": {
"type": "object",
"additionalProperties": true,
"required": [
"enforced",
"askForOptionalPassword"
@ -549,6 +571,7 @@
},
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -563,6 +586,7 @@
},
"expire_date_internal": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -574,6 +598,7 @@
},
"expire_date_remote": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -599,6 +624,7 @@
},
"user": {
"type": "object",
"additionalProperties": true,
"required": [
"send_mail",
"expire_date"
@ -609,6 +635,7 @@
},
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -625,6 +652,7 @@
},
"group": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"expire_date"
@ -635,6 +663,7 @@
},
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -651,6 +680,7 @@
},
"federation": {
"type": "object",
"additionalProperties": true,
"required": [
"outgoing",
"incoming",
@ -666,6 +696,7 @@
},
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -677,6 +708,7 @@
},
"expire_date_supported": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -690,6 +722,7 @@
},
"sharee": {
"type": "object",
"additionalProperties": true,
"required": [
"query_lookup_default",
"always_show_unique"
@ -705,6 +738,7 @@
},
"sharebymail": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"send_password_by_mail",
@ -721,6 +755,7 @@
},
"upload_files_drop": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
@ -732,6 +767,7 @@
},
"password": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"enforced"
@ -747,6 +783,7 @@
},
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"enforced"
@ -766,6 +803,7 @@
},
"notes": {
"type": "object",
"additionalProperties": true,
"required": [
"api_version",
"version"
@ -784,6 +822,7 @@
},
"notifications": {
"type": "object",
"additionalProperties": true,
"required": [
"ocs-endpoints",
"push",
@ -812,6 +851,7 @@
},
"password_policy": {
"type": "object",
"additionalProperties": true,
"required": [
"minLength",
"enforceNonCommonPassword",
@ -838,6 +878,7 @@
},
"api": {
"type": "object",
"additionalProperties": true,
"required": [
"generate",
"validate"
@ -855,6 +896,7 @@
},
"provisioning_api": {
"type": "object",
"additionalProperties": true,
"required": [
"version",
"AccountPropertyScopesVersion",
@ -878,6 +920,7 @@
},
"theming": {
"type": "object",
"additionalProperties": true,
"required": [
"name",
"url",
@ -941,6 +984,7 @@
},
"user_status": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"supports_emoji"

Loading…
Cancel
Save