PushMessageContentPoll.fromJson constructor

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

Parses a PushMessageContentPoll from TDLib JSON.

Implementation

factory PushMessageContentPoll.fromJson(Map<String, dynamic> json) =>
    PushMessageContentPoll(
      question: _readString(json['question']),
      isRegular: _readBool(json['is_regular']),
      isPinned: _readBool(json['is_pinned']),
    );