BusinessChatLink.fromJson constructor

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

Parses a BusinessChatLink from TDLib JSON.

Implementation

factory BusinessChatLink.fromJson(Map<String, dynamic> json) =>
    BusinessChatLink(
      link: _readString(json['link']),
      text: _readObject(json['text'], FormattedText.fromJson),
      title: _readString(json['title']),
      viewCount: _readInt(json['view_count']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );