ChatBoostLink.fromJson constructor

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

Parses a ChatBoostLink from TDLib JSON.

Implementation

factory ChatBoostLink.fromJson(Map<String, dynamic> json) => ChatBoostLink(
      link: _readString(json['link']),
      isPublic: _readBool(json['is_public']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );