mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 18:16:54 +08:00
15
lib/models_new/msg/msg_like/latest.dart
Normal file
15
lib/models_new/msg/msg_like/latest.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:PiliPlus/models_new/msg/msg_like/item.dart';
|
||||
|
||||
class Latest {
|
||||
List<MsgLikeItem>? items;
|
||||
int? lastViewAt;
|
||||
|
||||
Latest({this.items, this.lastViewAt});
|
||||
|
||||
factory Latest.fromJson(Map<String, dynamic> json) => Latest(
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => MsgLikeItem.fromJson(e))
|
||||
.toList(),
|
||||
lastViewAt: json['last_view_at'] as int?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user