Skip to content

CarpFileResponse

Metadata of a file stored in CAWS, as returned by the file endpoint.

Returned by FileUploadTask.onComplete, FileStorageReference.get and CarpService.queryFiles.

Properties

createdAt

DateTime createdAt
final

createdBy

String createdBy
final

id

int id
final

The server-side ID of the file.

map

Map map
final

The raw JSON map from CAWS.

metadata

Map<String, dynamic> metadata
final

originalName

String originalName
final

The original name of the uploaded file.

storageName

String storageName
final

The name of the file as stored on the server.

studyId

String studyId
final

updatedAt

DateTime updatedAt
final

updatedBy

String updatedBy
final

Methods

toString

String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.