fromJson static method

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

Implementation

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

  return PollVoteStatistics(
    voteGraph: StatisticalGraph.fromJson(tdMapFromJson(json['vote_graph'])),
  );
}