You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2057 lines
88 KiB
2057 lines
88 KiB
// ignore_for_file: camel_case_types |
|
// ignore_for_file: public_member_api_docs |
|
import 'dart:typed_data'; |
|
|
|
import 'package:built_collection/built_collection.dart'; |
|
import 'package:built_value/built_value.dart'; |
|
import 'package:built_value/json_object.dart'; |
|
import 'package:built_value/serializer.dart'; |
|
import 'package:built_value/standard_json_plugin.dart'; |
|
import 'package:dynamite_runtime/content_string.dart'; |
|
import 'package:dynamite_runtime/http_client.dart'; |
|
import 'package:universal_io/io.dart'; |
|
|
|
export 'package:dynamite_runtime/http_client.dart'; |
|
|
|
part 'files.openapi.g.dart'; |
|
|
|
class FilesResponse<T, U> extends DynamiteResponse<T, U> { |
|
FilesResponse( |
|
super.data, |
|
super.headers, |
|
); |
|
|
|
@override |
|
String toString() => 'FilesResponse(data: $data, headers: $headers)'; |
|
} |
|
|
|
class FilesApiException extends DynamiteApiException { |
|
FilesApiException( |
|
super.statusCode, |
|
super.headers, |
|
super.body, |
|
); |
|
|
|
static Future<FilesApiException> fromResponse(final HttpClientResponse response) async { |
|
String body; |
|
try { |
|
body = await response.body; |
|
} on FormatException { |
|
body = 'binary'; |
|
} |
|
|
|
return FilesApiException( |
|
response.statusCode, |
|
response.responseHeaders, |
|
body, |
|
); |
|
} |
|
|
|
@override |
|
String toString() => 'FilesApiException(statusCode: $statusCode, headers: $headers, body: $body)'; |
|
} |
|
|
|
class FilesClient extends DynamiteClient { |
|
FilesClient( |
|
super.baseURL, { |
|
super.baseHeaders, |
|
super.userAgent, |
|
super.httpClient, |
|
super.cookieJar, |
|
super.authentications, |
|
}); |
|
|
|
FilesClient.fromClient(final DynamiteClient client) |
|
: super( |
|
client.baseURL, |
|
baseHeaders: client.baseHeaders, |
|
httpClient: client.httpClient, |
|
cookieJar: client.cookieJar, |
|
authentications: client.authentications, |
|
); |
|
|
|
FilesApiClient get api => FilesApiClient(this); |
|
FilesDirectEditingClient get directEditing => FilesDirectEditingClient(this); |
|
FilesOpenLocalEditorClient get openLocalEditor => FilesOpenLocalEditorClient(this); |
|
FilesTemplateClient get template => FilesTemplateClient(this); |
|
FilesTransferOwnershipClient get transferOwnership => FilesTransferOwnershipClient(this); |
|
} |
|
|
|
class FilesApiClient { |
|
FilesApiClient(this._rootClient); |
|
|
|
final FilesClient _rootClient; |
|
|
|
/// Gets a thumbnail of the specified file |
|
Future<Uint8List> getThumbnail({ |
|
required final int x, |
|
required final int y, |
|
required final String file, |
|
}) async { |
|
var path = '/index.php/apps/files/api/v1/thumbnail/{x}/{y}/{file}'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': '*/*', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
path = path.replaceAll('{x}', Uri.encodeQueryComponent(x.toString())); |
|
path = path.replaceAll('{y}', Uri.encodeQueryComponent(y.toString())); |
|
if (!RegExp(r'^.+$').hasMatch(file)) { |
|
throw Exception('Invalid value "$file" for parameter "file" with pattern "${r'^.+$'}"'); // coverage:ignore-line |
|
} |
|
path = path.replaceAll('{file}', Uri.encodeQueryComponent(file)); |
|
final response = await _rootClient.doRequest( |
|
'get', |
|
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return response.bodyBytes; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
|
|
/// Get the service-worker Javascript for previews |
|
Future<FilesResponse<String, FilesApiApiServiceWorkerHeaders>> serviceWorker() async { |
|
const path = '/index.php/apps/files/preview-service-worker.js'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/javascript', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} |
|
// coverage:ignore-end |
|
final response = await _rootClient.doRequest( |
|
'get', |
|
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return FilesResponse<String, FilesApiApiServiceWorkerHeaders>( |
|
await response.body, |
|
_jsonSerializers.deserialize( |
|
response.responseHeaders, |
|
specifiedType: const FullType(FilesApiApiServiceWorkerHeaders), |
|
)! as FilesApiApiServiceWorkerHeaders, |
|
); |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
} |
|
|
|
class FilesDirectEditingClient { |
|
FilesDirectEditingClient(this._rootClient); |
|
|
|
final FilesClient _rootClient; |
|
|
|
/// Get the direct editing capabilities |
|
Future<FilesDirectEditingInfoResponse200ApplicationJson> info({final String oCSAPIRequest = 'true'}) async { |
|
const path = '/ocs/v2.php/apps/files/api/v1/directEditing'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/json', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
headers['OCS-APIRequest'] = oCSAPIRequest; |
|
final response = await _rootClient.doRequest( |
|
'get', |
|
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return _jsonSerializers.deserialize( |
|
await response.jsonBody, |
|
specifiedType: const FullType(FilesDirectEditingInfoResponse200ApplicationJson), |
|
)! as FilesDirectEditingInfoResponse200ApplicationJson; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
|
|
/// Get the templates for direct editing |
|
Future<FilesDirectEditingTemplatesResponse200ApplicationJson> templates({ |
|
required final String editorId, |
|
required final String creatorId, |
|
final String oCSAPIRequest = 'true', |
|
}) async { |
|
var path = '/ocs/v2.php/apps/files/api/v1/directEditing/templates/{editorId}/{creatorId}'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/json', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
path = path.replaceAll('{editorId}', Uri.encodeQueryComponent(editorId)); |
|
path = path.replaceAll('{creatorId}', Uri.encodeQueryComponent(creatorId)); |
|
headers['OCS-APIRequest'] = oCSAPIRequest; |
|
final response = await _rootClient.doRequest( |
|
'get', |
|
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return _jsonSerializers.deserialize( |
|
await response.jsonBody, |
|
specifiedType: const FullType(FilesDirectEditingTemplatesResponse200ApplicationJson), |
|
)! as FilesDirectEditingTemplatesResponse200ApplicationJson; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
|
|
/// Open a file for direct editing |
|
Future<FilesDirectEditingOpenResponse200ApplicationJson> open({ |
|
required final String path, |
|
final String? editorId, |
|
final int? fileId, |
|
final String oCSAPIRequest = 'true', |
|
}) async { |
|
const path0 = '/ocs/v2.php/apps/files/api/v1/directEditing/open'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/json', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
queryParameters['path'] = path; |
|
if (editorId != null) { |
|
queryParameters['editorId'] = editorId; |
|
} |
|
if (fileId != null) { |
|
queryParameters['fileId'] = fileId.toString(); |
|
} |
|
headers['OCS-APIRequest'] = oCSAPIRequest; |
|
final response = await _rootClient.doRequest( |
|
'post', |
|
Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return _jsonSerializers.deserialize( |
|
await response.jsonBody, |
|
specifiedType: const FullType(FilesDirectEditingOpenResponse200ApplicationJson), |
|
)! as FilesDirectEditingOpenResponse200ApplicationJson; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
|
|
/// Create a file for direct editing |
|
Future<FilesDirectEditingCreateResponse200ApplicationJson> create({ |
|
required final String path, |
|
required final String editorId, |
|
required final String creatorId, |
|
final String? templateId, |
|
final String oCSAPIRequest = 'true', |
|
}) async { |
|
const path0 = '/ocs/v2.php/apps/files/api/v1/directEditing/create'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/json', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
queryParameters['path'] = path; |
|
queryParameters['editorId'] = editorId; |
|
queryParameters['creatorId'] = creatorId; |
|
if (templateId != null) { |
|
queryParameters['templateId'] = templateId; |
|
} |
|
headers['OCS-APIRequest'] = oCSAPIRequest; |
|
final response = await _rootClient.doRequest( |
|
'post', |
|
Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return _jsonSerializers.deserialize( |
|
await response.jsonBody, |
|
specifiedType: const FullType(FilesDirectEditingCreateResponse200ApplicationJson), |
|
)! as FilesDirectEditingCreateResponse200ApplicationJson; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
} |
|
|
|
class FilesOpenLocalEditorClient { |
|
FilesOpenLocalEditorClient(this._rootClient); |
|
|
|
final FilesClient _rootClient; |
|
|
|
/// Create a local editor |
|
Future<FilesOpenLocalEditorCreateResponse200ApplicationJson> create({ |
|
required final String path, |
|
final String oCSAPIRequest = 'true', |
|
}) async { |
|
const path0 = '/ocs/v2.php/apps/files/api/v1/openlocaleditor'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/json', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
queryParameters['path'] = path; |
|
headers['OCS-APIRequest'] = oCSAPIRequest; |
|
final response = await _rootClient.doRequest( |
|
'post', |
|
Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return _jsonSerializers.deserialize( |
|
await response.jsonBody, |
|
specifiedType: const FullType(FilesOpenLocalEditorCreateResponse200ApplicationJson), |
|
)! as FilesOpenLocalEditorCreateResponse200ApplicationJson; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
|
|
/// Validate a local editor |
|
Future<FilesOpenLocalEditorValidateResponse200ApplicationJson> validate({ |
|
required final String path, |
|
required final String token, |
|
final String oCSAPIRequest = 'true', |
|
}) async { |
|
var path0 = '/ocs/v2.php/apps/files/api/v1/openlocaleditor/{token}'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/json', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
queryParameters['path'] = path; |
|
path0 = path0.replaceAll('{token}', Uri.encodeQueryComponent(token)); |
|
headers['OCS-APIRequest'] = oCSAPIRequest; |
|
final response = await _rootClient.doRequest( |
|
'post', |
|
Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return _jsonSerializers.deserialize( |
|
await response.jsonBody, |
|
specifiedType: const FullType(FilesOpenLocalEditorValidateResponse200ApplicationJson), |
|
)! as FilesOpenLocalEditorValidateResponse200ApplicationJson; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
} |
|
|
|
class FilesTemplateClient { |
|
FilesTemplateClient(this._rootClient); |
|
|
|
final FilesClient _rootClient; |
|
|
|
/// List the available templates |
|
Future<FilesTemplateListResponse200ApplicationJson> list({final String oCSAPIRequest = 'true'}) async { |
|
const path = '/ocs/v2.php/apps/files/api/v1/templates'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/json', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
headers['OCS-APIRequest'] = oCSAPIRequest; |
|
final response = await _rootClient.doRequest( |
|
'get', |
|
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return _jsonSerializers.deserialize( |
|
await response.jsonBody, |
|
specifiedType: const FullType(FilesTemplateListResponse200ApplicationJson), |
|
)! as FilesTemplateListResponse200ApplicationJson; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
|
|
/// Create a template |
|
Future<FilesTemplateCreateResponse200ApplicationJson> create({ |
|
required final String filePath, |
|
final String templatePath = '', |
|
final String templateType = 'user', |
|
final String oCSAPIRequest = 'true', |
|
}) async { |
|
const path = '/ocs/v2.php/apps/files/api/v1/templates/create'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/json', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
queryParameters['filePath'] = filePath; |
|
if (templatePath != '') { |
|
queryParameters['templatePath'] = templatePath; |
|
} |
|
if (templateType != 'user') { |
|
queryParameters['templateType'] = templateType; |
|
} |
|
headers['OCS-APIRequest'] = oCSAPIRequest; |
|
final response = await _rootClient.doRequest( |
|
'post', |
|
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return _jsonSerializers.deserialize( |
|
await response.jsonBody, |
|
specifiedType: const FullType(FilesTemplateCreateResponse200ApplicationJson), |
|
)! as FilesTemplateCreateResponse200ApplicationJson; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
|
|
/// Initialize the template directory |
|
Future<FilesTemplatePathResponse200ApplicationJson> path({ |
|
final String templatePath = '', |
|
final int copySystemTemplates = 0, |
|
final String oCSAPIRequest = 'true', |
|
}) async { |
|
const path = '/ocs/v2.php/apps/files/api/v1/templates/path'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/json', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
if (templatePath != '') { |
|
queryParameters['templatePath'] = templatePath; |
|
} |
|
if (copySystemTemplates != 0) { |
|
queryParameters['copySystemTemplates'] = copySystemTemplates.toString(); |
|
} |
|
headers['OCS-APIRequest'] = oCSAPIRequest; |
|
final response = await _rootClient.doRequest( |
|
'post', |
|
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return _jsonSerializers.deserialize( |
|
await response.jsonBody, |
|
specifiedType: const FullType(FilesTemplatePathResponse200ApplicationJson), |
|
)! as FilesTemplatePathResponse200ApplicationJson; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
} |
|
|
|
class FilesTransferOwnershipClient { |
|
FilesTransferOwnershipClient(this._rootClient); |
|
|
|
final FilesClient _rootClient; |
|
|
|
/// Transfer the ownership to another user |
|
Future<FilesTransferOwnershipTransferResponse200ApplicationJson> transfer({ |
|
required final String recipient, |
|
required final String path, |
|
final String oCSAPIRequest = 'true', |
|
}) async { |
|
const path0 = '/ocs/v2.php/apps/files/api/v1/transferownership'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/json', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
queryParameters['recipient'] = recipient; |
|
queryParameters['path'] = path; |
|
headers['OCS-APIRequest'] = oCSAPIRequest; |
|
final response = await _rootClient.doRequest( |
|
'post', |
|
Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return _jsonSerializers.deserialize( |
|
await response.jsonBody, |
|
specifiedType: const FullType(FilesTransferOwnershipTransferResponse200ApplicationJson), |
|
)! as FilesTransferOwnershipTransferResponse200ApplicationJson; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
|
|
/// Accept an ownership transfer |
|
Future<FilesTransferOwnershipAcceptResponse200ApplicationJson> accept({ |
|
required final int id, |
|
final String oCSAPIRequest = 'true', |
|
}) async { |
|
var path = '/ocs/v2.php/apps/files/api/v1/transferownership/{id}'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/json', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString())); |
|
headers['OCS-APIRequest'] = oCSAPIRequest; |
|
final response = await _rootClient.doRequest( |
|
'post', |
|
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return _jsonSerializers.deserialize( |
|
await response.jsonBody, |
|
specifiedType: const FullType(FilesTransferOwnershipAcceptResponse200ApplicationJson), |
|
)! as FilesTransferOwnershipAcceptResponse200ApplicationJson; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
|
|
/// Reject an ownership transfer |
|
Future<FilesTransferOwnershipRejectResponse200ApplicationJson> reject({ |
|
required final int id, |
|
final String oCSAPIRequest = 'true', |
|
}) async { |
|
var path = '/ocs/v2.php/apps/files/api/v1/transferownership/{id}'; |
|
final queryParameters = <String, dynamic>{}; |
|
final headers = <String, String>{ |
|
'Accept': 'application/json', |
|
}; |
|
Uint8List? body; |
|
// coverage:ignore-start |
|
if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, |
|
); |
|
} else if (_rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { |
|
headers.addAll( |
|
_rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers, |
|
); |
|
} else { |
|
throw Exception('Missing authentication for bearer_auth or basic_auth'); |
|
} |
|
// coverage:ignore-end |
|
path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString())); |
|
headers['OCS-APIRequest'] = oCSAPIRequest; |
|
final response = await _rootClient.doRequest( |
|
'delete', |
|
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null), |
|
headers, |
|
body, |
|
); |
|
if (response.statusCode == 200) { |
|
return _jsonSerializers.deserialize( |
|
await response.jsonBody, |
|
specifiedType: const FullType(FilesTransferOwnershipRejectResponse200ApplicationJson), |
|
)! as FilesTransferOwnershipRejectResponse200ApplicationJson; |
|
} |
|
throw await FilesApiException.fromResponse(response); // coverage:ignore-line |
|
} |
|
} |
|
|
|
abstract class FilesApiApiServiceWorkerHeaders |
|
implements Built<FilesApiApiServiceWorkerHeaders, FilesApiApiServiceWorkerHeadersBuilder> { |
|
factory FilesApiApiServiceWorkerHeaders([final void Function(FilesApiApiServiceWorkerHeadersBuilder)? b]) = |
|
_$FilesApiApiServiceWorkerHeaders; |
|
|
|
// coverage:ignore-start |
|
const FilesApiApiServiceWorkerHeaders._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesApiApiServiceWorkerHeaders.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
@BuiltValueField(wireName: 'service-worker-allowed') |
|
String? get serviceWorkerAllowed; |
|
@BuiltValueSerializer(custom: true) |
|
static Serializer<FilesApiApiServiceWorkerHeaders> get serializer => _$FilesApiApiServiceWorkerHeadersSerializer(); |
|
} |
|
|
|
class _$FilesApiApiServiceWorkerHeadersSerializer implements StructuredSerializer<FilesApiApiServiceWorkerHeaders> { |
|
@override |
|
final Iterable<Type> types = const [FilesApiApiServiceWorkerHeaders, _$FilesApiApiServiceWorkerHeaders]; |
|
|
|
@override |
|
final String wireName = 'FilesApiApiServiceWorkerHeaders'; |
|
|
|
@override |
|
Iterable<Object?> serialize( |
|
final Serializers serializers, |
|
final FilesApiApiServiceWorkerHeaders object, { |
|
final FullType specifiedType = FullType.unspecified, |
|
}) { |
|
throw UnimplementedError(); |
|
} |
|
|
|
@override |
|
FilesApiApiServiceWorkerHeaders deserialize( |
|
final Serializers serializers, |
|
final Iterable<Object?> serialized, { |
|
final FullType specifiedType = FullType.unspecified, |
|
}) { |
|
final result = FilesApiApiServiceWorkerHeadersBuilder(); |
|
|
|
final iterator = serialized.iterator; |
|
while (iterator.moveNext()) { |
|
final key = iterator.current! as String; |
|
iterator.moveNext(); |
|
final value = iterator.current! as String; |
|
switch (key) { |
|
case 'service-worker-allowed': |
|
result.serviceWorkerAllowed = value; |
|
} |
|
} |
|
|
|
return result.build(); |
|
} |
|
} |
|
|
|
abstract class FilesOCSMeta implements Built<FilesOCSMeta, FilesOCSMetaBuilder> { |
|
factory FilesOCSMeta([final void Function(FilesOCSMetaBuilder)? b]) = _$FilesOCSMeta; |
|
|
|
// coverage:ignore-start |
|
const FilesOCSMeta._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesOCSMeta.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
String get status; |
|
int get statuscode; |
|
String? get message; |
|
String? get totalitems; |
|
String? get itemsperpage; |
|
static Serializer<FilesOCSMeta> get serializer => _$filesOCSMetaSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors |
|
implements |
|
Built<FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors, |
|
FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_EditorsBuilder> { |
|
factory FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors([ |
|
final void Function(FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_EditorsBuilder)? b, |
|
]) = _$FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
String get id; |
|
String get name; |
|
BuiltList<String> get mimetypes; |
|
BuiltList<String> get optionalMimetypes; |
|
bool get secure; |
|
static Serializer<FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors> get serializer => |
|
_$filesDirectEditingInfoResponse200ApplicationJsonOcsDataEditorsSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators |
|
implements |
|
Built<FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators, |
|
FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_CreatorsBuilder> { |
|
factory FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators([ |
|
final void Function(FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_CreatorsBuilder)? b, |
|
]) = _$FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators.fromJson( |
|
final Map<String, dynamic> json, |
|
) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
String get id; |
|
String get editor; |
|
String get name; |
|
@BuiltValueField(wireName: 'extension') |
|
String get $extension; |
|
bool get templates; |
|
BuiltList<String> get mimetypes; |
|
static Serializer<FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators> get serializer => |
|
_$filesDirectEditingInfoResponse200ApplicationJsonOcsDataCreatorsSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data |
|
implements |
|
Built<FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data, |
|
FilesDirectEditingInfoResponse200ApplicationJson_Ocs_DataBuilder> { |
|
factory FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data([ |
|
final void Function(FilesDirectEditingInfoResponse200ApplicationJson_Ocs_DataBuilder)? b, |
|
]) = _$FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
BuiltMap<String, FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors> get editors; |
|
BuiltMap<String, FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators> get creators; |
|
static Serializer<FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data> get serializer => |
|
_$filesDirectEditingInfoResponse200ApplicationJsonOcsDataSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingInfoResponse200ApplicationJson_Ocs |
|
implements |
|
Built<FilesDirectEditingInfoResponse200ApplicationJson_Ocs, |
|
FilesDirectEditingInfoResponse200ApplicationJson_OcsBuilder> { |
|
factory FilesDirectEditingInfoResponse200ApplicationJson_Ocs([ |
|
final void Function(FilesDirectEditingInfoResponse200ApplicationJson_OcsBuilder)? b, |
|
]) = _$FilesDirectEditingInfoResponse200ApplicationJson_Ocs; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingInfoResponse200ApplicationJson_Ocs._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingInfoResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOCSMeta get meta; |
|
FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data get data; |
|
static Serializer<FilesDirectEditingInfoResponse200ApplicationJson_Ocs> get serializer => |
|
_$filesDirectEditingInfoResponse200ApplicationJsonOcsSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingInfoResponse200ApplicationJson |
|
implements |
|
Built<FilesDirectEditingInfoResponse200ApplicationJson, |
|
FilesDirectEditingInfoResponse200ApplicationJsonBuilder> { |
|
factory FilesDirectEditingInfoResponse200ApplicationJson([ |
|
final void Function(FilesDirectEditingInfoResponse200ApplicationJsonBuilder)? b, |
|
]) = _$FilesDirectEditingInfoResponse200ApplicationJson; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingInfoResponse200ApplicationJson._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingInfoResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesDirectEditingInfoResponse200ApplicationJson_Ocs get ocs; |
|
static Serializer<FilesDirectEditingInfoResponse200ApplicationJson> get serializer => |
|
_$filesDirectEditingInfoResponse200ApplicationJsonSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates |
|
implements |
|
Built<FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates, |
|
FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_TemplatesBuilder> { |
|
factory FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates([ |
|
final void Function(FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_TemplatesBuilder)? b, |
|
]) = _$FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates.fromJson( |
|
final Map<String, dynamic> json, |
|
) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
String get id; |
|
String get title; |
|
String? get preview; |
|
@BuiltValueField(wireName: 'extension') |
|
String get $extension; |
|
String get mimetype; |
|
static Serializer<FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates> get serializer => |
|
_$filesDirectEditingTemplatesResponse200ApplicationJsonOcsDataTemplatesSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data |
|
implements |
|
Built<FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data, |
|
FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_DataBuilder> { |
|
factory FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data([ |
|
final void Function(FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_DataBuilder)? b, |
|
]) = _$FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
BuiltMap<String, FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates> get templates; |
|
static Serializer<FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data> get serializer => |
|
_$filesDirectEditingTemplatesResponse200ApplicationJsonOcsDataSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs |
|
implements |
|
Built<FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs, |
|
FilesDirectEditingTemplatesResponse200ApplicationJson_OcsBuilder> { |
|
factory FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs([ |
|
final void Function(FilesDirectEditingTemplatesResponse200ApplicationJson_OcsBuilder)? b, |
|
]) = _$FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOCSMeta get meta; |
|
FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data get data; |
|
static Serializer<FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs> get serializer => |
|
_$filesDirectEditingTemplatesResponse200ApplicationJsonOcsSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingTemplatesResponse200ApplicationJson |
|
implements |
|
Built<FilesDirectEditingTemplatesResponse200ApplicationJson, |
|
FilesDirectEditingTemplatesResponse200ApplicationJsonBuilder> { |
|
factory FilesDirectEditingTemplatesResponse200ApplicationJson([ |
|
final void Function(FilesDirectEditingTemplatesResponse200ApplicationJsonBuilder)? b, |
|
]) = _$FilesDirectEditingTemplatesResponse200ApplicationJson; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingTemplatesResponse200ApplicationJson._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingTemplatesResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs get ocs; |
|
static Serializer<FilesDirectEditingTemplatesResponse200ApplicationJson> get serializer => |
|
_$filesDirectEditingTemplatesResponse200ApplicationJsonSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingOpenResponse200ApplicationJson_Ocs_Data |
|
implements |
|
Built<FilesDirectEditingOpenResponse200ApplicationJson_Ocs_Data, |
|
FilesDirectEditingOpenResponse200ApplicationJson_Ocs_DataBuilder> { |
|
factory FilesDirectEditingOpenResponse200ApplicationJson_Ocs_Data([ |
|
final void Function(FilesDirectEditingOpenResponse200ApplicationJson_Ocs_DataBuilder)? b, |
|
]) = _$FilesDirectEditingOpenResponse200ApplicationJson_Ocs_Data; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingOpenResponse200ApplicationJson_Ocs_Data._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingOpenResponse200ApplicationJson_Ocs_Data.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
String get url; |
|
static Serializer<FilesDirectEditingOpenResponse200ApplicationJson_Ocs_Data> get serializer => |
|
_$filesDirectEditingOpenResponse200ApplicationJsonOcsDataSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingOpenResponse200ApplicationJson_Ocs |
|
implements |
|
Built<FilesDirectEditingOpenResponse200ApplicationJson_Ocs, |
|
FilesDirectEditingOpenResponse200ApplicationJson_OcsBuilder> { |
|
factory FilesDirectEditingOpenResponse200ApplicationJson_Ocs([ |
|
final void Function(FilesDirectEditingOpenResponse200ApplicationJson_OcsBuilder)? b, |
|
]) = _$FilesDirectEditingOpenResponse200ApplicationJson_Ocs; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingOpenResponse200ApplicationJson_Ocs._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingOpenResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOCSMeta get meta; |
|
FilesDirectEditingOpenResponse200ApplicationJson_Ocs_Data get data; |
|
static Serializer<FilesDirectEditingOpenResponse200ApplicationJson_Ocs> get serializer => |
|
_$filesDirectEditingOpenResponse200ApplicationJsonOcsSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingOpenResponse200ApplicationJson |
|
implements |
|
Built<FilesDirectEditingOpenResponse200ApplicationJson, |
|
FilesDirectEditingOpenResponse200ApplicationJsonBuilder> { |
|
factory FilesDirectEditingOpenResponse200ApplicationJson([ |
|
final void Function(FilesDirectEditingOpenResponse200ApplicationJsonBuilder)? b, |
|
]) = _$FilesDirectEditingOpenResponse200ApplicationJson; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingOpenResponse200ApplicationJson._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingOpenResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesDirectEditingOpenResponse200ApplicationJson_Ocs get ocs; |
|
static Serializer<FilesDirectEditingOpenResponse200ApplicationJson> get serializer => |
|
_$filesDirectEditingOpenResponse200ApplicationJsonSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingCreateResponse200ApplicationJson_Ocs_Data |
|
implements |
|
Built<FilesDirectEditingCreateResponse200ApplicationJson_Ocs_Data, |
|
FilesDirectEditingCreateResponse200ApplicationJson_Ocs_DataBuilder> { |
|
factory FilesDirectEditingCreateResponse200ApplicationJson_Ocs_Data([ |
|
final void Function(FilesDirectEditingCreateResponse200ApplicationJson_Ocs_DataBuilder)? b, |
|
]) = _$FilesDirectEditingCreateResponse200ApplicationJson_Ocs_Data; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingCreateResponse200ApplicationJson_Ocs_Data._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingCreateResponse200ApplicationJson_Ocs_Data.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
String get url; |
|
static Serializer<FilesDirectEditingCreateResponse200ApplicationJson_Ocs_Data> get serializer => |
|
_$filesDirectEditingCreateResponse200ApplicationJsonOcsDataSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingCreateResponse200ApplicationJson_Ocs |
|
implements |
|
Built<FilesDirectEditingCreateResponse200ApplicationJson_Ocs, |
|
FilesDirectEditingCreateResponse200ApplicationJson_OcsBuilder> { |
|
factory FilesDirectEditingCreateResponse200ApplicationJson_Ocs([ |
|
final void Function(FilesDirectEditingCreateResponse200ApplicationJson_OcsBuilder)? b, |
|
]) = _$FilesDirectEditingCreateResponse200ApplicationJson_Ocs; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingCreateResponse200ApplicationJson_Ocs._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingCreateResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOCSMeta get meta; |
|
FilesDirectEditingCreateResponse200ApplicationJson_Ocs_Data get data; |
|
static Serializer<FilesDirectEditingCreateResponse200ApplicationJson_Ocs> get serializer => |
|
_$filesDirectEditingCreateResponse200ApplicationJsonOcsSerializer; |
|
} |
|
|
|
abstract class FilesDirectEditingCreateResponse200ApplicationJson |
|
implements |
|
Built<FilesDirectEditingCreateResponse200ApplicationJson, |
|
FilesDirectEditingCreateResponse200ApplicationJsonBuilder> { |
|
factory FilesDirectEditingCreateResponse200ApplicationJson([ |
|
final void Function(FilesDirectEditingCreateResponse200ApplicationJsonBuilder)? b, |
|
]) = _$FilesDirectEditingCreateResponse200ApplicationJson; |
|
|
|
// coverage:ignore-start |
|
const FilesDirectEditingCreateResponse200ApplicationJson._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesDirectEditingCreateResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesDirectEditingCreateResponse200ApplicationJson_Ocs get ocs; |
|
static Serializer<FilesDirectEditingCreateResponse200ApplicationJson> get serializer => |
|
_$filesDirectEditingCreateResponse200ApplicationJsonSerializer; |
|
} |
|
|
|
abstract class FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_Data |
|
implements |
|
Built<FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_Data, |
|
FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_DataBuilder> { |
|
factory FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_Data([ |
|
final void Function(FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_DataBuilder)? b, |
|
]) = _$FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_Data; |
|
|
|
// coverage:ignore-start |
|
const FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_Data._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_Data.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
String? get userId; |
|
String get pathHash; |
|
int get expirationTime; |
|
String get token; |
|
static Serializer<FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_Data> get serializer => |
|
_$filesOpenLocalEditorCreateResponse200ApplicationJsonOcsDataSerializer; |
|
} |
|
|
|
abstract class FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs |
|
implements |
|
Built<FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs, |
|
FilesOpenLocalEditorCreateResponse200ApplicationJson_OcsBuilder> { |
|
factory FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs([ |
|
final void Function(FilesOpenLocalEditorCreateResponse200ApplicationJson_OcsBuilder)? b, |
|
]) = _$FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs; |
|
|
|
// coverage:ignore-start |
|
const FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOCSMeta get meta; |
|
FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_Data get data; |
|
static Serializer<FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs> get serializer => |
|
_$filesOpenLocalEditorCreateResponse200ApplicationJsonOcsSerializer; |
|
} |
|
|
|
abstract class FilesOpenLocalEditorCreateResponse200ApplicationJson |
|
implements |
|
Built<FilesOpenLocalEditorCreateResponse200ApplicationJson, |
|
FilesOpenLocalEditorCreateResponse200ApplicationJsonBuilder> { |
|
factory FilesOpenLocalEditorCreateResponse200ApplicationJson([ |
|
final void Function(FilesOpenLocalEditorCreateResponse200ApplicationJsonBuilder)? b, |
|
]) = _$FilesOpenLocalEditorCreateResponse200ApplicationJson; |
|
|
|
// coverage:ignore-start |
|
const FilesOpenLocalEditorCreateResponse200ApplicationJson._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesOpenLocalEditorCreateResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs get ocs; |
|
static Serializer<FilesOpenLocalEditorCreateResponse200ApplicationJson> get serializer => |
|
_$filesOpenLocalEditorCreateResponse200ApplicationJsonSerializer; |
|
} |
|
|
|
abstract class FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_Data |
|
implements |
|
Built<FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_Data, |
|
FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_DataBuilder> { |
|
factory FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_Data([ |
|
final void Function(FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_DataBuilder)? b, |
|
]) = _$FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_Data; |
|
|
|
// coverage:ignore-start |
|
const FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_Data._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_Data.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
String get userId; |
|
String get pathHash; |
|
int get expirationTime; |
|
String get token; |
|
static Serializer<FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_Data> get serializer => |
|
_$filesOpenLocalEditorValidateResponse200ApplicationJsonOcsDataSerializer; |
|
} |
|
|
|
abstract class FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs |
|
implements |
|
Built<FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs, |
|
FilesOpenLocalEditorValidateResponse200ApplicationJson_OcsBuilder> { |
|
factory FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs([ |
|
final void Function(FilesOpenLocalEditorValidateResponse200ApplicationJson_OcsBuilder)? b, |
|
]) = _$FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs; |
|
|
|
// coverage:ignore-start |
|
const FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOCSMeta get meta; |
|
FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_Data get data; |
|
static Serializer<FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs> get serializer => |
|
_$filesOpenLocalEditorValidateResponse200ApplicationJsonOcsSerializer; |
|
} |
|
|
|
abstract class FilesOpenLocalEditorValidateResponse200ApplicationJson |
|
implements |
|
Built<FilesOpenLocalEditorValidateResponse200ApplicationJson, |
|
FilesOpenLocalEditorValidateResponse200ApplicationJsonBuilder> { |
|
factory FilesOpenLocalEditorValidateResponse200ApplicationJson([ |
|
final void Function(FilesOpenLocalEditorValidateResponse200ApplicationJsonBuilder)? b, |
|
]) = _$FilesOpenLocalEditorValidateResponse200ApplicationJson; |
|
|
|
// coverage:ignore-start |
|
const FilesOpenLocalEditorValidateResponse200ApplicationJson._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesOpenLocalEditorValidateResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs get ocs; |
|
static Serializer<FilesOpenLocalEditorValidateResponse200ApplicationJson> get serializer => |
|
_$filesOpenLocalEditorValidateResponse200ApplicationJsonSerializer; |
|
} |
|
|
|
abstract class FilesTemplateFileCreator implements Built<FilesTemplateFileCreator, FilesTemplateFileCreatorBuilder> { |
|
factory FilesTemplateFileCreator([final void Function(FilesTemplateFileCreatorBuilder)? b]) = |
|
_$FilesTemplateFileCreator; |
|
|
|
// coverage:ignore-start |
|
const FilesTemplateFileCreator._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTemplateFileCreator.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
String get app; |
|
String get label; |
|
@BuiltValueField(wireName: 'extension') |
|
String get $extension; |
|
String? get iconClass; |
|
BuiltList<String> get mimetypes; |
|
num? get ratio; |
|
String get actionLabel; |
|
static Serializer<FilesTemplateFileCreator> get serializer => _$filesTemplateFileCreatorSerializer; |
|
} |
|
|
|
abstract class FilesTemplateListResponse200ApplicationJson_Ocs |
|
implements |
|
Built<FilesTemplateListResponse200ApplicationJson_Ocs, FilesTemplateListResponse200ApplicationJson_OcsBuilder> { |
|
factory FilesTemplateListResponse200ApplicationJson_Ocs([ |
|
final void Function(FilesTemplateListResponse200ApplicationJson_OcsBuilder)? b, |
|
]) = _$FilesTemplateListResponse200ApplicationJson_Ocs; |
|
|
|
// coverage:ignore-start |
|
const FilesTemplateListResponse200ApplicationJson_Ocs._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTemplateListResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOCSMeta get meta; |
|
BuiltList<FilesTemplateFileCreator> get data; |
|
static Serializer<FilesTemplateListResponse200ApplicationJson_Ocs> get serializer => |
|
_$filesTemplateListResponse200ApplicationJsonOcsSerializer; |
|
} |
|
|
|
abstract class FilesTemplateListResponse200ApplicationJson |
|
implements Built<FilesTemplateListResponse200ApplicationJson, FilesTemplateListResponse200ApplicationJsonBuilder> { |
|
factory FilesTemplateListResponse200ApplicationJson([ |
|
final void Function(FilesTemplateListResponse200ApplicationJsonBuilder)? b, |
|
]) = _$FilesTemplateListResponse200ApplicationJson; |
|
|
|
// coverage:ignore-start |
|
const FilesTemplateListResponse200ApplicationJson._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTemplateListResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesTemplateListResponse200ApplicationJson_Ocs get ocs; |
|
static Serializer<FilesTemplateListResponse200ApplicationJson> get serializer => |
|
_$filesTemplateListResponse200ApplicationJsonSerializer; |
|
} |
|
|
|
abstract class FilesTemplateFile implements Built<FilesTemplateFile, FilesTemplateFileBuilder> { |
|
factory FilesTemplateFile([final void Function(FilesTemplateFileBuilder)? b]) = _$FilesTemplateFile; |
|
|
|
// coverage:ignore-start |
|
const FilesTemplateFile._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTemplateFile.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
String get basename; |
|
String get etag; |
|
int get fileid; |
|
String? get filename; |
|
int get lastmod; |
|
String get mime; |
|
int get size; |
|
String get type; |
|
bool get hasPreview; |
|
static Serializer<FilesTemplateFile> get serializer => _$filesTemplateFileSerializer; |
|
} |
|
|
|
abstract class FilesTemplateCreateResponse200ApplicationJson_Ocs |
|
implements |
|
Built<FilesTemplateCreateResponse200ApplicationJson_Ocs, |
|
FilesTemplateCreateResponse200ApplicationJson_OcsBuilder> { |
|
factory FilesTemplateCreateResponse200ApplicationJson_Ocs([ |
|
final void Function(FilesTemplateCreateResponse200ApplicationJson_OcsBuilder)? b, |
|
]) = _$FilesTemplateCreateResponse200ApplicationJson_Ocs; |
|
|
|
// coverage:ignore-start |
|
const FilesTemplateCreateResponse200ApplicationJson_Ocs._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTemplateCreateResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOCSMeta get meta; |
|
FilesTemplateFile get data; |
|
static Serializer<FilesTemplateCreateResponse200ApplicationJson_Ocs> get serializer => |
|
_$filesTemplateCreateResponse200ApplicationJsonOcsSerializer; |
|
} |
|
|
|
abstract class FilesTemplateCreateResponse200ApplicationJson |
|
implements |
|
Built<FilesTemplateCreateResponse200ApplicationJson, FilesTemplateCreateResponse200ApplicationJsonBuilder> { |
|
factory FilesTemplateCreateResponse200ApplicationJson([ |
|
final void Function(FilesTemplateCreateResponse200ApplicationJsonBuilder)? b, |
|
]) = _$FilesTemplateCreateResponse200ApplicationJson; |
|
|
|
// coverage:ignore-start |
|
const FilesTemplateCreateResponse200ApplicationJson._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTemplateCreateResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesTemplateCreateResponse200ApplicationJson_Ocs get ocs; |
|
static Serializer<FilesTemplateCreateResponse200ApplicationJson> get serializer => |
|
_$filesTemplateCreateResponse200ApplicationJsonSerializer; |
|
} |
|
|
|
abstract class FilesTemplatePathResponse200ApplicationJson_Ocs_Data |
|
implements |
|
Built<FilesTemplatePathResponse200ApplicationJson_Ocs_Data, |
|
FilesTemplatePathResponse200ApplicationJson_Ocs_DataBuilder> { |
|
factory FilesTemplatePathResponse200ApplicationJson_Ocs_Data([ |
|
final void Function(FilesTemplatePathResponse200ApplicationJson_Ocs_DataBuilder)? b, |
|
]) = _$FilesTemplatePathResponse200ApplicationJson_Ocs_Data; |
|
|
|
// coverage:ignore-start |
|
const FilesTemplatePathResponse200ApplicationJson_Ocs_Data._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTemplatePathResponse200ApplicationJson_Ocs_Data.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
@BuiltValueField(wireName: 'template_path') |
|
String get templatePath; |
|
BuiltList<FilesTemplateFileCreator> get templates; |
|
static Serializer<FilesTemplatePathResponse200ApplicationJson_Ocs_Data> get serializer => |
|
_$filesTemplatePathResponse200ApplicationJsonOcsDataSerializer; |
|
} |
|
|
|
abstract class FilesTemplatePathResponse200ApplicationJson_Ocs |
|
implements |
|
Built<FilesTemplatePathResponse200ApplicationJson_Ocs, FilesTemplatePathResponse200ApplicationJson_OcsBuilder> { |
|
factory FilesTemplatePathResponse200ApplicationJson_Ocs([ |
|
final void Function(FilesTemplatePathResponse200ApplicationJson_OcsBuilder)? b, |
|
]) = _$FilesTemplatePathResponse200ApplicationJson_Ocs; |
|
|
|
// coverage:ignore-start |
|
const FilesTemplatePathResponse200ApplicationJson_Ocs._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTemplatePathResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOCSMeta get meta; |
|
FilesTemplatePathResponse200ApplicationJson_Ocs_Data get data; |
|
static Serializer<FilesTemplatePathResponse200ApplicationJson_Ocs> get serializer => |
|
_$filesTemplatePathResponse200ApplicationJsonOcsSerializer; |
|
} |
|
|
|
abstract class FilesTemplatePathResponse200ApplicationJson |
|
implements Built<FilesTemplatePathResponse200ApplicationJson, FilesTemplatePathResponse200ApplicationJsonBuilder> { |
|
factory FilesTemplatePathResponse200ApplicationJson([ |
|
final void Function(FilesTemplatePathResponse200ApplicationJsonBuilder)? b, |
|
]) = _$FilesTemplatePathResponse200ApplicationJson; |
|
|
|
// coverage:ignore-start |
|
const FilesTemplatePathResponse200ApplicationJson._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTemplatePathResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesTemplatePathResponse200ApplicationJson_Ocs get ocs; |
|
static Serializer<FilesTemplatePathResponse200ApplicationJson> get serializer => |
|
_$filesTemplatePathResponse200ApplicationJsonSerializer; |
|
} |
|
|
|
abstract class FilesTransferOwnershipTransferResponse200ApplicationJson_Ocs |
|
implements |
|
Built<FilesTransferOwnershipTransferResponse200ApplicationJson_Ocs, |
|
FilesTransferOwnershipTransferResponse200ApplicationJson_OcsBuilder> { |
|
factory FilesTransferOwnershipTransferResponse200ApplicationJson_Ocs([ |
|
final void Function(FilesTransferOwnershipTransferResponse200ApplicationJson_OcsBuilder)? b, |
|
]) = _$FilesTransferOwnershipTransferResponse200ApplicationJson_Ocs; |
|
|
|
// coverage:ignore-start |
|
const FilesTransferOwnershipTransferResponse200ApplicationJson_Ocs._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTransferOwnershipTransferResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOCSMeta get meta; |
|
JsonObject get data; |
|
static Serializer<FilesTransferOwnershipTransferResponse200ApplicationJson_Ocs> get serializer => |
|
_$filesTransferOwnershipTransferResponse200ApplicationJsonOcsSerializer; |
|
} |
|
|
|
abstract class FilesTransferOwnershipTransferResponse200ApplicationJson |
|
implements |
|
Built<FilesTransferOwnershipTransferResponse200ApplicationJson, |
|
FilesTransferOwnershipTransferResponse200ApplicationJsonBuilder> { |
|
factory FilesTransferOwnershipTransferResponse200ApplicationJson([ |
|
final void Function(FilesTransferOwnershipTransferResponse200ApplicationJsonBuilder)? b, |
|
]) = _$FilesTransferOwnershipTransferResponse200ApplicationJson; |
|
|
|
// coverage:ignore-start |
|
const FilesTransferOwnershipTransferResponse200ApplicationJson._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTransferOwnershipTransferResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesTransferOwnershipTransferResponse200ApplicationJson_Ocs get ocs; |
|
static Serializer<FilesTransferOwnershipTransferResponse200ApplicationJson> get serializer => |
|
_$filesTransferOwnershipTransferResponse200ApplicationJsonSerializer; |
|
} |
|
|
|
abstract class FilesTransferOwnershipAcceptResponse200ApplicationJson_Ocs |
|
implements |
|
Built<FilesTransferOwnershipAcceptResponse200ApplicationJson_Ocs, |
|
FilesTransferOwnershipAcceptResponse200ApplicationJson_OcsBuilder> { |
|
factory FilesTransferOwnershipAcceptResponse200ApplicationJson_Ocs([ |
|
final void Function(FilesTransferOwnershipAcceptResponse200ApplicationJson_OcsBuilder)? b, |
|
]) = _$FilesTransferOwnershipAcceptResponse200ApplicationJson_Ocs; |
|
|
|
// coverage:ignore-start |
|
const FilesTransferOwnershipAcceptResponse200ApplicationJson_Ocs._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTransferOwnershipAcceptResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOCSMeta get meta; |
|
JsonObject get data; |
|
static Serializer<FilesTransferOwnershipAcceptResponse200ApplicationJson_Ocs> get serializer => |
|
_$filesTransferOwnershipAcceptResponse200ApplicationJsonOcsSerializer; |
|
} |
|
|
|
abstract class FilesTransferOwnershipAcceptResponse200ApplicationJson |
|
implements |
|
Built<FilesTransferOwnershipAcceptResponse200ApplicationJson, |
|
FilesTransferOwnershipAcceptResponse200ApplicationJsonBuilder> { |
|
factory FilesTransferOwnershipAcceptResponse200ApplicationJson([ |
|
final void Function(FilesTransferOwnershipAcceptResponse200ApplicationJsonBuilder)? b, |
|
]) = _$FilesTransferOwnershipAcceptResponse200ApplicationJson; |
|
|
|
// coverage:ignore-start |
|
const FilesTransferOwnershipAcceptResponse200ApplicationJson._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTransferOwnershipAcceptResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesTransferOwnershipAcceptResponse200ApplicationJson_Ocs get ocs; |
|
static Serializer<FilesTransferOwnershipAcceptResponse200ApplicationJson> get serializer => |
|
_$filesTransferOwnershipAcceptResponse200ApplicationJsonSerializer; |
|
} |
|
|
|
abstract class FilesTransferOwnershipRejectResponse200ApplicationJson_Ocs |
|
implements |
|
Built<FilesTransferOwnershipRejectResponse200ApplicationJson_Ocs, |
|
FilesTransferOwnershipRejectResponse200ApplicationJson_OcsBuilder> { |
|
factory FilesTransferOwnershipRejectResponse200ApplicationJson_Ocs([ |
|
final void Function(FilesTransferOwnershipRejectResponse200ApplicationJson_OcsBuilder)? b, |
|
]) = _$FilesTransferOwnershipRejectResponse200ApplicationJson_Ocs; |
|
|
|
// coverage:ignore-start |
|
const FilesTransferOwnershipRejectResponse200ApplicationJson_Ocs._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTransferOwnershipRejectResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesOCSMeta get meta; |
|
JsonObject get data; |
|
static Serializer<FilesTransferOwnershipRejectResponse200ApplicationJson_Ocs> get serializer => |
|
_$filesTransferOwnershipRejectResponse200ApplicationJsonOcsSerializer; |
|
} |
|
|
|
abstract class FilesTransferOwnershipRejectResponse200ApplicationJson |
|
implements |
|
Built<FilesTransferOwnershipRejectResponse200ApplicationJson, |
|
FilesTransferOwnershipRejectResponse200ApplicationJsonBuilder> { |
|
factory FilesTransferOwnershipRejectResponse200ApplicationJson([ |
|
final void Function(FilesTransferOwnershipRejectResponse200ApplicationJsonBuilder)? b, |
|
]) = _$FilesTransferOwnershipRejectResponse200ApplicationJson; |
|
|
|
// coverage:ignore-start |
|
const FilesTransferOwnershipRejectResponse200ApplicationJson._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTransferOwnershipRejectResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesTransferOwnershipRejectResponse200ApplicationJson_Ocs get ocs; |
|
static Serializer<FilesTransferOwnershipRejectResponse200ApplicationJson> get serializer => |
|
_$filesTransferOwnershipRejectResponse200ApplicationJsonSerializer; |
|
} |
|
|
|
abstract class FilesCapabilities_Files_DirectEditing |
|
implements Built<FilesCapabilities_Files_DirectEditing, FilesCapabilities_Files_DirectEditingBuilder> { |
|
factory FilesCapabilities_Files_DirectEditing([ |
|
final void Function(FilesCapabilities_Files_DirectEditingBuilder)? b, |
|
]) = _$FilesCapabilities_Files_DirectEditing; |
|
|
|
// coverage:ignore-start |
|
const FilesCapabilities_Files_DirectEditing._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesCapabilities_Files_DirectEditing.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
String get url; |
|
String get etag; |
|
bool get supportsFileId; |
|
static Serializer<FilesCapabilities_Files_DirectEditing> get serializer => |
|
_$filesCapabilitiesFilesDirectEditingSerializer; |
|
} |
|
|
|
abstract class FilesCapabilities_Files implements Built<FilesCapabilities_Files, FilesCapabilities_FilesBuilder> { |
|
factory FilesCapabilities_Files([final void Function(FilesCapabilities_FilesBuilder)? b]) = _$FilesCapabilities_Files; |
|
|
|
// coverage:ignore-start |
|
const FilesCapabilities_Files._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesCapabilities_Files.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
bool get bigfilechunking; |
|
@BuiltValueField(wireName: 'blacklisted_files') |
|
BuiltList<JsonObject> get blacklistedFiles; |
|
FilesCapabilities_Files_DirectEditing get directEditing; |
|
static Serializer<FilesCapabilities_Files> get serializer => _$filesCapabilitiesFilesSerializer; |
|
} |
|
|
|
abstract class FilesCapabilities implements Built<FilesCapabilities, FilesCapabilitiesBuilder> { |
|
factory FilesCapabilities([final void Function(FilesCapabilitiesBuilder)? b]) = _$FilesCapabilities; |
|
|
|
// coverage:ignore-start |
|
const FilesCapabilities._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesCapabilities.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
FilesCapabilities_Files get files; |
|
static Serializer<FilesCapabilities> get serializer => _$filesCapabilitiesSerializer; |
|
} |
|
|
|
abstract class FilesTemplate implements Built<FilesTemplate, FilesTemplateBuilder> { |
|
factory FilesTemplate([final void Function(FilesTemplateBuilder)? b]) = _$FilesTemplate; |
|
|
|
// coverage:ignore-start |
|
const FilesTemplate._(); |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
factory FilesTemplate.fromJson(final Map<String, dynamic> json) => |
|
_jsonSerializers.deserializeWith(serializer, json)!; |
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-start |
|
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; |
|
// coverage:ignore-end |
|
String get templateType; |
|
String get templateId; |
|
String get basename; |
|
String get etag; |
|
int get fileid; |
|
String get filename; |
|
int get lastmod; |
|
String get mime; |
|
int get size; |
|
String get type; |
|
bool get hasPreview; |
|
String? get previewUrl; |
|
static Serializer<FilesTemplate> get serializer => _$filesTemplateSerializer; |
|
} |
|
|
|
// coverage:ignore-start |
|
final Serializers _serializers = (Serializers().toBuilder() |
|
..addBuilderFactory(const FullType(FilesApiApiServiceWorkerHeaders), FilesApiApiServiceWorkerHeaders.new) |
|
..add(FilesApiApiServiceWorkerHeaders.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingInfoResponse200ApplicationJson), |
|
FilesDirectEditingInfoResponse200ApplicationJson.new, |
|
) |
|
..add(FilesDirectEditingInfoResponse200ApplicationJson.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingInfoResponse200ApplicationJson_Ocs), |
|
FilesDirectEditingInfoResponse200ApplicationJson_Ocs.new, |
|
) |
|
..add(FilesDirectEditingInfoResponse200ApplicationJson_Ocs.serializer) |
|
..addBuilderFactory(const FullType(FilesOCSMeta), FilesOCSMeta.new) |
|
..add(FilesOCSMeta.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data), |
|
FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data.new, |
|
) |
|
..add(FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors), |
|
FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors.new, |
|
) |
|
..add(FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors.serializer) |
|
..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), ListBuilder<String>.new) |
|
..addBuilderFactory( |
|
const FullType( |
|
BuiltMap, |
|
[FullType(String), FullType(FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors)], |
|
), |
|
MapBuilder<String, FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Editors>.new, |
|
) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators), |
|
FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators.new, |
|
) |
|
..add(FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators.serializer) |
|
..addBuilderFactory( |
|
const FullType( |
|
BuiltMap, |
|
[FullType(String), FullType(FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators)], |
|
), |
|
MapBuilder<String, FilesDirectEditingInfoResponse200ApplicationJson_Ocs_Data_Creators>.new, |
|
) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingTemplatesResponse200ApplicationJson), |
|
FilesDirectEditingTemplatesResponse200ApplicationJson.new, |
|
) |
|
..add(FilesDirectEditingTemplatesResponse200ApplicationJson.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs), |
|
FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs.new, |
|
) |
|
..add(FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data), |
|
FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data.new, |
|
) |
|
..add(FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates), |
|
FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates.new, |
|
) |
|
..add(FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates.serializer) |
|
..addBuilderFactory( |
|
const FullType( |
|
BuiltMap, |
|
[FullType(String), FullType(FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates)], |
|
), |
|
MapBuilder<String, FilesDirectEditingTemplatesResponse200ApplicationJson_Ocs_Data_Templates>.new, |
|
) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingOpenResponse200ApplicationJson), |
|
FilesDirectEditingOpenResponse200ApplicationJson.new, |
|
) |
|
..add(FilesDirectEditingOpenResponse200ApplicationJson.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingOpenResponse200ApplicationJson_Ocs), |
|
FilesDirectEditingOpenResponse200ApplicationJson_Ocs.new, |
|
) |
|
..add(FilesDirectEditingOpenResponse200ApplicationJson_Ocs.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingOpenResponse200ApplicationJson_Ocs_Data), |
|
FilesDirectEditingOpenResponse200ApplicationJson_Ocs_Data.new, |
|
) |
|
..add(FilesDirectEditingOpenResponse200ApplicationJson_Ocs_Data.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingCreateResponse200ApplicationJson), |
|
FilesDirectEditingCreateResponse200ApplicationJson.new, |
|
) |
|
..add(FilesDirectEditingCreateResponse200ApplicationJson.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingCreateResponse200ApplicationJson_Ocs), |
|
FilesDirectEditingCreateResponse200ApplicationJson_Ocs.new, |
|
) |
|
..add(FilesDirectEditingCreateResponse200ApplicationJson_Ocs.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesDirectEditingCreateResponse200ApplicationJson_Ocs_Data), |
|
FilesDirectEditingCreateResponse200ApplicationJson_Ocs_Data.new, |
|
) |
|
..add(FilesDirectEditingCreateResponse200ApplicationJson_Ocs_Data.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesOpenLocalEditorCreateResponse200ApplicationJson), |
|
FilesOpenLocalEditorCreateResponse200ApplicationJson.new, |
|
) |
|
..add(FilesOpenLocalEditorCreateResponse200ApplicationJson.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs), |
|
FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs.new, |
|
) |
|
..add(FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_Data), |
|
FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_Data.new, |
|
) |
|
..add(FilesOpenLocalEditorCreateResponse200ApplicationJson_Ocs_Data.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesOpenLocalEditorValidateResponse200ApplicationJson), |
|
FilesOpenLocalEditorValidateResponse200ApplicationJson.new, |
|
) |
|
..add(FilesOpenLocalEditorValidateResponse200ApplicationJson.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs), |
|
FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs.new, |
|
) |
|
..add(FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_Data), |
|
FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_Data.new, |
|
) |
|
..add(FilesOpenLocalEditorValidateResponse200ApplicationJson_Ocs_Data.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesTemplateListResponse200ApplicationJson), |
|
FilesTemplateListResponse200ApplicationJson.new, |
|
) |
|
..add(FilesTemplateListResponse200ApplicationJson.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesTemplateListResponse200ApplicationJson_Ocs), |
|
FilesTemplateListResponse200ApplicationJson_Ocs.new, |
|
) |
|
..add(FilesTemplateListResponse200ApplicationJson_Ocs.serializer) |
|
..addBuilderFactory(const FullType(FilesTemplateFileCreator), FilesTemplateFileCreator.new) |
|
..add(FilesTemplateFileCreator.serializer) |
|
..addBuilderFactory( |
|
const FullType(BuiltList, [FullType(FilesTemplateFileCreator)]), |
|
ListBuilder<FilesTemplateFileCreator>.new, |
|
) |
|
..addBuilderFactory( |
|
const FullType(FilesTemplateCreateResponse200ApplicationJson), |
|
FilesTemplateCreateResponse200ApplicationJson.new, |
|
) |
|
..add(FilesTemplateCreateResponse200ApplicationJson.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesTemplateCreateResponse200ApplicationJson_Ocs), |
|
FilesTemplateCreateResponse200ApplicationJson_Ocs.new, |
|
) |
|
..add(FilesTemplateCreateResponse200ApplicationJson_Ocs.serializer) |
|
..addBuilderFactory(const FullType(FilesTemplateFile), FilesTemplateFile.new) |
|
..add(FilesTemplateFile.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesTemplatePathResponse200ApplicationJson), |
|
FilesTemplatePathResponse200ApplicationJson.new, |
|
) |
|
..add(FilesTemplatePathResponse200ApplicationJson.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesTemplatePathResponse200ApplicationJson_Ocs), |
|
FilesTemplatePathResponse200ApplicationJson_Ocs.new, |
|
) |
|
..add(FilesTemplatePathResponse200ApplicationJson_Ocs.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesTemplatePathResponse200ApplicationJson_Ocs_Data), |
|
FilesTemplatePathResponse200ApplicationJson_Ocs_Data.new, |
|
) |
|
..add(FilesTemplatePathResponse200ApplicationJson_Ocs_Data.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesTransferOwnershipTransferResponse200ApplicationJson), |
|
FilesTransferOwnershipTransferResponse200ApplicationJson.new, |
|
) |
|
..add(FilesTransferOwnershipTransferResponse200ApplicationJson.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesTransferOwnershipTransferResponse200ApplicationJson_Ocs), |
|
FilesTransferOwnershipTransferResponse200ApplicationJson_Ocs.new, |
|
) |
|
..add(FilesTransferOwnershipTransferResponse200ApplicationJson_Ocs.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesTransferOwnershipAcceptResponse200ApplicationJson), |
|
FilesTransferOwnershipAcceptResponse200ApplicationJson.new, |
|
) |
|
..add(FilesTransferOwnershipAcceptResponse200ApplicationJson.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesTransferOwnershipAcceptResponse200ApplicationJson_Ocs), |
|
FilesTransferOwnershipAcceptResponse200ApplicationJson_Ocs.new, |
|
) |
|
..add(FilesTransferOwnershipAcceptResponse200ApplicationJson_Ocs.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesTransferOwnershipRejectResponse200ApplicationJson), |
|
FilesTransferOwnershipRejectResponse200ApplicationJson.new, |
|
) |
|
..add(FilesTransferOwnershipRejectResponse200ApplicationJson.serializer) |
|
..addBuilderFactory( |
|
const FullType(FilesTransferOwnershipRejectResponse200ApplicationJson_Ocs), |
|
FilesTransferOwnershipRejectResponse200ApplicationJson_Ocs.new, |
|
) |
|
..add(FilesTransferOwnershipRejectResponse200ApplicationJson_Ocs.serializer) |
|
..addBuilderFactory(const FullType(FilesCapabilities), FilesCapabilities.new) |
|
..add(FilesCapabilities.serializer) |
|
..addBuilderFactory(const FullType(FilesCapabilities_Files), FilesCapabilities_Files.new) |
|
..add(FilesCapabilities_Files.serializer) |
|
..addBuilderFactory(const FullType(BuiltList, [FullType(JsonObject)]), ListBuilder<JsonObject>.new) |
|
..addBuilderFactory( |
|
const FullType(FilesCapabilities_Files_DirectEditing), |
|
FilesCapabilities_Files_DirectEditing.new, |
|
) |
|
..add(FilesCapabilities_Files_DirectEditing.serializer) |
|
..addBuilderFactory(const FullType(FilesTemplate), FilesTemplate.new) |
|
..add(FilesTemplate.serializer)) |
|
.build(); |
|
|
|
Serializers get filesSerializers => _serializers; |
|
|
|
final Serializers _jsonSerializers = (_serializers.toBuilder() |
|
..addPlugin(StandardJsonPlugin()) |
|
..addPlugin(const ContentStringPlugin())) |
|
.build(); |
|
|
|
T deserializeFiles<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T; |
|
|
|
Object? serializeFiles<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T)); |
|
// coverage:ignore-end
|
|
|