import 'package:PiliPlus/models_new/follow/list.dart'; class FollowData { late List list; int? reVersion; int? total; FollowData({required this.list, this.reVersion, this.total}); factory FollowData.fromJson(Map json) => FollowData( list: (json['list'] as List?) ?.map((e) => FollowItemModel.fromJson(e as Map)) .toList() ?? [], reVersion: json['re_version'] as int?, total: json['total'] as int?, ); }