20 lines
299 B
Dart
20 lines
299 B
Dart
class Item {
|
|
int id;
|
|
String mime;
|
|
int tagId;
|
|
|
|
Item({
|
|
required this.id,
|
|
required this.mime,
|
|
required this.tagId
|
|
});
|
|
|
|
factory Item.fromJson(Map<String, dynamic> data) {
|
|
return Item(
|
|
id: data['id'],
|
|
mime: data['mime'],
|
|
tagId: data['tag_id']
|
|
);
|
|
}
|
|
}
|