26 lines
589 B
Dart
26 lines
589 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
@JsonSerializable()
|
|
class ImageModelDto {
|
|
const ImageModelDto({
|
|
required this.uri,
|
|
required this.imageIndex,
|
|
required this.imageName,
|
|
required this.isFavourite,
|
|
});
|
|
|
|
/// An image's target [Uri].
|
|
///
|
|
/// Storing an image's [ByteData] is more expensive, memory-wise.
|
|
final Uri uri;
|
|
|
|
/// A unique identifier that can be used for indexing the image.
|
|
final int imageIndex;
|
|
|
|
/// Given name of the image.
|
|
final String imageName;
|
|
|
|
/// Whether the image was 'Starred' ot not.
|
|
final bool isFavourite;
|
|
}
|