mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 11:06:51 +08:00
20 lines
547 B
Dart
20 lines
547 B
Dart
import 'package:PiliPlus/models_new/follow/list.dart';
|
|
|
|
class FollowData {
|
|
late List<FollowItemModel> list;
|
|
int? reVersion;
|
|
int? total;
|
|
|
|
FollowData({required this.list, this.reVersion, this.total});
|
|
|
|
factory FollowData.fromJson(Map<String, dynamic> json) => FollowData(
|
|
list:
|
|
(json['list'] as List<dynamic>?)
|
|
?.map((e) => FollowItemModel.fromJson(e as Map<String, dynamic>))
|
|
.toList() ??
|
|
<FollowItemModel>[],
|
|
reVersion: json['re_version'] as int?,
|
|
total: json['total'] as int?,
|
|
);
|
|
}
|