fromJson static method

PollVoter? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static PollVoter? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return PollVoter(
    voterId: MessageSender.fromJson(tdMapFromJson(json['voter_id'])),
    date: (json['date'] as int?) ?? 0,
  );
}