mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 16:46:22 +08:00
16 lines
414 B
Dart
16 lines
414 B
Dart
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?,
|
|
);
|
|
}
|