getFileAccess method
Implementation
Future<FileAccessDto?> getFileAccess (
int? fileId,
int? seconds
) async {
String path = "/storage/file-access/$fileId";
Map<String, dynamic> parameters = {};
parameters['seconds'] = seconds;
return FileAccessDto.fromJson(
await get(path, parameters: parameters, requireAuthorization:true) ?? {}
);
}