ChatSourcePublicServiceAnnouncement.fromJson constructor

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

Parses a ChatSourcePublicServiceAnnouncement from TDLib JSON.

Implementation

factory ChatSourcePublicServiceAnnouncement.fromJson(
        Map<String, dynamic> json) =>
    ChatSourcePublicServiceAnnouncement(
      type: _readString(json['type']),
      text: _readString(json['text']),
    );