Resource class Null safety

This message defines core attributes for a resource.

A resource is an addressable (named) entity provided by the destination service. For example, a file stored on a network storage service.


Resource({Map<String, String>? annotations, String? createTime, String? deleteTime, String? displayName, String? etag, Map<String, String>? labels, String? location, String? name, String? service, String? type, String? uid, String? updateTime})
Resource.fromJson(Map json_)


annotations Map<String, String>?
Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
read / write
createTime String?
The timestamp when the resource was created.
read / write
deleteTime String?
The timestamp when the resource was deleted.
read / write
displayName String?
read / write
etag String?
An opaque value that uniquely identifies a version or generation of a resource.
read / write
hashCode int
The hash code for this object.
labels Map<String, String>?
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
read / write
location String?
The location of the resource.
read / write
name String?
The stable identifier (name) of a resource on the service.
read / write
runtimeType Type
A representation of the runtime type of the object.
service String?
The name of the service that this resource belongs to, such as
read / write
type String?
The type of the resource.
read / write
uid String?
The unique identifier of the resource.
read / write
updateTime String?
The timestamp when the resource was last updated.
read / write


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


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