ImageDto class

Data Transfer Object for Image.

Extends Image and adds serialization/deserialization functionality.

Inheritance

Constructors

ImageDto({required String url, required int width, required int height, bool isCatalog = false})
Creates a new ImageDto instance.
ImageDto.fromJson(String source)
Creates an ImageDto from a JSON string.
factory
ImageDto.fromMap(Map<String, dynamic> map)
Creates an ImageDto from a map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
The height of the image in pixels.
finalinherited
isCatalog bool
Indicates whether this is a catalog image.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
The URL of the image.
finalinherited
width int
The width of the image in pixels.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toImage() Image
Converts this ImageDto to an Image.
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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