fromJson static method
Implementation
static PollVoters? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return PollVoters(
totalCount: (json['total_count'] as int?) ?? 0,
voters: List<PollVoter>.from(
tdListFromJson(json['voters'])
.map((item) => PollVoter.fromJson(tdMapFromJson(item)))
.whereType<PollVoter>(),
),
);
}