2022-05-13 15:57:28 +00:00
|
|
|
class Item {
|
2022-05-29 12:12:05 +00:00
|
|
|
int id;
|
|
|
|
String mime;
|
|
|
|
int tagId;
|
|
|
|
|
2022-05-13 15:57:28 +00:00
|
|
|
Item({
|
|
|
|
required this.id,
|
|
|
|
required this.mime,
|
|
|
|
required this.tagId
|
|
|
|
});
|
|
|
|
|
|
|
|
factory Item.fromJson(Map<String, dynamic> data) {
|
|
|
|
return Item(
|
2022-05-29 12:12:05 +00:00
|
|
|
id: data['id'],
|
|
|
|
mime: data['mime'],
|
|
|
|
tagId: data['tag_id']
|
2022-05-13 15:57:28 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|