fromJson static method
Implementation
static LiveStoryDonors? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return LiveStoryDonors(
totalStarCount: (json['total_star_count'] as int?) ?? 0,
topDonors: List<PaidReactor>.from(
tdListFromJson(json['top_donors'])
.map((item) => PaidReactor.fromJson(tdMapFromJson(item)))
.whereType<PaidReactor>(),
),
);
}