mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-08 18:20:12 +08:00
@@ -1,17 +1,15 @@
|
||||
import 'package:PiliPlus/models_new/follow/list.dart';
|
||||
|
||||
class FollowData {
|
||||
late List<FollowItemModel> list;
|
||||
List<FollowItemModel>? list;
|
||||
int? total;
|
||||
|
||||
FollowData({required this.list, 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>[],
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => FollowItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
total: json['total'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user