PageBlockChatLink.fromJson constructor

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

Parses a PageBlockChatLink from TDLib JSON.

Implementation

factory PageBlockChatLink.fromJson(Map<String, dynamic> json) =>
    PageBlockChatLink(
      title: _readString(json['title']),
      photo: _readOptional(json['photo'], ChatPhotoInfo.fromJson),
      accentColorId: _readInt(json['accent_color_id']),
      username: _readString(json['username']),
    );