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(((json['top_donors']
as List<dynamic>?) ??
<dynamic>[])
.map((item) => PaidReactor.fromJson(item as Map<String, dynamic>?))
.toList()),
);
}