CloudflareImage class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

CloudflareImage({String? id, String? filename, Map<String, dynamic>? meta, bool? requireSignedURLs, List<String>? variants, DateTime? uploaded})
CloudflareImage.fromJson(Map<String, dynamic> json)
factory
CloudflareImage.fromUrl(String url)
factory

Properties

filename String?
Image file name
getter/setter pair
firstVaiant String
no setter
hashCode int
The hash code for this object.
no setteroverride
id String
Image unique identifier
getter/setter pair
meta Map<String, dynamic>?
User modifiable key-value store. Can be used for keeping references to another system of record for managing images. Metadata must not exceed 1024 bytes
getter/setter pair
requireSignedURLs bool
Indicates whether the image can be a accessed only using it's UID. If set to true, a signed token needs to be generated with a signing key to view the image.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uploaded DateTime
When the media item was uploaded.
getter/setter pair
variants List<String>
List specifying available variants for an image.
getter/setter pair

Methods

fromJsonList(List? jsonList) List<CloudflareImage>?
inherited
fromJsonMap(Map<String, dynamic>? json) CloudflareImage?
fromJsonString(String? json) CloudflareImage?
inherited
fromJsonStringList(String? jsonStringList) List<CloudflareImage>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJsonMap() Map<String, dynamic>
inherited
toJsonString() String
inherited
toString() String
This is just to suggest children to implement a named constructor to support creating objects fromJson(...) and fromJsonString(...) as easy as T.build().fromJson(...) or T.build().fromJsonString(...)
inherited

Operators

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

Static Methods

variantNameFromUrl(String url) String

Constants

imageDeliveryUrl → const String