PushMessageContentPoll.fromJson constructor

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

Parse from a json

Implementation

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