27 lines
623 B
Dart
27 lines
623 B
Dart
class OverviewData {
|
|
final int id;
|
|
final String title;
|
|
final String image;
|
|
final String description;
|
|
final String createdAt;
|
|
final String? type;
|
|
|
|
const OverviewData({
|
|
required this.id,
|
|
required this.title,
|
|
required this.image,
|
|
required this.description,
|
|
required this.createdAt,
|
|
required this.type,
|
|
});
|
|
|
|
factory OverviewData.fromJson(Map<String, dynamic> json) => OverviewData(
|
|
id: json['id'],
|
|
title: json['title'],
|
|
image: json['image'],
|
|
description: json['description'],
|
|
createdAt: json['createdAt'],
|
|
type: json['type'],
|
|
);
|
|
}
|