refa query follow up

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-31 15:00:23 +08:00
parent 1029621b63
commit e945daba3a
8 changed files with 168 additions and 204 deletions

View File

@@ -1,16 +1,18 @@
import 'package:PiliPlus/models_new/follow/list.dart';
class FollowData {
List<FollowItemModel>? list;
late List<FollowItemModel> list;
int? reVersion;
int? total;
FollowData({this.list, this.reVersion, this.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(),
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?,
);