mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 00:56:31 +08:00
19 lines
571 B
Dart
19 lines
571 B
Dart
import 'package:PiliPlus/models_new/msg/msg_like/cursor.dart';
|
|
import 'package:PiliPlus/models_new/msg/msg_like/item.dart';
|
|
|
|
class Total {
|
|
Cursor? cursor;
|
|
List<MsgLikeItem>? items;
|
|
|
|
Total({this.cursor, this.items});
|
|
|
|
factory Total.fromJson(Map<String, dynamic> json) => Total(
|
|
cursor: json['cursor'] == null
|
|
? null
|
|
: Cursor.fromJson(json['cursor'] as Map<String, dynamic>),
|
|
items: (json['items'] as List<dynamic>?)
|
|
?.map((e) => MsgLikeItem.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
);
|
|
}
|