CloudinaryResponse class
Class to be used to format response from the cloudinary api
Constructors
-
CloudinaryResponse({required String assetId, required String publicId, required DateTime createdAt, required String url, required String secureUrl, required String originalFilename, required Map<
String, dynamic> data, List<String> tags = const [], Map<String, dynamic> context = const {}, bool fromCache = false}) -
CloudinaryResponse.fromMap(Map<
String, dynamic> data) -
Instantiate this class from a map data
factory
Properties
- assetId → String
-
final
-
context
→ Map<
String, dynamic> -
final
- createdAt → DateTime
-
final
-
customContext
→ Map<
String, String> -
Extract and return the image context
no setter
-
data
→ Map<
String, dynamic> -
final
- fromCache → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- originalFilename → String
-
final
- publicId → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secureUrl → String
-
final
-
final
- url → String
-
final
Methods
-
enableCache(
) → CloudinaryResponse - Sets the fromCache property to true
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Convert the class to a map instance
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited