PollTypeRegular.fromJson constructor

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

Parses a PollTypeRegular from TDLib JSON.

Implementation

factory PollTypeRegular.fromJson(Map<String, dynamic> json) =>
    PollTypeRegular(
      allowMultipleAnswers: _readBool(json['allow_multiple_answers']),
    );