Artifact class Null safety

Artifacts of resources.

Artifacts are unique (single-value) per resource and are used to store metadata that is too large or numerous to be stored directly on the resource. Since artifacts are stored separately from parent resources, they should generally be used for metadata that is needed infrequently, i.e., not for display in primary views of the resource but perhaps displayed or downloaded upon request. The ListArtifacts method allows artifacts to be quickly enumerated and checked for presence without downloading their (potentially-large) contents.

Constructors

Artifact({String? contents, String? createTime, String? hash, String? mimeType, String? name, int? sizeBytes, String? updateTime})
Artifact.fromJson(Map json_)

Properties

contents String?
Input only.
read / write
contentsAsBytes List<int>
read / write
createTime String?
Creation timestamp.
read / write
hash String?
A SHA-256 hash of the artifact's contents.
read / write
hashCode int
The hash code for this object.
read-only, inherited
mimeType String?
A content type specifier for the artifact.
read / write
name String?
Resource name.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sizeBytes int?
The size of the artifact in bytes.
read / write
updateTime String?
Last update timestamp.
read / write

Methods

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

Operators

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