ImagesResponse class
Represents a generated image returned by the images endpoint.
- Annotations
-
- @freezed
Constructors
-
ImagesResponse.new({required int created, required List<
Image> data}) -
Factory constructor for ImagesResponse
constfactory
-
ImagesResponse.fromJson(Map<
String, dynamic> json) -
Object construction from a JSON representation
factory
Properties
-
copyWith
→ $ImagesResponseCopyWith<
ImagesResponse> -
Create a copy of ImagesResponse
with the given fields replaced by the non-null parameter values.
no setterinherited
- created → int
-
The Unix timestamp (in seconds) when the image was created.
no setterinherited
-
data
→ List<
Image> -
The list of images generated by the model.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ImagesResponse to a JSON map.
inherited
-
toMap(
) → Map< String, dynamic> - Map representation of object (not serialized)
-
toString(
) → String -
A string representation of this object.
inherited
-
validateSchema(
) → String? - Perform validations on the schema property values
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
propertyNames
→ const List<
String> - List of all property names of schema