Response class
Exactly one of file (for a file target) and stagedUntil (for a bundle
target) is present — a rule over two members that this schema does not express.
Constructors
- Response({required UploadId uploadId, required UploadTarget target, required ExpectedSha256 sha256, required ExpectedSizeBytes sizeBytes, WrittenFile? file, ExpiresAt? stagedUntil, Ext? ext})
-
const
-
Response.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- ext → Ext?
-
final
- file → WrittenFile?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sha256 → String
-
final
- sizeBytes → int
-
final
- stagedUntil → WebsiteEtag?
-
final
- target → UploadTarget
-
final
- uploadId → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited