Image class

An Image is used to store details about uploaded images. Images are uploaded by the File Service, and the URL is provided by the File Service.

Annotations
  • @JsonSerializable()

Constructors

Image({required String id, required String url, required String createdAt, required String updatedAt, String? deletedAt, Map<String, dynamic>? metadata})
Image.fromJson(Map<String, dynamic> json)
factory

Properties

createdAt String
The date with timezone at which the resource was created.
getter/setter pair
deletedAt String?
The date with timezone at which the resource was deleted.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
The image's ID
getter/setter pair
metadata Map<String, dynamic>?
An optional key-value map with additional details
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updatedAt String
The date with timezone at which the resource was updated.
getter/setter pair
url String
The URL at which the image file can be found.
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.
inherited

Operators

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