|
|
|
@ -71,12 +71,12 @@ CoreServerCapabilities_Ocs_Data_Version _$CoreServerCapabilities_Ocs_Data_Versio
|
|
|
|
|
allowedKeys: const ['major', 'minor', 'micro', 'string', 'edition', 'extendedSupport'], |
|
|
|
|
); |
|
|
|
|
return CoreServerCapabilities_Ocs_Data_Version( |
|
|
|
|
major: json['major'] as int, |
|
|
|
|
minor: json['minor'] as int, |
|
|
|
|
micro: json['micro'] as int, |
|
|
|
|
string: json['string'] as String, |
|
|
|
|
edition: json['edition'] as String, |
|
|
|
|
extendedSupport: json['extendedSupport'] as bool, |
|
|
|
|
major: json['major'] as int?, |
|
|
|
|
minor: json['minor'] as int?, |
|
|
|
|
micro: json['micro'] as int?, |
|
|
|
|
string: json['string'] as String?, |
|
|
|
|
edition: json['edition'] as String?, |
|
|
|
|
extendedSupport: json['extendedSupport'] as bool?, |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -94,10 +94,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_VersionToJson(
|
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Core _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreFromJson( |
|
|
|
|
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, |
|
|
|
|
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( |
|
|
|
@ -112,7 +112,7 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson(
|
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce |
|
|
|
|
_$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(Map<String, dynamic> json) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce( |
|
|
|
|
delay: json['delay'] as int, |
|
|
|
|
delay: json['delay'] as int?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceToJson( |
|
|
|
@ -124,8 +124,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceTo
|
|
|
|
|
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(), |
|
|
|
|
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( |
|
|
|
@ -138,8 +138,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvai
|
|
|
|
|
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, |
|
|
|
|
url: json['url'] as String?, |
|
|
|
|
etag: json['etag'] as String?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingToJson( |
|
|
|
@ -152,13 +152,15 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_Direct
|
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Files _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesFromJson( |
|
|
|
|
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( |
|
|
|
|
json['directEditing'] as Map<String, dynamic>), |
|
|
|
|
comments: json['comments'] as bool, |
|
|
|
|
undelete: json['undelete'] as bool, |
|
|
|
|
versioning: json['versioning'] as bool, |
|
|
|
|
bigfilechunking: json['bigfilechunking'] as bool?, |
|
|
|
|
blacklistedFiles: (json['blacklisted_files'] as List<dynamic>?)?.map((e) => e as String).toList(), |
|
|
|
|
directEditing: json['directEditing'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson( |
|
|
|
|
json['directEditing'] as Map<String, dynamic>), |
|
|
|
|
comments: json['comments'] as bool?, |
|
|
|
|
undelete: json['undelete'] as bool?, |
|
|
|
|
versioning: json['versioning'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson( |
|
|
|
@ -166,7 +168,7 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(
|
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'bigfilechunking': instance.bigfilechunking, |
|
|
|
|
'blacklisted_files': instance.blacklistedFiles, |
|
|
|
|
'directEditing': instance.directEditing.toJson(), |
|
|
|
|
'directEditing': instance.directEditing?.toJson(), |
|
|
|
|
'comments': instance.comments, |
|
|
|
|
'undelete': instance.undelete, |
|
|
|
|
'versioning': instance.versioning, |
|
|
|
@ -175,7 +177,7 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(
|
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Activity _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityFromJson( |
|
|
|
|
Map<String, dynamic> json) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Activity( |
|
|
|
|
apiv2: (json['apiv2'] as List<dynamic>).map((e) => e as String).toList(), |
|
|
|
|
apiv2: (json['apiv2'] as List<dynamic>?)?.map((e) => e as String).toList(), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJson( |
|
|
|
@ -187,7 +189,7 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJs
|
|
|
|
|
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, |
|
|
|
|
globalScale: json['globalScale'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusToJson( |
|
|
|
@ -199,10 +201,10 @@ 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) => |
|
|
|
|
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, |
|
|
|
|
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( |
|
|
|
@ -232,22 +234,24 @@ 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>), |
|
|
|
|
source: json['source'] == null |
|
|
|
|
? null |
|
|
|
|
: 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) => |
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'flags': instance.flags, |
|
|
|
|
'source': instance.source.toJson(), |
|
|
|
|
'source': instance.source?.toJson(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
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(), |
|
|
|
|
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( |
|
|
|
@ -260,17 +264,21 @@ 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) => |
|
|
|
|
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>), |
|
|
|
|
constants: json['constants'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( |
|
|
|
|
json['constants'] as Map<String, dynamic>), |
|
|
|
|
config: json['config'] == null |
|
|
|
|
? null |
|
|
|
|
: 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) => |
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'constants': instance.constants.toJson(), |
|
|
|
|
'config': instance.config.toJson(), |
|
|
|
|
'constants': instance.constants?.toJson(), |
|
|
|
|
'config': instance.config?.toJson(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants |
|
|
|
@ -288,46 +296,56 @@ 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) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member( |
|
|
|
|
constants: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( |
|
|
|
|
json['constants'] as Map<String, dynamic>), |
|
|
|
|
constants: json['constants'] == null |
|
|
|
|
? null |
|
|
|
|
: 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) => |
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'constants': instance.constants.toJson(), |
|
|
|
|
'constants': instance.constants?.toJson(), |
|
|
|
|
'type': instance.type, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Circles _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson( |
|
|
|
|
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>), |
|
|
|
|
settings: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson( |
|
|
|
|
json['settings'] as Map<String, dynamic>), |
|
|
|
|
circle: |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(json['circle'] as Map<String, dynamic>), |
|
|
|
|
member: |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(json['member'] as Map<String, dynamic>), |
|
|
|
|
version: json['version'] as String?, |
|
|
|
|
status: json['status'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson( |
|
|
|
|
json['status'] as Map<String, dynamic>), |
|
|
|
|
settings: json['settings'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson( |
|
|
|
|
json['settings'] as Map<String, dynamic>), |
|
|
|
|
circle: json['circle'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson( |
|
|
|
|
json['circle'] as Map<String, dynamic>), |
|
|
|
|
member: json['member'] == null |
|
|
|
|
? null |
|
|
|
|
: 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) => |
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'version': instance.version, |
|
|
|
|
'status': instance.status.toJson(), |
|
|
|
|
'settings': instance.settings.toJson(), |
|
|
|
|
'circle': instance.circle.toJson(), |
|
|
|
|
'member': instance.member.toJson(), |
|
|
|
|
'status': instance.status?.toJson(), |
|
|
|
|
'settings': instance.settings?.toJson(), |
|
|
|
|
'circle': instance.circle?.toJson(), |
|
|
|
|
'member': instance.member?.toJson(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
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, |
|
|
|
|
webdav: json['webdav'] as String?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsToJson( |
|
|
|
@ -339,10 +357,12 @@ 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) => |
|
|
|
|
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>), |
|
|
|
|
name: json['name'] as String?, |
|
|
|
|
shareTypes: (json['shareTypes'] as List<dynamic>?)?.map((e) => e as String).toList(), |
|
|
|
|
protocols: json['protocols'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( |
|
|
|
|
json['protocols'] as Map<String, dynamic>), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson( |
|
|
|
@ -350,17 +370,17 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_Resource
|
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'name': instance.name, |
|
|
|
|
'shareTypes': instance.shareTypes, |
|
|
|
|
'protocols': instance.protocols.toJson(), |
|
|
|
|
'protocols': instance.protocols?.toJson(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson( |
|
|
|
|
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( |
|
|
|
|
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>)) |
|
|
|
|
.toList(), |
|
|
|
|
); |
|
|
|
@ -371,14 +391,14 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson(
|
|
|
|
|
'enabled': instance.enabled, |
|
|
|
|
'apiVersion': instance.apiVersion, |
|
|
|
|
'endPoint': instance.endPoint, |
|
|
|
|
'resourceTypes': instance.resourceTypes.map((e) => e.toJson()).toList(), |
|
|
|
|
'resourceTypes': instance.resourceTypes?.map((e) => e.toJson()).toList(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Dav _$CoreServerCapabilities_Ocs_Data_Capabilities_DavFromJson( |
|
|
|
|
Map<String, dynamic> json) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Dav( |
|
|
|
|
bulkupload: json['bulkupload'] as String?, |
|
|
|
|
chunking: json['chunking'] as String, |
|
|
|
|
chunking: json['chunking'] as String?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_DavToJson( |
|
|
|
@ -391,8 +411,8 @@ 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) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password( |
|
|
|
|
enforced: json['enforced'] as bool, |
|
|
|
|
askForOptionalPassword: json['askForOptionalPassword'] as bool, |
|
|
|
|
enforced: json['enforced'] as bool?, |
|
|
|
|
askForOptionalPassword: json['askForOptionalPassword'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordToJson( |
|
|
|
@ -405,7 +425,7 @@ 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) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate( |
|
|
|
|
enabled: json['enabled'] as bool, |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateToJson( |
|
|
|
@ -418,7 +438,7 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInter
|
|
|
|
|
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalFromJson( |
|
|
|
|
Map<String, dynamic> json) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal( |
|
|
|
|
enabled: json['enabled'] as bool, |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalToJson( |
|
|
|
@ -431,7 +451,7 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemot
|
|
|
|
|
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteFromJson( |
|
|
|
|
Map<String, dynamic> json) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote( |
|
|
|
|
enabled: json['enabled'] as bool, |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteToJson( |
|
|
|
@ -443,31 +463,38 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
|
|
|
|
|
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( |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
password: json['password'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( |
|
|
|
|
json['password'] as Map<String, dynamic>), |
|
|
|
|
expireDate: json['expire_date'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( |
|
|
|
|
json['expire_date'] as Map<String, dynamic>), |
|
|
|
|
multipleLinks: json['multiple_links'] as bool?, |
|
|
|
|
expireDateInternal: json['expire_date_internal'] == null |
|
|
|
|
? null |
|
|
|
|
: 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>), |
|
|
|
|
sendMail: json['send_mail'] as bool, |
|
|
|
|
upload: json['upload'] as bool, |
|
|
|
|
uploadFilesDrop: json['upload_files_drop'] as bool, |
|
|
|
|
expireDateRemote: json['expire_date_remote'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( |
|
|
|
|
json['expire_date_remote'] as Map<String, dynamic>), |
|
|
|
|
sendMail: json['send_mail'] as bool?, |
|
|
|
|
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) => |
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'enabled': instance.enabled, |
|
|
|
|
'password': instance.password.toJson(), |
|
|
|
|
'expire_date': instance.expireDate.toJson(), |
|
|
|
|
'password': instance.password?.toJson(), |
|
|
|
|
'expire_date': instance.expireDate?.toJson(), |
|
|
|
|
'multiple_links': instance.multipleLinks, |
|
|
|
|
'expire_date_internal': instance.expireDateInternal.toJson(), |
|
|
|
|
'expire_date_remote': instance.expireDateRemote.toJson(), |
|
|
|
|
'expire_date_internal': instance.expireDateInternal?.toJson(), |
|
|
|
|
'expire_date_remote': instance.expireDateRemote?.toJson(), |
|
|
|
|
'send_mail': instance.sendMail, |
|
|
|
|
'upload': instance.upload, |
|
|
|
|
'upload_files_drop': instance.uploadFilesDrop, |
|
|
|
@ -476,7 +503,7 @@ 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) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate( |
|
|
|
|
enabled: json['enabled'] as bool, |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateToJson( |
|
|
|
@ -488,22 +515,24 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
|
|
|
|
|
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>), |
|
|
|
|
sendMail: json['send_mail'] as bool?, |
|
|
|
|
expireDate: json['expire_date'] == null |
|
|
|
|
? null |
|
|
|
|
: 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) => |
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'send_mail': instance.sendMail, |
|
|
|
|
'expire_date': instance.expireDate.toJson(), |
|
|
|
|
'expire_date': instance.expireDate?.toJson(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
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, |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateToJson( |
|
|
|
@ -515,23 +544,25 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
|
|
|
|
|
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>), |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
expireDate: json['expire_date'] == null |
|
|
|
|
? null |
|
|
|
|
: 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) => |
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'enabled': instance.enabled, |
|
|
|
|
'expire_date': instance.expireDate.toJson(), |
|
|
|
|
'expire_date': instance.expireDate?.toJson(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate |
|
|
|
|
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson( |
|
|
|
|
Map<String, dynamic> json) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate( |
|
|
|
|
enabled: json['enabled'] as bool, |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateToJson( |
|
|
|
@ -544,7 +575,7 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateS
|
|
|
|
|
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedFromJson( |
|
|
|
|
Map<String, dynamic> json) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported( |
|
|
|
|
enabled: json['enabled'] as bool, |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedToJson( |
|
|
|
@ -556,12 +587,15 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
|
|
|
|
|
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( |
|
|
|
|
json['expire_date'] as Map<String, dynamic>), |
|
|
|
|
expireDateSupported: |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( |
|
|
|
|
outgoing: json['outgoing'] as bool?, |
|
|
|
|
incoming: json['incoming'] as bool?, |
|
|
|
|
expireDate: json['expire_date'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( |
|
|
|
|
json['expire_date'] as Map<String, dynamic>), |
|
|
|
|
expireDateSupported: json['expire_date_supported'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson( |
|
|
|
|
json['expire_date_supported'] as Map<String, dynamic>), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -570,15 +604,15 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
|
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'outgoing': instance.outgoing, |
|
|
|
|
'incoming': instance.incoming, |
|
|
|
|
'expire_date': instance.expireDate.toJson(), |
|
|
|
|
'expire_date_supported': instance.expireDateSupported.toJson(), |
|
|
|
|
'expire_date': instance.expireDate?.toJson(), |
|
|
|
|
'expire_date_supported': instance.expireDateSupported?.toJson(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
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, |
|
|
|
|
queryLookupDefault: json['query_lookup_default'] as bool?, |
|
|
|
|
alwaysShowUnique: json['always_show_unique'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeToJson( |
|
|
|
@ -592,7 +626,7 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFile
|
|
|
|
|
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropFromJson( |
|
|
|
|
Map<String, dynamic> json) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop( |
|
|
|
|
enabled: json['enabled'] as bool, |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropToJson( |
|
|
|
@ -605,8 +639,8 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password
|
|
|
|
|
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordFromJson( |
|
|
|
|
Map<String, dynamic> json) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password( |
|
|
|
|
enabled: json['enabled'] as bool, |
|
|
|
|
enforced: json['enforced'] as bool, |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
enforced: json['enforced'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordToJson( |
|
|
|
@ -620,8 +654,8 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate
|
|
|
|
|
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateFromJson( |
|
|
|
|
Map<String, dynamic> json) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate( |
|
|
|
|
enabled: json['enabled'] as bool, |
|
|
|
|
enforced: json['enforced'] as bool, |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
enforced: json['enforced'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateToJson( |
|
|
|
@ -634,15 +668,20 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
|
|
|
|
|
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( |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
sendPasswordByMail: json['send_password_by_mail'] as bool?, |
|
|
|
|
uploadFilesDrop: json['upload_files_drop'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( |
|
|
|
|
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>), |
|
|
|
|
password: json['password'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( |
|
|
|
|
json['password'] as Map<String, dynamic>), |
|
|
|
|
expireDate: json['expire_date'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( |
|
|
|
|
json['expire_date'] as Map<String, dynamic>), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailToJson( |
|
|
|
@ -650,52 +689,64 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
|
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'enabled': instance.enabled, |
|
|
|
|
'send_password_by_mail': instance.sendPasswordByMail, |
|
|
|
|
'upload_files_drop': instance.uploadFilesDrop.toJson(), |
|
|
|
|
'password': instance.password.toJson(), |
|
|
|
|
'expire_date': instance.expireDate.toJson(), |
|
|
|
|
'upload_files_drop': instance.uploadFilesDrop?.toJson(), |
|
|
|
|
'password': instance.password?.toJson(), |
|
|
|
|
'expire_date': instance.expireDate?.toJson(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
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>), |
|
|
|
|
groupSharing: json['group_sharing'] as bool, |
|
|
|
|
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>), |
|
|
|
|
sharee: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( |
|
|
|
|
json['sharee'] as Map<String, dynamic>), |
|
|
|
|
sharebymail: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( |
|
|
|
|
json['sharebymail'] as Map<String, dynamic>), |
|
|
|
|
apiEnabled: json['api_enabled'] as bool?, |
|
|
|
|
public: json['public'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson( |
|
|
|
|
json['public'] as Map<String, dynamic>), |
|
|
|
|
resharing: json['resharing'] as bool?, |
|
|
|
|
user: json['user'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson( |
|
|
|
|
json['user'] as Map<String, dynamic>), |
|
|
|
|
groupSharing: json['group_sharing'] as bool?, |
|
|
|
|
group: json['group'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson( |
|
|
|
|
json['group'] as Map<String, dynamic>), |
|
|
|
|
defaultPermissions: json['default_permissions'] as int?, |
|
|
|
|
federation: json['federation'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( |
|
|
|
|
json['federation'] as Map<String, dynamic>), |
|
|
|
|
sharee: json['sharee'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( |
|
|
|
|
json['sharee'] as Map<String, dynamic>), |
|
|
|
|
sharebymail: json['sharebymail'] == null |
|
|
|
|
? null |
|
|
|
|
: 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) => |
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'api_enabled': instance.apiEnabled, |
|
|
|
|
'public': instance.public.toJson(), |
|
|
|
|
'public': instance.public?.toJson(), |
|
|
|
|
'resharing': instance.resharing, |
|
|
|
|
'user': instance.user.toJson(), |
|
|
|
|
'user': instance.user?.toJson(), |
|
|
|
|
'group_sharing': instance.groupSharing, |
|
|
|
|
'group': instance.group.toJson(), |
|
|
|
|
'group': instance.group?.toJson(), |
|
|
|
|
'default_permissions': instance.defaultPermissions, |
|
|
|
|
'federation': instance.federation.toJson(), |
|
|
|
|
'sharee': instance.sharee.toJson(), |
|
|
|
|
'sharebymail': instance.sharebymail.toJson(), |
|
|
|
|
'federation': instance.federation?.toJson(), |
|
|
|
|
'sharee': instance.sharee?.toJson(), |
|
|
|
|
'sharebymail': instance.sharebymail?.toJson(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Notes _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson( |
|
|
|
|
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, |
|
|
|
|
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( |
|
|
|
@ -708,9 +759,9 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson(
|
|
|
|
|
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(), |
|
|
|
|
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( |
|
|
|
@ -724,8 +775,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Notification
|
|
|
|
|
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, |
|
|
|
|
generate: json['generate'] as String?, |
|
|
|
|
validate: json['validate'] as String?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiToJson( |
|
|
|
@ -738,13 +789,15 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPoli
|
|
|
|
|
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>), |
|
|
|
|
minLength: json['minLength'] as int?, |
|
|
|
|
enforceNonCommonPassword: json['enforceNonCommonPassword'] as bool?, |
|
|
|
|
enforceNumericCharacters: json['enforceNumericCharacters'] as bool?, |
|
|
|
|
enforceSpecialCharacters: json['enforceSpecialCharacters'] as bool?, |
|
|
|
|
enforceUpperLowerCase: json['enforceUpperLowerCase'] as bool?, |
|
|
|
|
api: json['api'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson( |
|
|
|
|
json['api'] as Map<String, dynamic>), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson( |
|
|
|
@ -755,16 +808,16 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPoli
|
|
|
|
|
'enforceNumericCharacters': instance.enforceNumericCharacters, |
|
|
|
|
'enforceSpecialCharacters': instance.enforceSpecialCharacters, |
|
|
|
|
'enforceUpperLowerCase': instance.enforceUpperLowerCase, |
|
|
|
|
'api': instance.api.toJson(), |
|
|
|
|
'api': instance.api?.toJson(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
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, |
|
|
|
|
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( |
|
|
|
@ -779,20 +832,20 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Provisioning
|
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Theming _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingFromJson( |
|
|
|
|
Map<String, dynamic> json) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Theming( |
|
|
|
|
name: json['name'] as String, |
|
|
|
|
url: json['url'] as String, |
|
|
|
|
slogan: json['slogan'] as String, |
|
|
|
|
color: json['color'] as String, |
|
|
|
|
colorText: json['color-text'] as String, |
|
|
|
|
colorElement: json['color-element'] as String, |
|
|
|
|
colorElementBright: json['color-element-bright'] as String, |
|
|
|
|
colorElementDark: json['color-element-dark'] as String, |
|
|
|
|
logo: json['logo'] as String, |
|
|
|
|
background: json['background'] as String, |
|
|
|
|
backgroundPlain: json['background-plain'] as bool, |
|
|
|
|
backgroundDefault: json['background-default'] as bool, |
|
|
|
|
logoheader: json['logoheader'] as String, |
|
|
|
|
favicon: json['favicon'] as String, |
|
|
|
|
name: json['name'] as String?, |
|
|
|
|
url: json['url'] as String?, |
|
|
|
|
slogan: json['slogan'] as String?, |
|
|
|
|
color: json['color'] as String?, |
|
|
|
|
colorText: json['color-text'] as String?, |
|
|
|
|
colorElement: json['color-element'] as String?, |
|
|
|
|
colorElementBright: json['color-element-bright'] as String?, |
|
|
|
|
colorElementDark: json['color-element-dark'] as String?, |
|
|
|
|
logo: json['logo'] as String?, |
|
|
|
|
background: json['background'] as String?, |
|
|
|
|
backgroundPlain: json['background-plain'] as bool?, |
|
|
|
|
backgroundDefault: json['background-default'] as bool?, |
|
|
|
|
logoheader: json['logoheader'] as String?, |
|
|
|
|
favicon: json['favicon'] as String?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJson( |
|
|
|
@ -817,8 +870,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJso
|
|
|
|
|
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, |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
supportsEmoji: json['supports_emoji'] as bool?, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson( |
|
|
|
@ -835,7 +888,7 @@ CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus
|
|
|
|
|
allowedKeys: const ['enabled'], |
|
|
|
|
); |
|
|
|
|
return CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus( |
|
|
|
|
enabled: json['enabled'] as bool, |
|
|
|
|
enabled: json['enabled'] as bool?, |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -848,20 +901,32 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatu
|
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities _$CoreServerCapabilities_Ocs_Data_CapabilitiesFromJson( |
|
|
|
|
Map<String, dynamic> json) => |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities( |
|
|
|
|
core: CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json['core'] as Map<String, dynamic>), |
|
|
|
|
bruteforce: |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(json['bruteforce'] as Map<String, dynamic>), |
|
|
|
|
metadataAvailable: CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson( |
|
|
|
|
json['metadataAvailable'] as Map<String, dynamic>), |
|
|
|
|
files: CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(json['files'] as Map<String, dynamic>), |
|
|
|
|
core: json['core'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json['core'] as Map<String, dynamic>), |
|
|
|
|
bruteforce: json['bruteforce'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson( |
|
|
|
|
json['bruteforce'] as Map<String, dynamic>), |
|
|
|
|
metadataAvailable: json['metadataAvailable'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson( |
|
|
|
|
json['metadataAvailable'] as Map<String, dynamic>), |
|
|
|
|
files: json['files'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(json['files'] as Map<String, dynamic>), |
|
|
|
|
activity: json['activity'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(json['activity'] as Map<String, dynamic>), |
|
|
|
|
circles: json['circles'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(json['circles'] as Map<String, dynamic>), |
|
|
|
|
ocm: CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(json['ocm'] as Map<String, dynamic>), |
|
|
|
|
dav: CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(json['dav'] as Map<String, dynamic>), |
|
|
|
|
ocm: json['ocm'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(json['ocm'] as Map<String, dynamic>), |
|
|
|
|
dav: json['dav'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(json['dav'] as Map<String, dynamic>), |
|
|
|
|
filesSharing: json['files_sharing'] == null |
|
|
|
|
? null |
|
|
|
|
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson( |
|
|
|
@ -897,14 +962,14 @@ CoreServerCapabilities_Ocs_Data_Capabilities _$CoreServerCapabilities_Ocs_Data_C
|
|
|
|
|
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_CapabilitiesToJson( |
|
|
|
|
CoreServerCapabilities_Ocs_Data_Capabilities instance) => |
|
|
|
|
<String, dynamic>{ |
|
|
|
|
'core': instance.core.toJson(), |
|
|
|
|
'bruteforce': instance.bruteforce.toJson(), |
|
|
|
|
'metadataAvailable': instance.metadataAvailable.toJson(), |
|
|
|
|
'files': instance.files.toJson(), |
|
|
|
|
'core': instance.core?.toJson(), |
|
|
|
|
'bruteforce': instance.bruteforce?.toJson(), |
|
|
|
|
'metadataAvailable': instance.metadataAvailable?.toJson(), |
|
|
|
|
'files': instance.files?.toJson(), |
|
|
|
|
'activity': instance.activity?.toJson(), |
|
|
|
|
'circles': instance.circles?.toJson(), |
|
|
|
|
'ocm': instance.ocm.toJson(), |
|
|
|
|
'dav': instance.dav.toJson(), |
|
|
|
|
'ocm': instance.ocm?.toJson(), |
|
|
|
|
'dav': instance.dav?.toJson(), |
|
|
|
|
'files_sharing': instance.filesSharing?.toJson(), |
|
|
|
|
'notes': instance.notes?.toJson(), |
|
|
|
|
'notifications': instance.notifications?.toJson(), |
|
|
|
|