PresignResponse class

Constructors

PresignResponse({int? expiresIn, String? key, String? method, String? url})
Returns a new PresignResponse instance.

Properties

expiresIn ↔ int?
seconds until the URL expires
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
key ↔ String?
Key is the object key the URL was signed for, relative to the bucket root and path-cleaned — so it is what the store will actually read or write, which is not always the string the caller sent. The signature covers this one bucket and this one key: a URL minted here reaches nothing else.
getter/setter pair
method ↔ String?
"PUT" (upload) or "GET" (download)
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url ↔ String?
presigned URL the browser follows directly
getter/setter pair

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → PresignResponse?
Returns a new PresignResponse instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PresignResponse>
mapFromJson(dynamic json) → Map<String, PresignResponse>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PresignResponse>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.