FileInfoEntity class

Base object to hold Uploadcare file data

Constructors

FileInfoEntity({required bool isStored, required String id, required String filename, required String mimeType, required bool isReady, required int size, DateTime? datetimeUploaded, DateTime? datetimeStored, DateTime? datetimeRemoved, ImageInfo? imageInfo, VideoInfo? videoInfo, Map<String, double>? recognitionInfo, Map<String, String>? metadata, Map<String, String>? variations, AppData? appData})
const
FileInfoEntity.fromJson(Map<String, dynamic> json)
factory

Properties

appData AppData?
Since v0.7
final
datetimeRemoved DateTime?
Date and time when a file was removed, if any.
final
datetimeStored DateTime?
Date and time of the last store request, if any.
final
datetimeUploaded DateTime?
Date and time when a file was uploaded.
final
filename String
Original name of an uploaded file.
final
hashCode int
The hash code for this object.
no setterinherited
id String
File UUID.
final
imageInfo ImageInfo?
Image meta. See ImageInfo
final
isImage bool
If your file is an image and can be processed via Image Processing, Please note, our processing engine does not treat all image files as such. Some of those may not be supported due to file sizes, resolutions or formats. In the case, the flag is set to false. false otherwise.
no setter
isReady bool
If a file is ready and not deleted, it is available on CDN.
final
isStored bool
final
isVideo bool
no setter
metadata Map<String, String>?
Since v0.7
final
mimeType String
File MIME type.
final
recognitionInfo Map<String, double>?
Only v0.6
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
File size in bytes.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
variations Map<String, String>?
Since v0.6
final
videoInfo VideoInfo?
Since v0.6
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited